Message ID | 20220216004616.2079689-1-kuifeng@fb.com (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | BPF |
Headers | show |
Series | [bpf-next] scripts/pahole-flags.sh: Enable parallelization of pahole. | expand |
On 2/15/22 4:46 PM, Kui-Feng Lee wrote: > Pass a -j argument to pahole to parse DWARF and generate BTF with > multithreading. > > Signed-off-by: Kui-Feng Lee <kuifeng@fb.com> > --- > scripts/pahole-flags.sh | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/pahole-flags.sh b/scripts/pahole-flags.sh > index c293941612e7..73f237ce44e8 100755 > --- a/scripts/pahole-flags.sh > +++ b/scripts/pahole-flags.sh > @@ -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. > > if ! [ -x "$(command -v ${PAHOLE})" ]; then > exit 0
On Tue, 2022-02-15 at 20:32 -0800, Yonghong Song wrote: > > > On 2/15/22 4:46 PM, Kui-Feng Lee wrote: > > Pass a -j argument to pahole to parse DWARF and generate BTF with > > multithreading. > > > > Signed-off-by: Kui-Feng Lee <kuifeng@fb.com> > > --- > > scripts/pahole-flags.sh | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/scripts/pahole-flags.sh b/scripts/pahole-flags.sh > > index c293941612e7..73f237ce44e8 100755 > > --- a/scripts/pahole-flags.sh > > +++ b/scripts/pahole-flags.sh > > @@ -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. > You are right. Thank you for the feedback.
diff --git a/scripts/pahole-flags.sh b/scripts/pahole-flags.sh index c293941612e7..73f237ce44e8 100755 --- a/scripts/pahole-flags.sh +++ b/scripts/pahole-flags.sh @@ -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
Pass a -j argument to pahole to parse DWARF and generate BTF with multithreading. Signed-off-by: Kui-Feng Lee <kuifeng@fb.com> --- scripts/pahole-flags.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)