| From: |
| Jiri Olsa <jolsa-AT-kernel.org> |
| To: |
| Alexei Starovoitov <ast-AT-kernel.org>, Daniel Borkmann <daniel-AT-iogearbox.net>, Andrii Nakryiko <andrii-AT-kernel.org> |
| Subject: |
| [PATCHv3 bpf-next 0/3] bpf: tracing_multi link info support |
| Date: |
| Mon, 29 Jun 2026 16:38:41 +0200 |
| Message-ID: |
| <20260629143844.862369-1-jolsa@kernel.org> |
| Cc: |
| bpf-AT-vger.kernel.org, Martin KaFai Lau <martin.lau-AT-linux.dev>, Eduard Zingerman <eddyz87-AT-gmail.com>, Song Liu <songliubraving-AT-fb.com>, Yonghong Song <yhs-AT-fb.com>, Quentin Monnet <qmo-AT-kernel.org> |
| Archive-link: |
| Article |
hi,
adding link info support for tracing_multi link.
Adding the kernel support with related selftests and bpftool support
to display the tracing_multi link info, the output looks like:
# bpftool link
...
61: tracing_multi prog 167
attach_type trace_fentry_multi btf_obj_id 1 count 3
btf_id addr cookie func [module]
92598 ffffffff825017c4 10 bpf_fentry_test1
92600 ffffffff82503814 30 bpf_fentry_test2
92601 ffffffff82503824 20 bpf_fentry_test3
pids test_progs(1540)
thanks,
jirka
v1: https://lore.kernel.org/bpf/20260621204524.61067-1-jolsa@...
v2: https://lore.kernel.org/bpf/20260623142417.275892-1-jolsa...
v3 changes:
- added acks [Andrii, Leon]
- display cookies as decimal numbers [Andrii]
- renamed obj_id to btf_obj_id [Andrii]
- several fixes in bpftool change [Andrii]
---
Jiri Olsa (3):
bpf: Add tracing_multi link info support
selftests/bpf: Add tracing_multi link info tests
bpftool: Add tracing_multi link info output
include/uapi/linux/bpf.h | 9 +++
kernel/trace/bpf_trace.c | 55 +++++++++++++++++
tools/bpf/bpftool/link.c | 133 ++++++++++++++++++++++++++++++++++++++++
tools/include/uapi/linux/bpf.h | 9 +++
tools/testing/selftests/bpf/prog_tests/fill_link_info.c | 242 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
tools/testing/selftests/bpf/progs/test_fill_link_info.c | 6 ++
6 files changed, 454 insertions(+)