Skip to contentSkip to conversation

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

PATCH Superseded Kui-Feng Lee 2 participants 3 messages Feb 16, 2022 BPF

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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

Pass a -j argument to pahole to parse DWARF and generate BTF with multithreading.

---
 scripts/pahole-flags.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/pahole-flags.sh +1 -1
index c293941612e7..73f237ce44e8 100755
@@ -1,7 +1,7 @@
 #!/bin/sh
 # SPDX-License-Identifier: GPL-2.0
 
-extra_paholeopt=
+extra_paholeopt=-j
 
 if ! [ -x "$(command -v ${PAHOLE})" ]; then
 	exit 0
Signature · 1 line
2.30.2
#1 lore raw
Quoted 13 lines · Kui-Feng Lee

Pass a -j argument to pahole to parse DWARF and generate BTF with multithreading.

---
  scripts/pahole-flags.sh | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
scripts/pahole-flags.sh +0 -0
index c293941612e7..73f237ce44e8 100755

scripts/pahole-flags.sh line 4

Quoted 5 lines
scripts/pahole-flags.sh +1 -1
@@ -1,7 +1,7 @@
  #!/bin/sh
  # SPDX-License-Identifier: GPL-2.0
 
-extra_paholeopt=
+extra_paholeopt=-j

-j option seems only available for version >= 1.22 (please double check).
The script scripts/pahole-version.sh can be used to determine the pahole version.

Quoted 3 lines
scripts/pahole-flags.sh +0 -0
  if ! [ -x "$(command -v ${PAHOLE})" ]; then
  	exit 0
#2 lore raw
Quoted 11 lines · Yonghong Song
Quoted 8 lines · Kui-Feng Lee

Pass a -j argument to pahole to parse DWARF and generate BTF with multithreading.

---
  scripts/pahole-flags.sh | 2 +-

  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 16 lines

scripts/pahole-flags.sh line 4

Quoted 10 lines
scripts/pahole-flags.sh +0 -0
index c293941612e7..73f237ce44e8 100755
@@ -1,7 +1,7 @@
   #!/bin/sh
   # SPDX-License-Identifier: GPL-2.0

scripts/pahole-flags.sh +1 -1
-extra_paholeopt=
+extra_paholeopt=-j

-j option seems only available for version >= 1.22 (please double check).
The script scripts/pahole-version.sh can be used to determine the pahole version.

You are right. Thank you for the feedback.