Re: [PATCH v2 bpf-next] scripts/pahole-flags.sh: Enable parallelization of pahole.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/16/22 8:34 PM, Kui-Feng Lee wrote:
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 <kuifeng@xxxxxx>
---
  scripts/pahole-flags.sh | 3 +++
  1 file changed, 3 insertions(+)

diff --git a/scripts/pahole-flags.sh b/scripts/pahole-flags.sh
index c293941612e7..264c05020263 100755
--- a/scripts/pahole-flags.sh
+++ b/scripts/pahole-flags.sh
@@ -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!



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux