Searched refs:test_cache (Results 1 – 2 of 2) sorted by relevance
/linux-6.1.9/tools/testing/radix-tree/ |
D | linux.c | 215 static struct kmem_cache *test_cache, *test_cache2; in test_kmem_cache_bulk() local 221 test_cache = kmem_cache_create("test_cache", 256, 0, SLAB_PANIC, NULL); in test_kmem_cache_bulk() 224 list[i] = kmem_cache_alloc(test_cache, __GFP_DIRECT_RECLAIM); in test_kmem_cache_bulk() 227 kmem_cache_free(test_cache, list[i]); in test_kmem_cache_bulk() 228 assert(test_cache->nr_objs == 5); in test_kmem_cache_bulk() 230 kmem_cache_alloc_bulk(test_cache, __GFP_DIRECT_RECLAIM, 5, list); in test_kmem_cache_bulk() 231 kmem_cache_free_bulk(test_cache, 5, list); in test_kmem_cache_bulk() 234 list[i] = kmem_cache_alloc(test_cache, __GFP_DIRECT_RECLAIM); in test_kmem_cache_bulk() 237 kmem_cache_free(test_cache, list[i]); in test_kmem_cache_bulk() 240 assert(test_cache->nr_objs == 11); in test_kmem_cache_bulk()
|
/linux-6.1.9/mm/kfence/ |
D | kfence_test.c | 183 static struct kmem_cache *test_cache; variable 199 test_cache = kmem_cache_create("test", size, 1, flags, ctor); in setup_test_cache() 200 KUNIT_ASSERT_TRUE_MSG(test, test_cache, "could not create cache"); in setup_test_cache() 207 if (!test_cache) in test_cache_destroy() 210 kmem_cache_destroy(test_cache); in test_cache_destroy() 211 test_cache = NULL; in test_cache_destroy() 222 if (test_cache) in test_free() 223 kmem_cache_free(test_cache, ptr); in test_free() 265 policy_name, !!test_cache); in test_alloc() 279 if (test_cache) in test_alloc() [all …]
|