aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/common.c
diff options
context:
space:
mode:
authorTobias Klauser <[email protected]>2020-06-24 14:31:24 +0000
committerDaniel Borkmann <[email protected]>2020-06-25 14:06:01 +0000
commit9023497d8746d355bac8ddbc65797a4f553726fd (patch)
treeb7ef80a995f76a54ca664f5869adb78a002ce14f /tools/bpf/bpftool/common.c
parentMerge branch 'bpf_iter_tcp_udp' (diff)
downloadkernel-9023497d8746d355bac8ddbc65797a4f553726fd.tar.gz
kernel-9023497d8746d355bac8ddbc65797a4f553726fd.zip
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 <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Reviewed-by: Quentin Monnet <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/bpf/bpftool/common.c')
0 files changed, 0 insertions, 0 deletions