diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2020-06-24 16:31:54 +0200 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2020-06-25 16:06:01 +0200 |
commit | 16d37ee3d2b1c30052ba5ebb69556040fc174061 (patch) | |
tree | 21078193ce697a9cf994e7bd8f548c6cdcf49ff6 /tools/lib/bpf | |
parent | 9023497d8746d355bac8ddbc65797a4f553726fd (diff) |
tools, bpftool: Define attach_type_name array only once
Define attach_type_name in common.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
399024 11168 1573160 1983352 1e4378 bpftool
After:
text data bss dec hex filename
398256 10880 1573160 1982296 1e3f58 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/20200624143154.13145-1-tklauser@distanz.ch
Diffstat (limited to 'tools/lib/bpf')
0 files changed, 0 insertions, 0 deletions