Skip to content

Commit fff3dfa

Browse files
mdaverdeanakryiko
authored andcommitted
bpftool: Add missing link types
Will display the link type names in bpftool link show output Signed-off-by: Milan Landaverde <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 3803416 commit fff3dfa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/bpf/bpftool/link.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ static const char * const link_type_name[] = {
2020
[BPF_LINK_TYPE_CGROUP] = "cgroup",
2121
[BPF_LINK_TYPE_ITER] = "iter",
2222
[BPF_LINK_TYPE_NETNS] = "netns",
23+
[BPF_LINK_TYPE_XDP] = "xdp",
24+
[BPF_LINK_TYPE_PERF_EVENT] = "perf_event",
25+
[BPF_LINK_TYPE_KPROBE_MULTI] = "kprobe_multi",
2326
};
2427

2528
static struct hashmap *link_table;

0 commit comments

Comments
 (0)