Skip to content

Commit 9e98ace

Browse files
Kui-Feng Leeborkmann
authored andcommitted
scripts/pahole-flags.sh: Enable parallelization of pahole.
Pass a -j argument to pahole to parse DWARF and generate BTF with multithreading (-j without arguments means one thread per CPU). This also requires to check the version of pahole to then apply -j only if >= v1.22. Signed-off-by: Kui-Feng Lee <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Yonghong Song <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 1b8c924 commit 9e98ace

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)