Re: [PATCH v2 0/6] maps memory improvements and fixes

From: Namhyung Kim
Date: Thu Feb 08 2024 - 12:44:34 EST


Hi Ian,

On Wed, Feb 7, 2024 at 2:37 PM Ian Rogers <irogers@xxxxxxxxxx> wrote:
>
> First 6 patches from:
> https://lore.kernel.org/lkml/20240202061532.1939474-1-irogers@xxxxxxxxxx/
>
> v2. Fix NO_LIBUNWIND=1 build issue.
>
> Ian Rogers (6):
> perf maps: Switch from rbtree to lazily sorted array for addresses
> perf maps: Get map before returning in maps__find
> perf maps: Get map before returning in maps__find_by_name
> perf maps: Get map before returning in maps__find_next_entry
> perf maps: Hide maps internals
> perf maps: Locking tidy up of nr_maps

Now I see a perf test failure on the vmlinux test:

$ sudo ./perf test -v vmlinux
1: vmlinux symtab matches kallsyms :
--- start ---
test child forked, pid 4164115
/proc/{kallsyms,modules} inconsistency while looking for
"[__builtin__kprobes]" module!
/proc/{kallsyms,modules} inconsistency while looking for
"[__builtin__kprobes]" module!
/proc/{kallsyms,modules} inconsistency while looking for
"[__builtin__ftrace]" module!
Looking at the vmlinux_path (8 entries long)
Using /usr/lib/debug/boot/vmlinux-6.5.13-1rodete2-amd64 for symbols
perf: Segmentation fault
Obtained 16 stack frames.
/perf(+0x1b7dcd) [0x55c40be97dcd]
/perf(+0x1b7eb7) [0x55c40be97eb7]
/lib/x86_64-linux-gnu/libc.so.6(+0x3c510) [0x7f33d7a5a510]
/perf(+0x1c2e9c) [0x55c40bea2e9c]
/perf(+0x1c43f6) [0x55c40bea43f6]
/perf(+0x1c4649) [0x55c40bea4649]
/perf(+0x1c46d3) [0x55c40bea46d3]
/perf(+0x1c7303) [0x55c40bea7303]
/perf(+0x1c70b5) [0x55c40bea70b5]
/perf(+0x1c73e6) [0x55c40bea73e6]
/perf(+0x11833e) [0x55c40bdf833e]
/perf(+0x118f78) [0x55c40bdf8f78]
/perf(+0x103d49) [0x55c40bde3d49]
/perf(+0x103e75) [0x55c40bde3e75]
/perf(+0x1044c0) [0x55c40bde44c0]
/perf(+0x104de0) [0x55c40bde4de0]
test child interrupted
---- end ----
vmlinux symtab matches kallsyms: FAILED!


Thanks,
Namhyung