Skip to content

bpf: Show target_{obj,btf}_id for tracing link

Yafang Shao bpf 2 versions – Applied

Status from this message: This series was applied to bpf/bpf-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyApplied 2/2
  2. v12 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- Skip showing them in the plain output for the old kernels. (Quentin)
- Coding improvement. (Andrii)

Patches in v2 All 2 applied

#Subject and filesSizeRepliesApplied
1/2bpf: Show target_{obj,btf}_id in tracing link fdinfokernel/bpf/syscall.c+9 -20 repliesApplied
2/2bpftool: Show target_{obj,btf}_id in tracing link infotools/bpf/bpftool/link.c+6 -00 repliesApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchSong LiuQuentin Monnet
SeriesA-b
1/2A-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH bpf-next v2 0/2] bpf: Show target_{obj,btf}_id for tracing link

The target_btf_id can help us understand which kernel function is linked by a tracing prog. The target_btf_id and target_obj_id have already been exposed to userspace, so we just need to show them.

For some other link types like perf_event and kprobe_multi, it is not easy to find which functions are attached either. We may support ->fill_link_info for them in the future.

v1->v2:
- Skip showing them in the plain output for the old kernels. (Quentin)
- Coding improvement. (Andrii)

Yafang Shao (2):
bpf: Show target_{obj,btf}_id in tracing link fdinfo
bpftool: Show target_{obj,btf}_id in tracing link info

 kernel/bpf/syscall.c     | 11 +++++++++--
 tools/bpf/bpftool/link.c |  6 ++++++
 2 files changed, 15 insertions(+), 2 deletions(-)
Signature · 1 line
1.8.3.1