summaryrefslogtreecommitdiff
path: root/tools/bpf
diff options
context:
space:
mode:
authorMilan Landaverde <milan@mdaverde.com>2022-03-31 11:45:54 -0400
committerAndrii Nakryiko <andrii@kernel.org>2022-04-04 14:54:34 -0700
commitfff3dfab17866f6ac5c5666839f6132b6c52f306 (patch)
tree3e88e3cf04eda192f801bc0858d99bc3d9412e48 /tools/bpf
parent380341637ebb41f56031a0fd0779e85413a1da59 (diff)
bpftool: Add missing link types
Will display the link type names in bpftool link show output Signed-off-by: Milan Landaverde <milan@mdaverde.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20220331154555.422506-3-milan@mdaverde.com
Diffstat (limited to 'tools/bpf')
-rw-r--r--tools/bpf/bpftool/link.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/bpf/bpftool/link.c b/tools/bpf/bpftool/link.c
index 97dec81950e5..8fb0116f9136 100644
--- a/tools/bpf/bpftool/link.c
+++ b/tools/bpf/bpftool/link.c
@@ -20,6 +20,9 @@ static const char * const link_type_name[] = {
[BPF_LINK_TYPE_CGROUP] = "cgroup",
[BPF_LINK_TYPE_ITER] = "iter",
[BPF_LINK_TYPE_NETNS] = "netns",
+ [BPF_LINK_TYPE_XDP] = "xdp",
+ [BPF_LINK_TYPE_PERF_EVENT] = "perf_event",
+ [BPF_LINK_TYPE_KPROBE_MULTI] = "kprobe_multi",
};
static struct hashmap *link_table;