Home
last modified time | relevance | path

Searched refs:reorder_access (Results 1 – 4 of 4) sorted by relevance

/linux/kernel/kcsan/
H A Dcore.c394 return ctx->disable_scoped ? NULL : &ctx->reorder_access; in get_reorder_access()
404 struct kcsan_scoped_access *reorder_access = get_reorder_access(ctx); in find_reorder_access() local
406 if (!reorder_access) in find_reorder_access()
413 return reorder_access->ptr == ptr && reorder_access->size == size && in find_reorder_access()
414 reorder_access->type == type && reorder_access->ip == ip; in find_reorder_access()
421 struct kcsan_scoped_access *reorder_access = get_reorder_access(ctx); in set_reorder_access() local
423 if (!reorder_access || !kcsan_weak_memory) in set_reorder_access()
433 reorder_access->ptr = ptr; in set_reorder_access()
434 reorder_access->size = size; in set_reorder_access()
435 reorder_access->type = type | KCSAN_ACCESS_SCOPED; in set_reorder_access()
[all …]
H A Dselftest.c113 struct kcsan_scoped_access *reorder_access = &current->kcsan_ctx.reorder_access; in test_barrier() local
115 struct kcsan_scoped_access *reorder_access = NULL; in test_barrier()
122 if (!reorder_access || !IS_ENABLED(CONFIG_SMP)) in test_barrier()
127 reorder_access->type = (access_type) | KCSAN_ACCESS_SCOPED; \ in test_barrier()
128 reorder_access->size = 1; \ in test_barrier()
130 if (reorder_access->size != 0) { \ in test_barrier()
H A Dkcsan_test.c531 struct kcsan_scoped_access *reorder_access = &current->kcsan_ctx.reorder_access; in test_barrier_nothreads() local
533 struct kcsan_scoped_access *reorder_access = NULL; in test_barrier_nothreads()
538 KCSAN_TEST_REQUIRES(test, reorder_access != NULL); in test_barrier_nothreads()
543 reorder_access->type = (access_type) | KCSAN_ACCESS_SCOPED; \ in test_barrier_nothreads()
544 reorder_access->size = sizeof(test_var); \ in test_barrier_nothreads()
546 KUNIT_EXPECT_EQ_MSG(test, reorder_access->size, \ in test_barrier_nothreads()
565 while (test_var++ < 1000000 && reorder_access->size != sizeof(test_var)) in test_barrier_nothreads()
567 KUNIT_ASSERT_EQ(test, reorder_access->size, sizeof(test_var)); in test_barrier_nothreads()
/linux/include/linux/
H A Dkcsan.h60 struct kcsan_scoped_access reorder_access; member