scripts/pahole-flags.sh: Enable parallelization of pahole.
PATCH v2 1/1 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]>
--- scripts/pahole-flags.sh | 3 +++ 1 file changed, 3 insertions(+)
scripts/pahole-flags.sh +3 -0
@@ -16,5 +16,8 @@ fi if [ "${pahole_ver}" -ge "121" ]; then extra_paholeopt="${extra_paholeopt} --btf_gen_floats" fi +if [ "${pahole_ver}" -ge "122" ]; then + extra_paholeopt="${extra_paholeopt} -j" +fi echo ${extra_paholeopt}
Signature · 1 line
2.30.2
Quoted 6 lines · Kui-Feng Lee
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]>
Daniel Borkmann
maintainerQuoted 15 lines · Kui-Feng Lee
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]>--- scripts/pahole-flags.sh | 3 +++ 1 file changed, 3 insertions(+)scripts/pahole-flags.sh +0
-0
scripts/pahole-flags.sh fi · line 20
Quoted 5 lines
scripts/pahole-flags.sh +2
-0@@ -16,5 +16,8 @@ fi if [ "${pahole_ver}" -ge "121" ]; then extra_paholeopt="${extra_paholeopt} --btf_gen_floats" fi +if [ "${pahole_ver}" -ge "122" ]; then + extra_paholeopt="${extra_paholeopt} -j"
Fixed up whitespace and improved commit desc while applying, thanks!