/Linux-v6.6/include/linux/ |
D | spinlock_up.h | 32 barrier(); in arch_spin_lock() 40 barrier(); in arch_spin_trylock() 47 barrier(); in arch_spin_unlock() 54 #define arch_read_lock(lock) do { barrier(); (void)(lock); } while (0) 55 #define arch_write_lock(lock) do { barrier(); (void)(lock); } while (0) 56 #define arch_read_trylock(lock) ({ barrier(); (void)(lock); 1; }) 57 #define arch_write_trylock(lock) ({ barrier(); (void)(lock); 1; }) 58 #define arch_read_unlock(lock) do { barrier(); (void)(lock); } while (0) 59 #define arch_write_unlock(lock) do { barrier(); (void)(lock); } while (0) 64 # define arch_spin_lock(lock) do { barrier(); (void)(lock); } while (0) [all …]
|
D | preempt.h | 205 barrier(); \ 210 barrier(); \ 221 barrier(); \ 228 barrier(); \ 242 barrier(); \ 248 barrier(); \ 258 barrier(); \ 263 barrier(); \ 275 #define preempt_disable() barrier() 276 #define sched_preempt_enable_no_resched() barrier() [all …]
|
/Linux-v6.6/arch/arm64/include/asm/ |
D | irqflags.h | 32 barrier(); in __daif_local_irq_enable() 34 barrier(); in __daif_local_irq_enable() 44 barrier(); in __pmr_local_irq_enable() 47 barrier(); in __pmr_local_irq_enable() 61 barrier(); in __daif_local_irq_disable() 63 barrier(); in __daif_local_irq_disable() 73 barrier(); in __pmr_local_irq_disable() 75 barrier(); in __pmr_local_irq_disable() 181 barrier(); in __daif_local_irq_restore() 183 barrier(); in __daif_local_irq_restore() [all …]
|
D | hardirq.h | 51 barrier(); \ 57 barrier(); \ 75 barrier(); \ 83 barrier(); \
|
/Linux-v6.6/tools/virtio/ringtest/ |
D | main.h | 92 #define barrier() asm volatile("" ::: "memory") macro 98 #define cpu_relax() barrier() 113 barrier(); in busy_wait() 133 barrier(); \ 139 barrier(); \ 143 #define smp_wmb() barrier() 163 barrier(); in __read_once_size() 165 barrier(); in __read_once_size() 177 barrier(); in __write_once_size() 179 barrier(); in __write_once_size()
|
/Linux-v6.6/arch/s390/include/asm/ |
D | barrier.h | 30 #define __rmb() barrier() 31 #define __wmb() barrier() 41 barrier(); \ 49 barrier(); \ 53 #define __smp_mb__before_atomic() barrier() 54 #define __smp_mb__after_atomic() barrier()
|
/Linux-v6.6/tools/perf/tests/ |
D | sigtrap.c | 124 pthread_barrier_t *barrier = (pthread_barrier_t *)arg; in test_thread() local 128 pthread_barrier_wait(barrier); in test_thread() 137 static int run_test_threads(pthread_t *threads, pthread_barrier_t *barrier) in run_test_threads() argument 141 pthread_barrier_wait(barrier); in run_test_threads() 148 static int run_stress_test(int fd, pthread_t *threads, pthread_barrier_t *barrier) in run_stress_test() argument 156 ret = run_test_threads(threads, barrier); in run_stress_test() 178 pthread_barrier_t barrier; in test__sigtrap() local 187 pthread_barrier_init(&barrier, NULL, NUM_THREADS + 1); in test__sigtrap() 210 if (pthread_create(&threads[i], NULL, test_thread, &barrier)) { in test__sigtrap() 216 ret = run_stress_test(fd, threads, &barrier); in test__sigtrap() [all …]
|
/Linux-v6.6/include/asm-generic/ |
D | barrier.h | 61 #define mb() barrier() 113 #define smp_mb() barrier() 117 #define smp_rmb() barrier() 121 #define smp_wmb() barrier() 182 #define smp_store_mb(var, value) do { WRITE_ONCE(var, value); barrier(); } while (0) 186 #define smp_mb__before_atomic() barrier() 190 #define smp_mb__after_atomic() barrier() 197 barrier(); \ 207 barrier(); \
|
/Linux-v6.6/arch/powerpc/kernel/ |
D | smp-tbsync.c | 53 barrier(); in smp_generic_take_timebase() 59 barrier(); in smp_generic_take_timebase() 70 barrier(); in smp_generic_take_timebase() 96 barrier(); in start_contest() 99 barrier(); in start_contest() 104 barrier(); in start_contest() 125 barrier(); in smp_generic_give_timebase() 166 barrier(); in smp_generic_give_timebase()
|
/Linux-v6.6/arch/alpha/include/asm/ |
D | irqflags.h | 35 barrier(); in arch_local_irq_disable() 41 barrier(); in arch_local_irq_save() 47 barrier(); in arch_local_irq_enable() 53 barrier(); in arch_local_irq_restore() 55 barrier(); in arch_local_irq_restore()
|
/Linux-v6.6/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
|
/Linux-v6.6/arch/x86/include/asm/ |
D | barrier.h | 54 #define __dma_rmb() barrier() 55 #define __dma_wmb() barrier() 60 #define __smp_wmb() barrier() 66 barrier(); \ 74 barrier(); \
|
/Linux-v6.6/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()
|
/Linux-v6.6/tools/arch/x86/include/asm/ |
D | barrier.h | 27 #define smp_rmb() barrier() 28 #define smp_wmb() barrier() 35 barrier(); \ 42 barrier(); \
|
/Linux-v6.6/tools/testing/selftests/powerpc/dscr/ |
D | dscr_explicit_test.c | 92 pthread_barrier_t *barrier; member 103 err = pthread_barrier_wait(args->barrier); in dscr_explicit_random_thread() 136 pthread_barrier_t barrier; in dscr_explicit_random_test() local 140 FAIL_IF(pthread_barrier_init(&barrier, NULL, THREADS)); in dscr_explicit_random_test() 144 threads[i].barrier = &barrier; in dscr_explicit_random_test() 153 FAIL_IF(pthread_barrier_destroy(&barrier)); in dscr_explicit_random_test()
|
D | dscr_default_test.c | 76 pthread_barrier_t *barrier; member 88 err = pthread_barrier_wait(args->barrier); in dscr_default_random_thread() 125 pthread_barrier_t barrier; in dscr_default_random_test() local 132 FAIL_IF(pthread_barrier_init(&barrier, NULL, THREADS)); in dscr_default_random_test() 139 threads[i].barrier = &barrier; in dscr_default_random_test() 148 FAIL_IF(pthread_barrier_destroy(&barrier)); in dscr_default_random_test()
|
/Linux-v6.6/arch/parisc/include/asm/ |
D | barrier.h | 22 #define mb() barrier() 23 #define rmb() barrier() 24 #define wmb() barrier() 25 #define dma_rmb() barrier() 26 #define dma_wmb() barrier()
|
/Linux-v6.6/arch/ia64/include/asm/ |
D | barrier.h | 48 #define __smp_mb__before_atomic() barrier() 49 #define __smp_mb__after_atomic() barrier() 59 barrier(); \ 67 barrier(); \
|
/Linux-v6.6/arch/sparc/include/asm/ |
D | barrier_64.h | 44 barrier(); \ 52 barrier(); \ 56 #define __smp_mb__before_atomic() barrier() 57 #define __smp_mb__after_atomic() barrier()
|
/Linux-v6.6/arch/arm/include/asm/ |
D | barrier.h | 70 #define mb() barrier() 71 #define rmb() barrier() 72 #define wmb() barrier() 73 #define dma_rmb() barrier() 74 #define dma_wmb() barrier()
|
/Linux-v6.6/arch/arm/mach-rpc/ |
D | time.c | 37 barrier (); in ioc_timer_read() 39 barrier (); in ioc_timer_read() 41 barrier (); in ioc_timer_read() 43 barrier (); in ioc_timer_read()
|
/Linux-v6.6/tools/testing/selftests/perf_events/ |
D | sigtrap_threads.c | 89 pthread_barrier_t *barrier = (pthread_barrier_t *)arg; in test_thread() local 94 pthread_barrier_wait(barrier); in test_thread() 114 pthread_barrier_t barrier; in FIXTURE() local 137 pthread_barrier_init(&self->barrier, NULL, NUM_THREADS + 1); in FIXTURE_SETUP() 139 ASSERT_EQ(pthread_create(&self->threads[i], NULL, test_thread, &self->barrier), 0); in FIXTURE_SETUP() 144 pthread_barrier_destroy(&self->barrier); in FIXTURE_TEARDOWN() 154 pthread_barrier_wait(&self->barrier); in run_test_threads() 225 pthread_barrier_wait(&self->barrier); in TEST_F()
|
/Linux-v6.6/Documentation/ |
D | memory-barriers.txt | 29 particular barrier, and 34 for any particular barrier, but if the architecture provides less than 37 Note also that it is possible that a barrier may be a no-op for an 38 architecture because the way that arch works renders an explicit barrier 53 - Varieties of memory barrier. 57 - SMP barrier pairing. 58 - Examples of memory barrier sequences. 64 - Compiler barrier. 74 (*) Inter-CPU acquiring barrier effects. 85 (*) Kernel I/O barrier effects. [all …]
|
/Linux-v6.6/tools/testing/selftests/bpf/progs/ |
D | loop5.c | 20 barrier(); in while_true() 23 barrier(); in while_true() 26 barrier(); in while_true()
|
/Linux-v6.6/arch/xtensa/include/asm/ |
D | barrier.h | 15 #define __rmb() barrier() 25 #define __smp_mb__before_atomic() barrier() 26 #define __smp_mb__after_atomic() barrier()
|