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 |
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>
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 --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}
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(+)