kbuild: Unify options for BTF generation for vmlinux and modules
authorJiri Olsa <jolsa@redhat.com>
Fri, 29 Oct 2021 12:57:29 +0000 (14:57 +0200)
committerAndrii Nakryiko <andrii@kernel.org>
Tue, 2 Nov 2021 01:09:58 +0000 (18:09 -0700)
commit9741e07ece7c247dd65e1aa01e16b683f01c05a8
treef8124044849c3341e81ed559ec03e4fa2dbc94e9
parent0869e5078afbd1b22c20832b391b2d85291bc0a8
kbuild: Unify options for BTF generation for vmlinux and modules

Using new PAHOLE_FLAGS variable to pass extra arguments to
pahole for both vmlinux and modules BTF data generation.

Adding new scripts/pahole-flags.sh script that detect and
prints pahole options.

[ fixed issues found by kernel test robot ]

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20211029125729.70002-1-jolsa@kernel.org
Makefile
scripts/Makefile.modfinal
scripts/link-vmlinux.sh
scripts/pahole-flags.sh [new file with mode: 0755]