RFC bpf: Support ->show_fdinfo and ->fill_link_info for kprobe prog
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest8 patches 13 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | bpf: Support ->show_fdinfo for kprobe_multikernel/ | +17 | 4 replies | |
| 2/8 | bpf: Support ->fill_link_info for kprobe_multiinclude/ kernel/ tools/ | +39 | 3 replies | |
| 3/8 | bpftool: Show probed function in kprobe_multi link infotools/ | +50 | 4 replies | |
| 4/8 | bpf: Always expose the probed addresskernel/ | +1 | 0 replies | |
| 5/8 | bpf: Support ->show_fdinfo for perf_eventkernel/ | +27 | 0 replies | |
| 6/8 | bpf: Add a common helper bpf_copy_to_user()kernel/ | +20 | 0 replies | |
| 7/8 | bpf: Support ->fill_link_info for perf_eventinclude/ kernel/ tools/ | +58 | 2 replies | |
| 8/8 | bpftool: Show probed function in perf_event link infotools/ | +20 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC PATCH bpf-next 0/8] bpf: Support ->show_fdinfo and ->fill_link_info for kprobe prog
Currently, it is not easy to determine which functions are probed by a kprobe_multi program. This patchset supports ->show_fdinfo and ->fill_link_info for it, allowing the user to easily obtain the probed functions.
Although the user can retrieve the functions probed by a perf_event program using bpftool perf show, it would be beneficial to also support ->show_fdinfo and ->fill_link_info. This way, the user can obtain it in the same manner as other bpf links.
It would be preferable to expose the address directly rather than the symbol name, as multiple functions may share the same name.
Yafang Shao (8):
bpf: Support ->show_fdinfo for kprobe_multi
bpf: Support ->fill_link_info for kprobe_multi
bpftool: Show probed function in kprobe_multi link info
bpf: Always expose the probed address
bpf: Support ->show_fdinfo for perf_event
bpf: Add a common helper bpf_copy_to_user()
bpf: Support ->fill_link_info for perf_event
bpftool: Show probed function in perf_event link info
include/uapi/linux/bpf.h | 10 ++++ kernel/bpf/syscall.c | 107 +++++++++++++++++++++++++++++++++++------ kernel/trace/bpf_trace.c | 48 ++++++++++++++++++ kernel/trace/trace_kprobe.c | 2 +- tools/bpf/bpftool/link.c | 71 ++++++++++++++++++++++++++- tools/include/uapi/linux/bpf.h | 10 ++++ 6 files changed, 232 insertions(+), 16 deletions(-)
Signature · 1 line
1.8.3.1