/tools/virtio/ringtest/ |
D | main.h | 91 #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/ |
D | test-pthread-barrier.c | 7 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/ |
D | loop5.c | 5 #define barrier() __asm__ __volatile__("": : :"memory") macro 21 barrier(); in while_true() 24 barrier(); in while_true() 27 barrier(); in while_true()
|
D | test_pkt_access.c | 17 #define barrier() __asm__ __volatile__("": : :"memory") macro 142 barrier(); /* to force ordering of checks */ in test_pkt_access()
|
/tools/virtio/asm/ |
D | barrier.h | 4 #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/ |
D | barrier.h | 27 #define smp_rmb() barrier() 28 #define smp_wmb() barrier() 35 barrier(); \ 42 barrier(); \
|
/tools/testing/selftests/perf_events/ |
D | sigtrap_threads.c | 86 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/ |
D | compiler.h | 39 #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/ |
D | futex_wait_timeout.c | 26 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/ |
D | barrier.h | 48 barrier(); \ 55 barrier(); \
|
/tools/arch/s390/include/asm/ |
D | barrier.h | 33 barrier(); \ 40 barrier(); \
|
/tools/arch/sparc/include/asm/ |
D | barrier_64.h | 45 barrier(); \ 52 barrier(); \
|
/tools/memory-model/litmus-tests/ |
D | LB+fencembonceonce+ctrlonceonce.litmus | 9 * 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
|
D | WRC+pooncerelease+fencermbonceonce+Once.litmus | 8 * a release and a read memory barrier, it should be forbidden. More
|
D | Z6.0+pooncerelease+poacquirerelease+fencembonceonce.litmus | 13 * full barrier for each non-rf link. (Exceptions include some cases
|
/tools/arch/xtensa/include/asm/ |
D | barrier.h | 15 #define rmb() barrier()
|
/tools/perf/bench/ |
D | futex-wake-parallel.c | 54 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/ |
D | barrier.h | 28 #define mb() barrier()
|
/tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/ |
D | barriers.h | 5 #define barrier() __asm__ __volatile__("" : : : "memory") macro
|
/tools/perf/arch/x86/tests/ |
D | rdpmc.c | 45 barrier(); in mmap_read_self() 62 barrier(); in mmap_read_self()
|
/tools/memory-model/Documentation/ |
D | control-dependencies.txt | 13 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.
|
D | ordering.txt | 11 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/ |
D | large_vm_fork_separation.c | 65 barrier(); in test()
|
D | stack_expansion_signal.c | 44 barrier(); in consume_stack()
|
/tools/memory-model/ |
D | linux-kernel.bell | 27 'barrier (*barrier*) ||
|