diff options
| author | Tobias Klauser <[email protected]> | 2020-06-24 14:31:54 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2020-06-25 14:06:01 +0000 |
| commit | 16d37ee3d2b1c30052ba5ebb69556040fc174061 (patch) | |
| tree | 21078193ce697a9cf994e7bd8f548c6cdcf49ff6 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
| parent | tools, bpftool: Define prog_type_name array only once (diff) | |
| download | kernel-16d37ee3d2b1c30052ba5ebb69556040fc174061.tar.gz kernel-16d37ee3d2b1c30052ba5ebb69556040fc174061.zip | |
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 <[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/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions
