Skip to content

Commit c30c5af

Browse files
Kui-Feng LeeNobody
Kui-Feng Lee
authored and
Nobody
committed
scripts/pahole-flags.sh: Enable parallelization of pahole.
Pass a -j argument to pahole to parse DWARF and generate BTF with multithreading. v2 checks the version of pahole to apply -j only if >= v1.22. Signed-off-by: Kui-Feng Lee <[email protected]> Acked-by: Yonghong Song <[email protected]>
1 parent 6492b8d commit c30c5af

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)