diff options
| author | Maxim Khmelevskii <max@linux.ibm.com> | 2026-07-08 12:47:17 +0200 |
|---|---|---|
| committer | Kumar Kartikeya Dwivedi <memxor@gmail.com> | 2026-07-08 21:55:23 +0200 |
| commit | 41ec7e4a17792599af6c208dcc32c038a9f78da8 (patch) | |
| tree | 51e22a678e468ab768040abe26cbee2c5f29bf28 /tools/perf/scripts/python | |
| parent | 43f129d2148983f69f8f9c34f2a64d27f888bef1 (diff) | |
selftests/bpf: Skip res_spin_lock_stress if no perf support
Probe PMU support before loading bpf_test_rqspinlock.ko,
otherwise the test fails with not obvious error without
proper perf event support:
Failed to load bpf_test_rqspinlock.ko into the kernel: -2
serial_test_res_spin_lock_stress:FAIL:load module AA
unexpected error: -22 (errno 2)
Reported-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Maxim Khmelevskii <max@linux.ibm.com>
Reviewed-by: Ilya Leoshkevich <iii@linux.ibm.com>
Link: https://lore.kernel.org/bpf/20260708104729.1248234-2-max@linux.ibm.com
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
