kernel_optimize_test/tools/bpf/bpftool
Tobias Klauser 9023497d87 tools, bpftool: Define prog_type_name array only once
Define prog_type_name in prog.c instead of main.h so it is only defined
once. This leads to a slight decrease in the binary size of bpftool.

Before:

   text	   data	    bss	    dec	    hex	filename
 401032	  11936	1573160	1986128	 1e4e50	bpftool

After:

   text	   data	    bss	    dec	    hex	filename
 399024	  11168	1573160	1983352	 1e4378	bpftool

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Quentin Monnet <quentin@isovalent.com>
Link: https://lore.kernel.org/bpf/20200624143124.12914-1-tklauser@distanz.ch
2020-06-25 16:06:01 +02:00
..
bash-completion bpf, bpftool: Enable get{peer, sock}name attach types 2020-05-19 11:32:04 -07:00
Documentation tools/bpftool: Add documentation and sample output for process info 2020-06-22 17:01:49 -07:00
skeleton tools/bpftool: Show info for processes holding BPF map/prog/link/btf FDs 2020-06-22 17:01:49 -07:00
.gitignore tools/bpftool: Generalize BPF skeleton support and generate vmlinux.h 2020-06-22 17:01:48 -07:00
btf_dumper.c tools, bpftool: Poison and replace kernel integer typedefs 2020-05-11 21:20:46 +02:00
btf.c tools/bpftool: Show info for processes holding BPF map/prog/link/btf FDs 2020-06-22 17:01:49 -07:00
cfg.c tools, bpftool: Poison and replace kernel integer typedefs 2020-05-11 21:20:46 +02:00
cfg.h
cgroup.c tools, bpftool: Clean subcommand help messages 2020-06-01 14:38:18 -07:00
common.c tools/bpftool: Move map/prog parsing logic into common 2020-06-22 17:01:48 -07:00
feature.c tools, bpftool: Define prog_type_name array only once 2020-06-25 16:06:01 +02:00
gen.c tools/bpftool: Fix skeleton codegen 2020-06-12 15:25:04 -07:00
iter.c tools, bpftool: Clean subcommand help messages 2020-06-01 14:38:18 -07:00
jit_disasm.c tools/bpf/bpftool: Remove duplicate headers 2020-04-26 08:40:01 -07:00
json_writer.c tools: bpftool: move "__printf()" attributes to header file 2019-08-15 22:06:46 -07:00
json_writer.h tools: bpftool: move "__printf()" attributes to header file 2019-08-15 22:06:46 -07:00
link.c tools, bpftool: Define prog_type_name array only once 2020-06-25 16:06:01 +02:00
main.c tools/bpftool: Show info for processes holding BPF map/prog/link/btf FDs 2020-06-22 17:01:49 -07:00
main.h tools, bpftool: Define prog_type_name array only once 2020-06-25 16:06:01 +02:00
Makefile tools, bpftool: Correctly evaluate $(BUILD_BPF_SKELS) in Makefile 2020-06-24 00:06:46 +02:00
map_perf_ring.c tools, bpftool: Poison and replace kernel integer typedefs 2020-05-11 21:20:46 +02:00
map.c tools, bpftool: Define prog_type_name array only once 2020-06-25 16:06:01 +02:00
net.c tools, bpftool: Clean subcommand help messages 2020-06-01 14:38:18 -07:00
netlink_dumper.c bpftool: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
netlink_dumper.h tools: bpftool: dual license all files 2018-12-13 12:08:44 +01:00
perf.c tools, bpftool: Clean subcommand help messages 2020-06-01 14:38:18 -07:00
pids.c tools, bpftool: Fix variable shadowing in emit_obj_refs_json() 2020-06-24 15:46:28 +02:00
prog.c tools, bpftool: Define prog_type_name array only once 2020-06-25 16:06:01 +02:00
struct_ops.c tools, bpftool: Clean subcommand help messages 2020-06-01 14:38:18 -07:00
tracelog.c tools: bpftool: add an option to prevent auto-mount of bpffs, tracefs 2018-12-18 14:47:17 +01:00
xlated_dumper.c bpftool: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
xlated_dumper.h