Searched refs:test_var (Results 1 – 2 of 2) sorted by relevance
/kernel/kcsan/ |
D | kcsan_test.c | 301 static long test_var; variable 328 static noinline void test_kernel_read(void) { sink_value(test_var); } in test_kernel_read() 332 test_var = READ_ONCE_NOCHECK(test_sink) + 1; in test_kernel_write() 335 static noinline void test_kernel_write_nochange(void) { test_var = 42; } in test_kernel_write_nochange() 338 static noinline void test_kernel_write_nochange_rcu(void) { test_var = 42; } in test_kernel_write_nochange_rcu() 342 sink_value(READ_ONCE(test_var)); in test_kernel_read_atomic() 347 WRITE_ONCE(test_var, READ_ONCE_NOCHECK(test_sink) + 1); in test_kernel_write_atomic() 353 __atomic_fetch_add(&test_var, 1, __ATOMIC_RELAXED); in test_kernel_atomic_rmw() 357 static noinline void test_kernel_write_uninstrumented(void) { test_var++; } in test_kernel_write_uninstrumented() 359 static noinline void test_kernel_data_race(void) { data_race(test_var++); } in test_kernel_data_race() [all …]
|
D | selftest.c | 127 long test_var; in test_barrier() local 156 KCSAN_CHECK_READ_BARRIER(smp_store_mb(test_var, 0)); in test_barrier() 157 KCSAN_CHECK_READ_BARRIER(smp_store_release(&test_var, 0)); in test_barrier() 158 KCSAN_CHECK_READ_BARRIER(xchg(&test_var, 0)); in test_barrier() 159 KCSAN_CHECK_READ_BARRIER(xchg_release(&test_var, 0)); in test_barrier() 160 KCSAN_CHECK_READ_BARRIER(cmpxchg(&test_var, 0, 0)); in test_barrier() 161 KCSAN_CHECK_READ_BARRIER(cmpxchg_release(&test_var, 0, 0)); in test_barrier() 167 KCSAN_CHECK_READ_BARRIER(test_and_set_bit(0, &test_var)); in test_barrier() 168 KCSAN_CHECK_READ_BARRIER(test_and_clear_bit(0, &test_var)); in test_barrier() 169 KCSAN_CHECK_READ_BARRIER(test_and_change_bit(0, &test_var)); in test_barrier() [all …]
|