Em Wed, Jan 26, 2022 at 11:58:27AM -0800, Andrii Nakryiko escreveu: > On Wed, Jan 26, 2022 at 11:21 AM Kui-Feng Lee <kuifeng@xxxxxx> wrote: > > > > Create an instance of btf for each worker thread, and add type info to > > the local btf instance in the steal-function of pahole without mutex > > acquiring. Once finished with all worker threads, merge all > > per-thread btf instances to the primary btf instance. > > > > Signed-off-by: Kui-Feng Lee <kuifeng@xxxxxx> > > --- > > There are still unnecessary casts and missing {} in the else branch, > but I'll let Arnaldo decide or fix it up. Yeah, I'll do some sanitization, thanks for all the review! - Arnaldo > Once this lands, can you please send kernel patch to use -j if pahole > support it during the kernel build? See scripts/pahole-version.sh and > scripts/link-vmlinux.sh for how pahole is set up and used in the > kernel. Thanks! > > Acked-by: Andrii Nakryiko <andrii@xxxxxxxxxx> > > > btf_encoder.c | 5 ++ > > btf_encoder.h | 2 + > > pahole.c | 125 ++++++++++++++++++++++++++++++++++++++++++++++---- > > 3 files changed, 124 insertions(+), 8 deletions(-) > > > > [...] -- - Arnaldo