diff options
author | Andrei Matei <[email protected]> | 2020-11-24 22:52:55 -0500 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2020-11-26 00:25:55 +0100 |
commit | fb3558127cb62ba2dea9e3d0efa1bb1d7e5eee2a (patch) | |
tree | 374c267ee03238d92efd31ff1cd74537e7492bc8 /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | 34b82d3ac1058653b3de7be4697b55f67533b1f1 (diff) |
bpf: Fix selftest compilation on clang 11
Before this patch, profiler.inc.h wouldn't compile with clang-11 (before
the __builtin_preserve_enum_value LLVM builtin was introduced in
https://reviews.llvm.org/D83242).
Another test that uses this builtin (test_core_enumval) is conditionally
skipped if the compiler is too old. In that spirit, this patch inhibits
part of populate_cgroup_info(), which needs this CO-RE builtin. The
selftests build again on clang-11.
The affected test (the profiler test) doesn't pass on clang-11 because
it's missing https://reviews.llvm.org/D85570, but at least the test suite
as a whole compiles. The test's expected failure is already called out in
the README.
Signed-off-by: Andrei Matei <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Tested-by: Florian Lehner <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions