Skip to content

Commit b4f7278

Browse files
Kui-Feng Leeanakryiko
authored andcommitted
scripts/pahole-flags.sh: Parse DWARF and generate BTF with multithreading.
Pass a "-j" argument to pahole if possible to reduce the time of generating BTF info. Since v1.22, pahole can parse DWARF and generate BTF with multithreading to speed up the conversion. It will reduce the overall build time of the kernel for seconds. v3 fixes whitespaces and improves the commit description. v2 checks the version of pahole to enable multithreading only if possible. [v2] https://lore.kernel.org/bpf/[email protected]/ [v1] https://lore.kernel.org/bpf/[email protected]/ Signed-off-by: Kui-Feng Lee <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Acked-by: Yonghong Song <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 6966d4c commit b4f7278

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/pahole-flags.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,8 @@ fi
1616
if [ "${pahole_ver}" -ge "121" ]; then
1717
extra_paholeopt="${extra_paholeopt} --btf_gen_floats"
1818
fi
19+
if [ "${pahole_ver}" -ge "122" ]; then
20+
extra_paholeopt="${extra_paholeopt} -j"
21+
fi
1922

2023
echo ${extra_paholeopt}

0 commit comments

Comments
 (0)