Lines Matching refs:s

24 	struct kmem_cache *s = kmem_cache_create(name, size, 0,  in test_kmem_cache_create()  local
26 s->flags |= SLAB_SKIP_KFENCE; in test_kmem_cache_create()
27 return s; in test_kmem_cache_create()
32 struct kmem_cache *s = test_kmem_cache_create("TestSlub_RZ_alloc", 64, in test_clobber_zone() local
34 u8 *p = kmem_cache_alloc(s, GFP_KERNEL); in test_clobber_zone()
39 validate_slab_cache(s); in test_clobber_zone()
43 kmem_cache_free(s, p); in test_clobber_zone()
44 kmem_cache_destroy(s); in test_clobber_zone()
50 struct kmem_cache *s = test_kmem_cache_create("TestSlub_next_ptr_free", in test_next_pointer() local
52 u8 *p = kmem_cache_alloc(s, GFP_KERNEL); in test_next_pointer()
56 kmem_cache_free(s, p); in test_next_pointer()
58 ptr_addr = (unsigned long *)(p + s->offset); in test_next_pointer()
60 p[s->offset] = ~p[s->offset]; in test_next_pointer()
67 validate_slab_cache(s); in test_next_pointer()
79 validate_slab_cache(s); in test_next_pointer()
87 validate_slab_cache(s); in test_next_pointer()
90 kmem_cache_destroy(s); in test_next_pointer()
95 struct kmem_cache *s = test_kmem_cache_create("TestSlub_1th_word_free", in test_first_word() local
97 u8 *p = kmem_cache_alloc(s, GFP_KERNEL); in test_first_word()
99 kmem_cache_free(s, p); in test_first_word()
102 validate_slab_cache(s); in test_first_word()
105 kmem_cache_destroy(s); in test_first_word()
110 struct kmem_cache *s = test_kmem_cache_create("TestSlub_50th_word_free", in test_clobber_50th_byte() local
112 u8 *p = kmem_cache_alloc(s, GFP_KERNEL); in test_clobber_50th_byte()
114 kmem_cache_free(s, p); in test_clobber_50th_byte()
117 validate_slab_cache(s); in test_clobber_50th_byte()
120 kmem_cache_destroy(s); in test_clobber_50th_byte()
126 struct kmem_cache *s = test_kmem_cache_create("TestSlub_RZ_free", 64, in test_clobber_redzone_free() local
128 u8 *p = kmem_cache_alloc(s, GFP_KERNEL); in test_clobber_redzone_free()
131 kmem_cache_free(s, p); in test_clobber_redzone_free()
134 validate_slab_cache(s); in test_clobber_redzone_free()
138 kmem_cache_destroy(s); in test_clobber_redzone_free()
143 struct kmem_cache *s = test_kmem_cache_create("TestSlub_RZ_kmalloc", 32, in test_kmalloc_redzone_access() local
145 u8 *p = alloc_hooks(__kmalloc_cache_noprof(s, GFP_KERNEL, 18)); in test_kmalloc_redzone_access()
154 validate_slab_cache(s); in test_kmalloc_redzone_access()
158 kmem_cache_free(s, p); in test_kmalloc_redzone_access()
159 kmem_cache_destroy(s); in test_kmalloc_redzone_access()
168 struct kmem_cache *s; in test_kfree_rcu() local
174 s = test_kmem_cache_create("TestSlub_kfree_rcu", in test_kfree_rcu()
177 p = kmem_cache_alloc(s, GFP_KERNEL); in test_kfree_rcu()
180 kmem_cache_destroy(s); in test_kfree_rcu()
187 struct kmem_cache *s; member
195 kmem_cache_destroy(cdw->s); in cache_destroy_workfn()
205 struct kmem_cache *s; in test_kfree_rcu_wq_destroy() local
220 s = test_kmem_cache_create("TestSlub_kfree_rcu_wq_destroy", in test_kfree_rcu_wq_destroy()
224 if (!s) in test_kfree_rcu_wq_destroy()
228 p = kmem_cache_alloc(s, GFP_KERNEL); in test_kfree_rcu_wq_destroy()
231 cdw.s = s; in test_kfree_rcu_wq_destroy()
244 struct kmem_cache *s = test_kmem_cache_create("TestSlub_leak_destroy", in test_leak_destroy() local
246 kmem_cache_alloc(s, GFP_KERNEL); in test_leak_destroy()
248 kmem_cache_destroy(s); in test_leak_destroy()
257 struct kmem_cache *s = test_kmem_cache_create("TestSlub_krealloc", 64, in test_krealloc_redzone_zeroing() local
260 p = alloc_hooks(__kmalloc_cache_noprof(s, GFP_KERNEL, 48)); in test_krealloc_redzone_zeroing()
278 validate_slab_cache(s); in test_krealloc_redzone_zeroing()
291 kmem_cache_destroy(s); in test_krealloc_redzone_zeroing()