diff options
| author | Alexei Starovoitov <ast@kernel.org> | 2024-03-28 04:53:49 +0300 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2024-03-29 04:31:41 +0300 |
| commit | e478cf26c556e4ab572ab0ab2306c986901dcd61 (patch) | |
| tree | a9404bc5f4df93821255a1867c7365b5ddae9d1e /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 5da7fb04902b0f0fcd13bc5ef216e232fa971efa (diff) | |
| parent | 6302bdeb91df9b4484b9d537c29f8b6117f3f73d (diff) | |
| download | linux-e478cf26c556e4ab572ab0ab2306c986901dcd61.tar.xz | |
Merge branch 'bpf-fix-a-couple-of-test-failures-with-lto-kernel'
Yonghong Song says:
====================
bpf: Fix a couple of test failures with LTO kernel
With a LTO kernel built with clang, with one of earlier version of kernel,
I encountered two test failures, ksyms and kprobe_multi_bench_attach/kernel.
Now with latest bpf-next, only kprobe_multi_bench_attach/kernel failed.
But it is possible in the future ksyms selftest may fail again.
Both test failures are due to static variable/function renaming
due to cross-file inlining. For Ksyms failure, the solution is
to strip .llvm.<hash> suffixes for symbols in /proc/kallsyms before
comparing against the ksym in bpf program.
For kprobe_multi_bench_attach/kernel failure, the solution is
to either provide names in /proc/kallsyms to the kernel or
ignore those names who have .llvm.<hash> suffix since the kernel
sym name comparison is against /proc/kallsyms.
Please see each individual patches for details.
Changelogs:
v2 -> v3:
- no need to check config file, directly so strstr with '.llvm.'.
- for kprobe_multi_bench with syms, instead of skipping the syms,
consult /proc/kallyms to find corresponding names.
- add a test with populating addrs to the kernel for kprobe
multi attach.
v1 -> v2:
- Let libbpf handle .llvm.<hash suffixes since it may impact
bpf program ksym.
====================
Link: https://lore.kernel.org/r/20240326041443.1197498-1-yonghong.song@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
