diff mbox series

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

Message ID 20220216193431.2691015-1-kuifeng@fb.com (mailing list archive)
State Changes Requested
Delegated to: BPF
Headers show
Series [v2,bpf-next] scripts/pahole-flags.sh: Enable parallelization of pahole. | expand

Checks

Context Check Description
netdev/tree_selection success Clearly marked for bpf-next
netdev/fixes_present success Fixes tag not required for -next series
netdev/subject_prefix success Link
netdev/cover_letter success Single patches do not need cover letters
netdev/patch_count success Link
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 0 this patch: 0
netdev/cc_maintainers warning 6 maintainers not CCed: kpsingh@kernel.org john.fastabend@gmail.com kafai@fb.com songliubraving@fb.com yhs@fb.com netdev@vger.kernel.org
netdev/build_clang success Errors and warnings before: 0 this patch: 0
netdev/module_param success Was 0 now: 0
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/verify_fixes success No Fixes tag
netdev/build_allmodconfig_warn success Errors and warnings before: 0 this patch: 0
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 8 lines checked
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0
bpf/vmtest-bpf-next-PR fail merge-conflict
bpf/vmtest-bpf-next fail VM_Test

Commit Message

Kui-Feng Lee Feb. 16, 2022, 7:34 p.m. UTC
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@fb.com>
---
 scripts/pahole-flags.sh | 3 +++
 1 file changed, 3 insertions(+)

Comments

Yonghong Song Feb. 16, 2022, 8:38 p.m. UTC | #1
On 2/16/22 11:34 AM, 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@fb.com>

Acked-by: Yonghong Song <yhs@fb.com>
Daniel Borkmann Feb. 17, 2022, 3:22 p.m. UTC | #2
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@fb.com>
> ---
>   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!
diff mbox series

Patch

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"
+fi
 
 echo ${extra_paholeopt}