Lines Matching defs:test
35 #define KFENCE_TEST_REQUIRES(test, cond) do { \ argument
185 static size_t setup_test_cache(struct kunit *test, size_t size, slab_flags_t flags, in setup_test_cache()
243 static void *test_alloc(struct kunit *test, size_t size, gfp_t gfp, enum allocation_policy policy) in test_alloc()
316 static void test_out_of_bounds_read(struct kunit *test) in test_out_of_bounds_read()
350 static void test_out_of_bounds_write(struct kunit *test) in test_out_of_bounds_write()
368 static void test_use_after_free_read(struct kunit *test) in test_use_after_free_read()
384 static void test_double_free(struct kunit *test) in test_double_free()
399 static void test_invalid_addr_free(struct kunit *test) in test_invalid_addr_free()
416 static void test_corruption(struct kunit *test) in test_corruption()
452 static void test_kmalloc_aligned_oob_read(struct kunit *test) in test_kmalloc_aligned_oob_read()
487 static void test_kmalloc_aligned_oob_write(struct kunit *test) in test_kmalloc_aligned_oob_write()
509 static void test_shrink_memcache(struct kunit *test) in test_shrink_memcache()
530 static void test_free_bulk(struct kunit *test) in test_free_bulk()
552 static void test_init_on_free(struct kunit *test) in test_init_on_free()
585 static void test_memcache_ctor(struct kunit *test) in test_memcache_ctor()
603 static void test_gfpzero(struct kunit *test) in test_gfpzero()
640 static void test_invalid_access(struct kunit *test) in test_invalid_access()
654 static void test_memcache_typesafe_by_rcu(struct kunit *test) in test_memcache_typesafe_by_rcu()
690 static void test_krealloc(struct kunit *test) in test_krealloc()
730 static void test_memcache_alloc_bulk(struct kunit *test) in test_memcache_alloc_bulk()
800 static int test_init(struct kunit *test) in test_init()
823 static void test_exit(struct kunit *test) in test_exit()