linux/tools/bpf/bpftool
Roman Gushchin 45e5e1212a bpftool: recognize BPF_PROG_TYPE_CGROUP_DEVICE programs
Bpftool doesn't recognize BPF_PROG_TYPE_CGROUP_DEVICE programs,
so the prog show command prints the numeric type value:

$ bpftool prog show
1: type 15  name bpf_prog1  tag ac9f93dbfd6d9b74
	loaded_at Jan 15/07:58  uid 0
	xlated 96B  jited 105B  memlock 4096B

This patch defines the corresponding textual representation:

$ bpftool prog show
1: cgroup_device  name bpf_prog1  tag ac9f93dbfd6d9b74
	loaded_at Jan 15/07:58  uid 0
	xlated 96B  jited 105B  memlock 4096B

Signed-off-by: Roman Gushchin <guro@fb.com>
Cc: Jakub Kicinski <jakub.kicinski@netronome.com>
Cc: Quentin Monnet <quentin.monnet@netronome.com>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Alexei Starovoitov <ast@kernel.org>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2018-01-16 02:49:49 +01:00
..
bash-completion tools: bpftool: alias show and list commands 2018-01-04 12:28:46 +01:00
Documentation tools: bpftool: alias show and list commands 2018-01-04 12:28:46 +01:00
cgroup.c tools: bpftool: remove new lines from errors 2018-01-04 12:28:46 +01:00
common.c tools: bpftool: report device information for offloaded programs 2017-12-31 16:12:23 +01:00
jit_disasm.c tools/bpftool: fix bpftool build with bintutils >= 2.9 2017-12-30 01:07:36 +01:00
json_writer.c tools: bpftool: add JSON output for bpftool prog dump xlated * command 2017-10-24 01:25:08 +01:00
json_writer.h tools: bpftool: add JSON output for bpftool prog dump xlated * command 2017-10-24 01:25:08 +01:00
main.c tools/bpftool: use version from the kernel source tree 2017-12-30 01:07:36 +01:00
main.h tools: bpftool: report device information for offloaded programs 2017-12-31 16:12:23 +01:00
Makefile tools/bpftool: fix bpftool build with bintutils >= 2.9 2017-12-30 01:07:36 +01:00
map.c tools: bpftool: alias show and list commands 2018-01-04 12:28:46 +01:00
prog.c bpftool: recognize BPF_PROG_TYPE_CGROUP_DEVICE programs 2018-01-16 02:49:49 +01:00