diff options
author | Yafang Shao <laoar.shao@gmail.com> | 2023-07-09 02:56:21 +0000 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2023-07-11 20:07:50 -0700 |
commit | 7ac8d0d2619256cc13eaf4a889b3177a1607b02d (patch) | |
tree | 5032900e7b4dc6f912fc3edab839484a746eb89e /tools/include | |
parent | 07018b57066e0009c0b9945723f30e532d347ed3 (diff) | |
download | linux-7ac8d0d2619256cc13eaf4a889b3177a1607b02d.tar.gz linux-7ac8d0d2619256cc13eaf4a889b3177a1607b02d.tar.bz2 linux-7ac8d0d2619256cc13eaf4a889b3177a1607b02d.zip |
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 <laoar.shao@gmail.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20230709025630.3735-2-laoar.shao@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/include')
-rw-r--r-- | tools/include/uapi/linux/bpf.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h index 60a9d59beeab..a4e881c64e0f 100644 --- a/tools/include/uapi/linux/bpf.h +++ b/tools/include/uapi/linux/bpf.h @@ -6439,6 +6439,11 @@ struct bpf_link_info { __s32 priority; __u32 flags; } netfilter; + struct { + __aligned_u64 addrs; + __u32 count; /* in/out: kprobe_multi function count */ + __u32 flags; + } kprobe_multi; }; } __attribute__((aligned(8))); |