diff options
author | Peilin Ye <yepeilin@google.com> | 2025-05-07 03:43:13 +0000 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2025-05-09 10:05:27 -0700 |
commit | 13fdecf3456e21f91a4403f989464edcc5d61c22 (patch) | |
tree | 6bd97c61ed66ec9f1618d1c1105a019ec4cb84be /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | db7a3822b5f474b09db0a776e91f17c8b7d32137 (diff) |
selftests/bpf: Use CAN_USE_LOAD_ACQ_STORE_REL when appropriate
Instead of open-coding the conditions, use
'#ifdef CAN_USE_LOAD_ACQ_STORE_REL' to guard the following tests:
verifier_precision/bpf_load_acquire
verifier_precision/bpf_store_release
verifier_store_release/*
Note that, for the first two tests in verifier_precision.c, switching to
'#ifdef CAN_USE_LOAD_ACQ_STORE_REL' means also checking if
'__clang_major__ >= 18', which has already been guaranteed by the outer
'#if' check.
Acked-by: Björn Töpel <bjorn@kernel.org>
Reviewed-by: Pu Lehui <pulehui@huawei.com>
Tested-by: Björn Töpel <bjorn@rivosinc.com> # QEMU/RVA23
Signed-off-by: Peilin Ye <yepeilin@google.com>
Link: https://lore.kernel.org/r/45d7e025f6e390a8ff36f08fc51e31705ac896bd.1746588351.git.yepeilin@google.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions