Searched refs:reorder_access (Results 1 – 4 of 4) sorted by relevance
394 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() local406 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() local423 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 …]
113 struct kcsan_scoped_access *reorder_access = ¤t->kcsan_ctx.reorder_access; in test_barrier() local115 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()
531 struct kcsan_scoped_access *reorder_access = ¤t->kcsan_ctx.reorder_access; in test_barrier_nothreads() local533 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()
60 struct kcsan_scoped_access reorder_access; member