Skip to content

Commit 8756623

Browse files
laoarqmonnet
authored andcommitted
bpf: Support ->fill_link_info for kprobe_multi
With the addition of support for fill_link_info to the kprobe_multi link, users will gain the ability to inspect it conveniently using the `bpftool link show`. This enhancement provides valuable information to the user, including the count of probed functions and their respective addresses. It's important to note that if the kptr_restrict setting is not permitted, the probed address will not be exposed, ensuring security. Signed-off-by: Yafang Shao <[email protected]> Acked-by: Jiri Olsa <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
1 parent 7f2b164 commit 8756623

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/uapi/linux/bpf.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6439,6 +6439,11 @@ struct bpf_link_info {
64396439
__s32 priority;
64406440
__u32 flags;
64416441
} netfilter;
6442+
struct {
6443+
__aligned_u64 addrs;
6444+
__u32 count; /* in/out: kprobe_multi function count */
6445+
__u32 flags;
6446+
} kprobe_multi;
64426447
};
64436448
} __attribute__((aligned(8)));
64446449

0 commit comments

Comments
 (0)