Home
last modified time | relevance | path

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

/linux-5.19.10/kernel/kcsan/
Dcore.c383 return ctx->disable_scoped ? NULL : &ctx->reorder_access; in get_reorder_access()
393 struct kcsan_scoped_access *reorder_access = get_reorder_access(ctx); in find_reorder_access() local
395 if (!reorder_access) in find_reorder_access()
402 return reorder_access->ptr == ptr && reorder_access->size == size && in find_reorder_access()
403 reorder_access->type == type && reorder_access->ip == ip; in find_reorder_access()
410 struct kcsan_scoped_access *reorder_access = get_reorder_access(ctx); in set_reorder_access() local
412 if (!reorder_access || !kcsan_weak_memory) in set_reorder_access()
422 reorder_access->ptr = ptr; in set_reorder_access()
423 reorder_access->size = size; in set_reorder_access()
424 reorder_access->type = type | KCSAN_ACCESS_SCOPED; in set_reorder_access()
[all …]
Dselftest.c120 struct kcsan_scoped_access *reorder_access = &current->kcsan_ctx.reorder_access; in test_barrier() local
122 struct kcsan_scoped_access *reorder_access = NULL; in test_barrier()
129 if (!reorder_access || !IS_ENABLED(CONFIG_SMP)) in test_barrier()
134 reorder_access->type = (access_type) | KCSAN_ACCESS_SCOPED; \ in test_barrier()
135 reorder_access->size = 1; \ in test_barrier()
137 if (reorder_access->size != 0) { \ in test_barrier()
Dkcsan_test.c523 struct kcsan_scoped_access *reorder_access = &current->kcsan_ctx.reorder_access; in test_barrier_nothreads() local
525 struct kcsan_scoped_access *reorder_access = NULL; in test_barrier_nothreads()
530 KCSAN_TEST_REQUIRES(test, reorder_access != NULL); in test_barrier_nothreads()
535 reorder_access->type = (access_type) | KCSAN_ACCESS_SCOPED; \ in test_barrier_nothreads()
536 reorder_access->size = sizeof(test_var); \ in test_barrier_nothreads()
538 KUNIT_EXPECT_EQ_MSG(test, reorder_access->size, \ in test_barrier_nothreads()
557 while (test_var++ < 1000000 && reorder_access->size != sizeof(test_var)) in test_barrier_nothreads()
559 KUNIT_ASSERT_EQ(test, reorder_access->size, sizeof(test_var)); in test_barrier_nothreads()
/linux-5.19.10/include/linux/
Dkcsan.h60 struct kcsan_scoped_access reorder_access; member