summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/Makefile
diff options
context:
space:
mode:
authorDaniel Borkmann <daniel@iogearbox.net>2023-10-24 23:49:02 +0200
committerMartin KaFai Lau <martin.lau@kernel.org>2023-10-25 01:07:32 +0200
commitbec981a4add6dd6a63065e54e2b2e67c2af6c3fa (patch)
treeacd73a5086c3e112b9673d2ec175ee8a8441c6e5 /tools/testing/selftests/bpf/Makefile
parentbpftool: Implement link show support for netkit (diff)
downloadlinux-bec981a4add6dd6a63065e54e2b2e67c2af6c3fa.tar.xz
linux-bec981a4add6dd6a63065e54e2b2e67c2af6c3fa.zip
bpftool: Extend net dump with netkit progs
Add support to dump BPF programs on netkit via bpftool. This includes both the BPF link and attach ops programs. Dumped information contain the attach location, function entry name, program ID and link ID when applicable. Example with tc BPF link: # ./bpftool net xdp: tc: nk1(22) netkit/peer tc1 prog_id 43 link_id 12 [...] Example with json dump: # ./bpftool net --json | jq [ { "xdp": [], "tc": [ { "devname": "nk1", "ifindex": 18, "kind": "netkit/primary", "name": "tc1", "prog_id": 29, "prog_flags": [], "link_id": 8, "link_flags": [] } ], "flow_dissector": [], "netfilter": [] } ] Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Reviewed-by: Quentin Monnet <quentin@isovalent.com> Acked-by: Martin KaFai Lau <martin.lau@kernel.org> Link: https://lore.kernel.org/r/20231024214904.29825-6-daniel@iogearbox.net Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/Makefile')
0 files changed, 0 insertions, 0 deletions