fprobe: Pass return address to the handlers
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>
Tue, 6 Jun 2023 12:39:55 +0000 (21:39 +0900)
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>
Tue, 6 Jun 2023 12:39:55 +0000 (21:39 +0900)
commitcb16330d12741f6dae56aad5acf62f5be3a06c4e
tree989f603fa2a1d02a0e12fc411435337102f45e8b
parent9561de3a55bed6bdd44a12820ba81ec416e705a7
fprobe: Pass return address to the handlers

Pass return address as 'ret_ip' to the fprobe entry and return handlers
so that the fprobe user handler can get the reutrn address without
analyzing arch-dependent pt_regs.

Link: https://lore.kernel.org/all/168507467664.913472.11642316698862778600.stgit@mhiramat.roam.corp.google.com/
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
include/linux/fprobe.h
include/linux/rethook.h
kernel/kprobes.c
kernel/trace/bpf_trace.c
kernel/trace/fprobe.c
kernel/trace/rethook.c
lib/test_fprobe.c
samples/fprobe/fprobe_example.c