Re: [PATCH 2/4 v3] tracing: Add sample code for custom trace events

From: Steven Rostedt
Date: Fri Mar 04 2022 - 11:12:37 EST


On Sat, 5 Mar 2022 01:09:30 +0900
Masami Hiramatsu <mhiramat@xxxxxxxxxx> wrote:

> > --- a/arch/x86/kernel/kprobes/core.c
> > +++ b/arch/x86/kernel/kprobes/core.c
> > @@ -202,8 +202,10 @@ __recover_probed_insn(kprobe_opcode_t *buf, unsigned long addr)
> > * arch_check_ftrace_location(). Something went terribly wrong
> > * if such an address is checked here.
> > */
> > - if (WARN_ON(faddr && faddr != addr))
> > + if (WARN_ON(faddr && faddr != addr)) {
> > + printk("faddr=%pS (%lx) addr=%pS (%lx)\n", (void*)faddr, faddr, (void*)addr, addr);
> > return 0UL;
> > + }
>
> This part seems not related to this patch.
> Can you drop this?

Ug, yeah. Thanks for spotting this. This was used to help debug the IBT
code from Peter Z. I didn't even notice it.

-- Steve