kbuild: Unify options for BTF generation for vmlinux and modules
authorJiri Olsa <jolsa@redhat.com>
Wed, 19 Oct 2022 08:56:03 +0000 (10:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Oct 2022 10:57:12 +0000 (12:57 +0200)
commitc5006abb80e276896ff7237300a6d447708c7924
tree46521cdf31d5598a417a4d54316f8ec863ab001c
parentf5f413cb3e8af235c5d310bea9942424fb242c2c
kbuild: Unify options for BTF generation for vmlinux and modules

commit 9741e07ece7c247dd65e1aa01e16b683f01c05a8 upstream.

[skipped --btf_gen_floats option in pahole-flags.sh, skipped
Makefile.modfinal change, because there's no BTF kmod support,
squashing in 'exit 0' change from merge commit fc02cb2b37fe]

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Makefile
scripts/link-vmlinux.sh
scripts/pahole-flags.sh [new file with mode: 0755]