bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf-next v2 0/2] bpf: Show target_{obj,btf}_id for tracing link
@ 2023-05-17 10:31 Yafang Shao
  2023-05-17 10:31 ` [PATCH bpf-next v2 1/2] bpf: Show target_{obj,btf}_id in tracing link fdinfo Yafang Shao
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Yafang Shao @ 2023-05-17 10:31 UTC (permalink / raw)
  To: quentin, ast, daniel, john.fastabend, andrii, martin.lau, song,
	yhs, kpsingh, sdf, haoluo, jolsa
  Cc: bpf, Yafang Shao

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(-)

-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-05-19 17:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-17 10:31 [PATCH bpf-next v2 0/2] bpf: Show target_{obj,btf}_id for tracing link Yafang Shao
2023-05-17 10:31 ` [PATCH bpf-next v2 1/2] bpf: Show target_{obj,btf}_id in tracing link fdinfo Yafang Shao
2023-05-17 10:31 ` [PATCH bpf-next v2 2/2] bpftool: Show target_{obj,btf}_id in tracing link info Yafang Shao
2023-05-17 14:14 ` [PATCH bpf-next v2 0/2] bpf: Show target_{obj,btf}_id for tracing link Quentin Monnet
2023-05-19 17:10 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).