Commit 8f7d4d0
Enhance bpf_query to show TracingLinkInfo fields
The enhanced TracingLinkInfo struct now includes target_obj_id and
target_btf_id fields that are directly available from the kernel's
bpf_link_info structure. This eliminates the need for additional
syscalls to retrieve BTF information for tracing links.
Example output:
$ sudo ./target/debug/bpf_query link
id= 6 prog_id=1437 type=tracing
attach_type=LsmMac target_obj_id=1 target_btf_id=59022
This output correlates with bpftool:
$ sudo bpftool link show id 6
6: tracing prog 1437
prog_type lsm attach_type lsm_mac
target_obj_id 1 target_btf_id 59022
Signed-off-by: Andrew McDermott <[email protected]>1 parent 3b5082e commit 8f7d4d0
2 files changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
104 | 111 | | |
105 | 112 | | |
106 | 113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
623 | 623 | | |
624 | 624 | | |
625 | 625 | | |
626 | | - | |
| 626 | + | |
627 | 627 | | |
628 | 628 | | |
629 | 629 | | |
| |||
0 commit comments