bpf: Add show_fdinfo for uprobe_multi
authorTao Chen <chen.dylane@linux.dev>
Wed, 2 Jul 2025 15:39:57 +0000 (23:39 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 4 Jul 2025 02:29:42 +0000 (19:29 -0700)
commitb4dfe26fbf56f7b3e50764268e14b73f1632bfc0
tree963d2fc1bdaeecb0653b9514a944661d7d16e6c3
parent803f0700a3bbf528c4c624a22f87d08178ca0fbe
bpf: Add show_fdinfo for uprobe_multi

Show uprobe_multi link info with fdinfo, the info as follows:

link_type: uprobe_multi
link_id: 9
prog_tag: e729f789e34a8eca
prog_id: 39
uprobe_cnt: 3
pid: 0
path: /home/dylane/bpf/tools/testing/selftests/bpf/test_progs
cookie  offset  ref_ctr_offset
3  0xa69f13  0x0
1  0xa69f1e  0x0
2  0xa69f29  0x0

Signed-off-by: Tao Chen <chen.dylane@linux.dev>
Link: https://lore.kernel.org/r/20250702153958.639852-2-chen.dylane@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/trace/bpf_trace.c