[PATCH 7/7] powerpc/kprobes: Allow probing on any ftrace address
Joe Perches
joe at perches.com
Sat Jun 22 13:49:50 AEST 2019
On Fri, 2019-06-21 at 23:50 +0900, Masami Hiramatsu wrote:
> On Tue, 18 Jun 2019 20:17:06 +0530
> "Naveen N. Rao" <naveen.n.rao at linux.vnet.ibm.com> wrote:
trivia:
> > diff --git a/arch/powerpc/kernel/kprobes-ftrace.c b/arch/powerpc/kernel/kprobes-ftrace.c
[]
> > @@ -57,6 +82,11 @@ NOKPROBE_SYMBOL(kprobe_ftrace_handler);
> >
> > int arch_prepare_kprobe_ftrace(struct kprobe *p)
> > {
> > + if ((unsigned long)p->addr & 0x03) {
> > + printk("Attempt to register kprobe at an unaligned address\n");
Please use the appropriate KERN_<LEVEL> or pr_<level>
More information about the Linuxppc-dev
mailing list