Skip to content

Commit

Permalink
scripts/pahole-flags.sh: Enable parallelization of pahole.
Browse files Browse the repository at this point in the history
Pass a -j argument to pahole to parse DWARF and generate BTF with
multithreading (-j without arguments means one thread per CPU).
This also requires to check the version of pahole to then apply -j
only if >= v1.22.

Signed-off-by: Kui-Feng Lee <kuifeng@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20220216193431.2691015-1-kuifeng@fb.com
  • Loading branch information
Kui-Feng Lee authored and borkmann committed Feb 17, 2022
1 parent 1b8c924 commit 9e98ace
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/pahole-flags.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}

0 comments on commit 9e98ace

Please sign in to comment.