Home
last modified time | relevance | path

Searched refs:READ_ONCE (Results 1 – 25 of 82) sorted by relevance

1234

/tools/memory-model/litmus-tests/
DSB+rfionceonce-poonceonces.litmus17 r1 = READ_ONCE(*x);
18 r2 = READ_ONCE(*y);
27 r3 = READ_ONCE(*y);
28 r4 = READ_ONCE(*x);
DISA2+poonceonces.litmus9 * of the smp_load_acquire() invocations are replaced by READ_ONCE()?
24 r0 = READ_ONCE(*y);
33 r0 = READ_ONCE(*z);
34 r1 = READ_ONCE(*x);
DIRIW+poonceonces+OnceOnce.litmus25 r0 = READ_ONCE(*x);
26 r1 = READ_ONCE(*y);
39 r0 = READ_ONCE(*y);
40 r1 = READ_ONCE(*x);
DIRIW+fencembonceonces+OnceOnce.litmus25 r0 = READ_ONCE(*x);
27 r1 = READ_ONCE(*y);
40 r0 = READ_ONCE(*y);
42 r1 = READ_ONCE(*x);
DWRC+poonceonces+Once.litmus22 r0 = READ_ONCE(*x);
31 r0 = READ_ONCE(*y);
32 r1 = READ_ONCE(*x);
DISA2+pooncelock+pooncelock+pombonce.litmus25 r0 = READ_ONCE(*y);
35 r2 = READ_ONCE(*z);
37 r1 = READ_ONCE(*x);
DWRC+pooncerelease+fencermbonceonce+Once.litmus24 r0 = READ_ONCE(*x);
33 r0 = READ_ONCE(*y);
35 r1 = READ_ONCE(*x);
DCoRR+poonceonce+Once.litmus22 r0 = READ_ONCE(*x);
23 r1 = READ_ONCE(*x);
DLB+poonceonces.litmus16 r0 = READ_ONCE(*x);
24 r0 = READ_ONCE(*y);
DMP+poonceonces.litmus23 r0 = READ_ONCE(*flag);
24 r1 = READ_ONCE(*buf);
DSB+poonceonces.litmus18 r0 = READ_ONCE(*y);
26 r0 = READ_ONCE(*x);
DS+poonceonces.litmus9 * READ_ONCE(), is ordering preserved?
24 r0 = READ_ONCE(*y);
DMP+fencewmbonceonce+fencermbonceonce.litmus25 r0 = READ_ONCE(*flag);
27 r1 = READ_ONCE(*buf);
DSB+fencembonceonces.litmus20 r0 = READ_ONCE(*y);
29 r0 = READ_ONCE(*x);
DZ6.0+pooncelock+pooncelock+pombonce.litmus26 r0 = READ_ONCE(*y);
37 r1 = READ_ONCE(*x);
DZ6.0+pooncelock+poonceLock+pombonce.litmus28 r0 = READ_ONCE(*y);
39 r1 = READ_ONCE(*x);
DLB+fencembonceonce+ctrlonceonce.litmus20 r0 = READ_ONCE(*x);
29 r0 = READ_ONCE(*y);
DMP+porevlocks.litmus21 r0 = READ_ONCE(*flag);
23 r1 = READ_ONCE(*buf);
/tools/lib/perf/
Dmmap.c312 seq = READ_ONCE(pc->lock); in perf_mmap__read_self()
315 count->ena = READ_ONCE(pc->time_enabled); in perf_mmap__read_self()
316 count->run = READ_ONCE(pc->time_running); in perf_mmap__read_self()
320 time_mult = READ_ONCE(pc->time_mult); in perf_mmap__read_self()
321 time_shift = READ_ONCE(pc->time_shift); in perf_mmap__read_self()
322 time_offset = READ_ONCE(pc->time_offset); in perf_mmap__read_self()
325 time_cycles = READ_ONCE(pc->time_cycles); in perf_mmap__read_self()
326 time_mask = READ_ONCE(pc->time_mask); in perf_mmap__read_self()
330 idx = READ_ONCE(pc->index); in perf_mmap__read_self()
331 cnt = READ_ONCE(pc->offset); in perf_mmap__read_self()
[all …]
/tools/testing/selftests/bpf/prog_tests/
Dtimer_mim.c25 cnt1 = READ_ONCE(timer_skel->bss->cnt); in timer_mim()
27 cnt2 = READ_ONCE(timer_skel->bss->cnt); in timer_mim()
43 cnt1 = READ_ONCE(timer_skel->bss->cnt); in timer_mim()
46 cnt2 = READ_ONCE(timer_skel->bss->cnt); in timer_mim()
Dfexit_sleep.c46 while (READ_ONCE(fexit_skel->bss->fentry_cnt) != 2); in test_fexit_sleep()
47 fexit_cnt = READ_ONCE(fexit_skel->bss->fexit_cnt); in test_fexit_sleep()
76 fexit_cnt = READ_ONCE(fexit_skel->bss->fexit_cnt); in test_fexit_sleep()
/tools/memory-model/Documentation/
Dcontrol-dependencies.txt15 q = READ_ONCE(a);
17 p = READ_ONCE(b);
25 q = READ_ONCE(a);
28 p = READ_ONCE(b);
35 q = READ_ONCE(a);
40 of ordering. But please note that neither the READ_ONCE() nor the
41 WRITE_ONCE() are optional. Without the READ_ONCE(), the compiler might
55 So don't leave out either the READ_ONCE() or the WRITE_ONCE().
56 In particular, although READ_ONCE() does force the compiler to emit a
62 q = READ_ONCE(a);
[all …]
/tools/testing/selftests/rcutorture/formal/srcu-cbmc/tests/store_buffering/
Dtest.c21 __unbuffered_tpr_y = READ_ONCE(y); in rcu_reader()
41 __unbuffered_tpr_x = READ_ONCE(x); in thread_update()
/tools/testing/selftests/kvm/
Dsteal_time.c33 GUEST_ASSERT(!(READ_ONCE(st->version) & 1)); in check_status()
34 GUEST_ASSERT(READ_ONCE(st->flags) == 0); in check_status()
35 GUEST_ASSERT(READ_ONCE(st->preempted) == 0); in check_status()
50 version = READ_ONCE(st->version); in guest_code()
55 GUEST_ASSERT(version < READ_ONCE(st->version)); in guest_code()
136 GUEST_ASSERT(READ_ONCE(st->rev) == 0); in check_status()
137 GUEST_ASSERT(READ_ONCE(st->attr) == 0); in check_status()
Dkvm_page_table_test.c109 switch (READ_ONCE(*current_stage)) { in guest_code()
129 READ_ONCE(*(uint64_t *)addr); in guest_code()
166 READ_ONCE(*(uint64_t *)addr); in guest_code()
181 READ_ONCE(*(uint64_t *)addr); in guest_code()
208 while (!READ_ONCE(host_quit)) { in vcpu_worker()
212 if (READ_ONCE(host_quit)) in vcpu_worker()
225 stage = READ_ONCE(*current_stage); in vcpu_worker()

1234