Home
last modified time | relevance | path

Searched refs:test_cache (Results 1 – 2 of 2) sorted by relevance

/linux/tools/testing/shared/
H A Dlinux.c341 static struct kmem_cache *test_cache, *test_cache2;
347 test_cache = kmem_cache_create("test_cache", 256, 0, SLAB_PANIC, NULL);
350 list[i] = kmem_cache_alloc(test_cache, __GFP_DIRECT_RECLAIM);
353 kmem_cache_free(test_cache, list[i]);
354 assert(test_cache->nr_objs == 5);
356 kmem_cache_alloc_bulk(test_cache, __GFP_DIRECT_RECLAIM, 5, list);
357 kmem_cache_free_bulk(test_cache, 5, list);
360 list[i] = kmem_cache_alloc(test_cache, __GFP_DIRECT_RECLAIM);
363 kmem_cache_free(test_cache, lis
264 static struct kmem_cache *test_cache, *test_cache2; test_kmem_cache_bulk() local
[all...]
/linux/mm/kfence/
H A Dkfence_test.c184 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()
224 if (test_cache) in test_free()
225 kmem_cache_free(test_cache, ptr); in test_free()
267 policy_name, !!test_cache); in test_alloc()
281 if (test_cache) in test_alloc()
[all …]