Home
last modified time | relevance | path

Searched refs:barrier (Results 1 – 25 of 42) sorted by relevance

12

/tools/virtio/ringtest/
Dmain.h91 #define barrier() asm volatile("" ::: "memory") macro
97 #define cpu_relax() barrier()
110 barrier(); in busy_wait()
128 barrier(); \
134 barrier(); \
138 #define smp_wmb() barrier()
158 barrier(); \ in __read_once_size()
160 barrier(); \ in __read_once_size()
172 barrier(); in __write_once_size()
174 barrier(); in __write_once_size()
/tools/build/feature/
Dtest-pthread-barrier.c7 pthread_barrier_t barrier; in main() local
9 pthread_barrier_init(&barrier, NULL, 1); in main()
10 pthread_barrier_wait(&barrier); in main()
11 return pthread_barrier_destroy(&barrier); in main()
/tools/testing/selftests/bpf/progs/
Dloop5.c5 #define barrier() __asm__ __volatile__("": : :"memory") macro
21 barrier(); in while_true()
24 barrier(); in while_true()
27 barrier(); in while_true()
Dtest_pkt_access.c17 #define barrier() __asm__ __volatile__("": : :"memory") macro
142 barrier(); /* to force ordering of checks */ in test_pkt_access()
/tools/virtio/asm/
Dbarrier.h4 #define barrier() asm volatile("" ::: "memory") macro
6 #define virt_rmb() barrier()
7 #define virt_wmb() barrier()
13 barrier(); \
30 #error Please fill in barrier macros
/tools/arch/x86/include/asm/
Dbarrier.h27 #define smp_rmb() barrier()
28 #define smp_wmb() barrier()
35 barrier(); \
42 barrier(); \
/tools/testing/selftests/perf_events/
Dsigtrap_threads.c86 pthread_barrier_t *barrier = (pthread_barrier_t *)arg; in test_thread() local
91 pthread_barrier_wait(barrier); in test_thread()
107 pthread_barrier_t barrier; in FIXTURE() local
130 pthread_barrier_init(&self->barrier, NULL, NUM_THREADS + 1); in FIXTURE_SETUP()
132 ASSERT_EQ(pthread_create(&self->threads[i], NULL, test_thread, &self->barrier), 0); in FIXTURE_SETUP()
137 pthread_barrier_destroy(&self->barrier); in FIXTURE_TEARDOWN()
147 pthread_barrier_wait(&self->barrier); in run_test_threads()
/tools/include/linux/
Dcompiler.h39 #define barrier() __asm__ __volatile__("": : :"memory") macro
135 barrier(); in __read_once_size()
137 barrier(); in __read_once_size()
149 barrier(); in __write_once_size()
151 barrier(); in __write_once_size()
/tools/testing/selftests/futex/functional/
Dfutex_wait_timeout.c26 static pthread_barrier_t barrier; variable
51 pthread_barrier_wait(&barrier); in get_pi_lock()
129 pthread_barrier_init(&barrier, NULL, 2); in main()
164 pthread_barrier_wait(&barrier); in main()
165 pthread_barrier_destroy(&barrier); in main()
/tools/arch/ia64/include/asm/
Dbarrier.h48 barrier(); \
55 barrier(); \
/tools/arch/s390/include/asm/
Dbarrier.h33 barrier(); \
40 barrier(); \
/tools/arch/sparc/include/asm/
Dbarrier_64.h45 barrier(); \
52 barrier(); \
/tools/memory-model/litmus-tests/
DLB+fencembonceonce+ctrlonceonce.litmus9 * combination of a control dependency and a full memory barrier are enough
10 * to do the trick. (But the full memory barrier could be replaced with
DWRC+pooncerelease+fencermbonceonce+Once.litmus8 * a release and a read memory barrier, it should be forbidden. More
DZ6.0+pooncerelease+poacquirerelease+fencembonceonce.litmus13 * full barrier for each non-rf link. (Exceptions include some cases
/tools/arch/xtensa/include/asm/
Dbarrier.h15 #define rmb() barrier()
/tools/perf/bench/
Dfutex-wake-parallel.c54 static pthread_barrier_t barrier; variable
81 pthread_barrier_wait(&barrier); in waking_workerfn()
103 pthread_barrier_init(&barrier, NULL, params.nwakes + 1); in wakeup_threads()
117 pthread_barrier_wait(&barrier); in wakeup_threads()
123 pthread_barrier_destroy(&barrier); in wakeup_threads()
/tools/include/asm-generic/
Dbarrier.h28 #define mb() barrier()
/tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/
Dbarriers.h5 #define barrier() __asm__ __volatile__("" : : : "memory") macro
/tools/perf/arch/x86/tests/
Drdpmc.c45 barrier(); in mmap_read_self()
62 barrier(); in mmap_read_self()
/tools/memory-model/Documentation/
Dcontrol-dependencies.txt13 unless a read memory barrier is provided. Consider the following code:
22 from "a". This means that an explicit read barrier is required, for example
64 barrier();
68 barrier();
77 barrier();
143 tempting to add a barrier(), but this does not help. The conditional
144 is gone, and the barrier won't bring it back. Therefore, if you need
230 barrier() at beginning and end of each leg of the "if" statement
233 barrier() law.
Dordering.txt11 1. Barriers (also known as "fences"). A barrier orders some or
40 c. Write memory barrier.
42 d. Read memory barrier.
44 e. Compiler barrier.
60 o The smp_mb() full memory barrier.
67 First, the smp_mb() full memory barrier orders all of the CPU's prior
122 to also rely on its additional full-memory-barrier semantics. Just please
176 The Linux kernel's write memory barrier is smp_wmb(). If a CPU executes
208 The Linux kernel's read memory barrier is smp_rmb(). If a CPU executes
222 The Linux kernel's compiler barrier is barrier(). This primitive
[all …]
/tools/testing/selftests/powerpc/mm/
Dlarge_vm_fork_separation.c65 barrier(); in test()
Dstack_expansion_signal.c44 barrier(); in consume_stack()
/tools/memory-model/
Dlinux-kernel.bell27 'barrier (*barrier*) ||

12