Home
last modified time | relevance | path

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

12345678910>>...18

/Linux-v6.6/include/linux/
Dspinlock_up.h32 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 …]
Dpreempt.h205 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/
Dirqflags.h32 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 …]
Dhardirq.h51 barrier(); \
57 barrier(); \
75 barrier(); \
83 barrier(); \
/Linux-v6.6/tools/virtio/ringtest/
Dmain.h92 #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/
Dbarrier.h30 #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/
Dsigtrap.c124 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/
Dbarrier.h61 #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/
Dsmp-tbsync.c53 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/
Dirqflags.h35 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/
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
/Linux-v6.6/arch/x86/include/asm/
Dbarrier.h54 #define __dma_rmb() barrier()
55 #define __dma_wmb() barrier()
60 #define __smp_wmb() barrier()
66 barrier(); \
74 barrier(); \
/Linux-v6.6/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()
/Linux-v6.6/tools/arch/x86/include/asm/
Dbarrier.h27 #define smp_rmb() barrier()
28 #define smp_wmb() barrier()
35 barrier(); \
42 barrier(); \
/Linux-v6.6/tools/testing/selftests/powerpc/dscr/
Ddscr_explicit_test.c92 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()
Ddscr_default_test.c76 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/
Dbarrier.h22 #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/
Dbarrier.h48 #define __smp_mb__before_atomic() barrier()
49 #define __smp_mb__after_atomic() barrier()
59 barrier(); \
67 barrier(); \
/Linux-v6.6/arch/sparc/include/asm/
Dbarrier_64.h44 barrier(); \
52 barrier(); \
56 #define __smp_mb__before_atomic() barrier()
57 #define __smp_mb__after_atomic() barrier()
/Linux-v6.6/arch/arm/include/asm/
Dbarrier.h70 #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/
Dtime.c37 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/
Dsigtrap_threads.c89 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/
Dmemory-barriers.txt29 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/
Dloop5.c20 barrier(); in while_true()
23 barrier(); in while_true()
26 barrier(); in while_true()
/Linux-v6.6/arch/xtensa/include/asm/
Dbarrier.h15 #define __rmb() barrier()
25 #define __smp_mb__before_atomic() barrier()
26 #define __smp_mb__after_atomic() barrier()

12345678910>>...18