kbuild: Unify options for BTF generation for vmlinux and modules
authorJiri Olsa <jolsa@redhat.com>
Sun, 4 Sep 2022 13:19:00 +0000 (15:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Sep 2022 10:28:08 +0000 (12:28 +0200)
commit0baced0e0938f2895ceba54038eaf15ed91032e7
tree242216fa4aed4435cf74866dcc4694a2d296aa2b
parent309aea4b6b813f6678c3a547cfd7fe3a76ffa976
kbuild: Unify options for BTF generation for vmlinux and modules

commit e27f05147bff21408c1b8410ad8e90cd286e7952 upstream.

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/Makefile.modfinal
scripts/link-vmlinux.sh
scripts/pahole-flags.sh [new file with mode: 0644]