bpf: Expose symbol's respective address
authorYafang Shao <laoar.shao@gmail.com>
Sun, 9 Jul 2023 02:56:26 +0000 (02:56 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 12 Jul 2023 03:07:51 +0000 (20:07 -0700)
commitcd3910d005052382901fe3d0a3aeed48b1b64906
tree06009c94c667c85e87770828a0cac18304481519
parent5125e757e62f6c1d5478db4c2b61a744060ddf3f
bpf: Expose symbol's respective address

Since different symbols can share the same name, it is insufficient to only
expose the symbol name. It is essential to also expose the symbol address
so that users can accurately identify which one is being probed.

Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20230709025630.3735-7-laoar.shao@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/trace/trace_kprobe.c