Thread (39 messages) 39 messages, 5 authors, 2025-02-06

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

From: Steven Rostedt <rostedt@goodmis.org>
Date: 2024-12-27 02:24:56
Also in: bpf, linux-arch, lkml

On Thu, 26 Dec 2024 21:23:39 -0500
Steven Rostedt [off-list ref] wrote:
On Thu, 26 Dec 2024 14:15:25 +0900
"Masami Hiramatsu (Google)" [off-list ref] wrote:
quoted
From: Masami Hiramatsu (Google) <mhiramat@kernel.org>

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@kernel.org>  
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help