diff options
author | Yafang Shao <laoar.shao@gmail.com> | 2023-05-17 10:31:26 +0000 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2023-05-19 10:06:45 -0700 |
commit | d7e45eb4802bbb3343624711e43d23b22fe7cc55 (patch) | |
tree | b728ae6b18abafff2ada4dcf683230c1b929ebad /io_uring/io-wq.c | |
parent | e859e429511afb21d3f784bd0ccdf500d40b73ef (diff) |
bpftool: Show target_{obj,btf}_id in tracing link info
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.
The result as follows,
$ tools/bpf/bpftool/bpftool link show
2: tracing prog 13
prog_type tracing attach_type trace_fentry
target_obj_id 1 target_btf_id 13964
pids trace(10673)
$ tools/bpf/bpftool/bpftool link show -j
[{"id":2,"type":"tracing","prog_id":13,"prog_type":"tracing","attach_type":"trace_fentry","target_obj_id":1,"target_btf_id":13964,"pids":[{"pid":10673,"comm":"trace"}]}]
Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Acked-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20230517103126.68372-3-laoar.shao@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'io_uring/io-wq.c')
0 files changed, 0 insertions, 0 deletions