Searched refs:reorder_access (Results 1 – 4 of 4) sorted by relevance
385 return ctx->disable_scoped ? NULL : &ctx->reorder_access; in get_reorder_access()395 struct kcsan_scoped_access *reorder_access = get_reorder_access(ctx); in find_reorder_access() local397 if (!reorder_access) in find_reorder_access()404 return reorder_access->ptr == ptr && reorder_access->size == size && in find_reorder_access()405 reorder_access->type == type && reorder_access->ip == ip; in find_reorder_access()412 struct kcsan_scoped_access *reorder_access = get_reorder_access(ctx); in set_reorder_access() local414 if (!reorder_access || !kcsan_weak_memory) in set_reorder_access()424 reorder_access->ptr = ptr; in set_reorder_access()425 reorder_access->size = size; in set_reorder_access()426 reorder_access->type = type | KCSAN_ACCESS_SCOPED; in set_reorder_access()[all …]
120 struct kcsan_scoped_access *reorder_access = ¤t->kcsan_ctx.reorder_access; in test_barrier() local122 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()
528 struct kcsan_scoped_access *reorder_access = ¤t->kcsan_ctx.reorder_access; in test_barrier_nothreads() local530 struct kcsan_scoped_access *reorder_access = NULL; in test_barrier_nothreads()535 KCSAN_TEST_REQUIRES(test, reorder_access != NULL); in test_barrier_nothreads()540 reorder_access->type = (access_type) | KCSAN_ACCESS_SCOPED; \ in test_barrier_nothreads()541 reorder_access->size = sizeof(test_var); \ in test_barrier_nothreads()543 KUNIT_EXPECT_EQ_MSG(test, reorder_access->size, \ in test_barrier_nothreads()562 while (test_var++ < 1000000 && reorder_access->size != sizeof(test_var)) in test_barrier_nothreads()564 KUNIT_ASSERT_EQ(test, reorder_access->size, sizeof(test_var)); in test_barrier_nothreads()
60 struct kcsan_scoped_access reorder_access; member