]> git.baikalelectronics.ru Git - kernel.git/commit
bpftool: Show also the name of type BPF_OBJ_LINK
authorYafang Shao <laoar.shao@gmail.com>
Wed, 29 Jun 2022 15:48:32 +0000 (15:48 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 30 Jun 2022 21:48:13 +0000 (23:48 +0200)
commit023383aef5ad676d90791f1d70bbdf088903772a
treeae4504144361d5bdabd82d39388f3893816675e2
parent57561f54eb880d0fb2fba4e65bad73244f6660df
bpftool: Show also the name of type BPF_OBJ_LINK

For example, /sys/fs/bpf/maps.debug is a BPF link. When you run `bpftool map show`
to show it:

Before:

  $ bpftool map show pinned /sys/fs/bpf/maps.debug
  Error: incorrect object type: unknown

After:

  $ bpftool map show pinned /sys/fs/bpf/maps.debug
  Error: incorrect object type: link

Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Quentin Monnet <quentin@isovalent.com>
Link: https://lore.kernel.org/bpf/20220629154832.56986-5-laoar.shao@gmail.com
tools/bpf/bpftool/common.c