Skip to contentSkip to conversation

scripts/pahole-flags.sh: Enable parallelization of pahole.

PATCH In review Kui-Feng Lee 3 participants 3 messages Feb 16, 2022 – Feb 17, 2022 BPF

lore
Share & tools
lore
#0 lore raw

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.

---
 scripts/pahole-flags.sh | 3 +++
 1 file changed, 3 insertions(+)
scripts/pahole-flags.sh +3 -0
index c293941612e7..264c05020263 100755
@@ -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
maintainer
#2 lore raw
In reply to Kui-Feng Lee
Quoted 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.

---
  scripts/pahole-flags.sh | 3 +++
  1 file changed, 3 insertions(+)
scripts/pahole-flags.sh +0 -0
index c293941612e7..264c05020263 100755

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!