1 // SPDX-License-Identifier: GPL-2.0
3 #include <bpf/bpf_helpers.h>
4 #include <bpf/bpf_tracing.h>
7 #ifdef ENABLE_ATOMICS_TESTS
8 bool skip_tests __attribute((__section__(".data"))) = false;
10 bool skip_tests = true;
13 SEC("fentry/bpf_fentry_test1")
14 int BPF_PROG(sub, int x)
16 #ifdef ENABLE_ATOMICS_TESTS
18 int b = __sync_fetch_and_add(&a, 1);
19 /* b is certainly 0 here. Can the verifier tell? */