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()
244 static void *test_alloc(struct kunit *test, size_t size, gfp_t gfp, enum allocation_policy policy) in test_alloc()
318 static void test_out_of_bounds_read(struct kunit *test) in test_out_of_bounds_read()
352 static void test_out_of_bounds_write(struct kunit *test) in test_out_of_bounds_write()
370 static void test_use_after_free_read(struct kunit *test) in test_use_after_free_read()
386 static void test_double_free(struct kunit *test) in test_double_free()
401 static void test_invalid_addr_free(struct kunit *test) in test_invalid_addr_free()
418 static void test_corruption(struct kunit *test) in test_corruption()
454 static void test_kmalloc_aligned_oob_read(struct kunit *test) in test_kmalloc_aligned_oob_read()
489 static void test_kmalloc_aligned_oob_write(struct kunit *test) in test_kmalloc_aligned_oob_write()
511 static void test_shrink_memcache(struct kunit *test) in test_shrink_memcache()
532 static void test_free_bulk(struct kunit *test) in test_free_bulk()
554 static void test_init_on_free(struct kunit *test) in test_init_on_free()
587 static void test_memcache_ctor(struct kunit *test) in test_memcache_ctor()
605 static void test_gfpzero(struct kunit *test) in test_gfpzero()
642 static void test_invalid_access(struct kunit *test) in test_invalid_access()
656 static void test_memcache_typesafe_by_rcu(struct kunit *test) in test_memcache_typesafe_by_rcu()
692 static void test_krealloc(struct kunit *test) in test_krealloc()
732 static void test_memcache_alloc_bulk(struct kunit *test) in test_memcache_alloc_bulk()
802 static int test_init(struct kunit *test) in test_init()
825 static void test_exit(struct kunit *test) in test_exit()