Re: [PATCH v22 20/20] bpf: Use ftrace_get_symaddr() for kprobe_multi probes

From: Steven Rostedt
Date: Thu Dec 26 2024 - 21:25:10 EST


On Thu, 26 Dec 2024 21:23:39 -0500
Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:

> On Thu, 26 Dec 2024 14:15:25 +0900
> "Masami Hiramatsu (Google)" <mhiramat@xxxxxxxxxx> wrote:
>
> > From: Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx>
> >
> > Add ftrace_get_entry_ip() which is only for ftrace based probes, and use
> > it for kprobe multi probes because they are based on fprobe which uses
> > ftrace instead of kprobes.
> >
> > Signed-off-by: Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx>
>
> On my 32bit build, I hit a new warning;
>
> kernel/trace/bpf_trace.c:1073:22: warning: ‘ftrace_get_entry_ip’ defined but not used [-Wunused-function]
> 1073 | static unsigned long ftrace_get_entry_ip(unsigned long fentry_ip)
> | ^~~~~~~~~~~~~~~~~~~
>
> Config attached.


Since this is the last patch of the series, just send a new patch for this one.
I'll continue testing the rest of the patches.

-- Steve