Home
last modified time | relevance | path

Searched refs:slab (Results 26 – 50 of 108) sorted by relevance

12345

/openbmc/linux/Documentation/translations/zh_CN/core-api/
H A Dmemory-allocation.rst131 如果你需要分配许多相同的对象,你可以使用slab缓存分配器。在使用缓存之前,应该用
137 和 `kvmalloc` 分配的内存。slab缓存应该用kmem_cache_free()来释放。不要忘记用
/openbmc/linux/mm/kasan/
H A Dgeneric.c477 struct slab *slab = kasan_addr_to_slab(addr); in __kasan_record_aux_stack() local
482 if (is_kfence_address(addr) || !slab) in __kasan_record_aux_stack()
485 cache = slab->slab_cache; in __kasan_record_aux_stack()
486 object = nearest_obj(cache, slab, addr); in __kasan_record_aux_stack()
/openbmc/linux/drivers/net/ethernet/chelsio/inline_crypto/chtls/
H A Dchtls_cm.h129 chtls_tcp_ops->slab = tcp_prot->rsk_prot->slab; in chtls_init_rsk_ops()
137 kmem_cache_free(req->rsk_ops->slab, req); in chtls_reqsk_free()
/openbmc/linux/block/
H A Dbio.c41 struct kmem_cache *slab; member
78 struct kmem_cache *slab; member
94 bslab->slab = kmem_cache_create(bslab->name, size, in create_bio_slab()
97 if (!bslab->slab) in create_bio_slab()
106 kmem_cache_destroy(bslab->slab); in create_bio_slab()
132 return bslab->slab; in bio_find_or_create_slab()
147 WARN_ON_ONCE(bslab->slab != bs->bio_slab); in bio_put_slab()
156 kmem_cache_destroy(bslab->slab); in bio_put_slab()
170 kmem_cache_free(biovec_slab(nr_vecs)->slab, bv); in bvec_free()
205 bvl = kmem_cache_alloc(bvs->slab, bvec_alloc_gfp(gfp_mask)); in bvec_alloc()
[all …]
/openbmc/linux/mm/kfence/
H A Dreport.c293 bool __kfence_obj_info(struct kmem_obj_info *kpp, void *object, struct slab *slab) in __kfence_obj_info() argument
313 kpp->kp_slab = slab; in __kfence_obj_info()
H A Dkfence_test.c286 struct slab *slab = virt_to_slab(alloc); in test_alloc() local
296 KUNIT_EXPECT_EQ(test, obj_to_index(s, slab, alloc), 0U); in test_alloc()
297 KUNIT_EXPECT_EQ(test, objs_per_slab(s, slab), 1); in test_alloc()
/openbmc/linux/net/core/
H A Dsock.c2081 struct kmem_cache *slab; in sk_prot_alloc() local
2083 slab = prot->slab; in sk_prot_alloc()
2084 if (slab != NULL) { in sk_prot_alloc()
2106 if (slab != NULL) in sk_prot_alloc()
2115 struct kmem_cache *slab; in sk_prot_free() local
2119 slab = prot->slab; in sk_prot_free()
2124 if (slab != NULL) in sk_prot_free()
3886 rsk_prot->slab = NULL; in req_prot_cleanup()
3906 if (!rsk_prot->slab) { in req_prot_init()
3965 prot->slab = NULL; in proto_register()
[all …]
/openbmc/linux/scripts/gdb/
H A Dvmlinux-gdb.py50 import linux.slab
/openbmc/linux/scripts/gdb/linux/
H A Dconstants.py.in23 #include <linux/slab.h>
108 /* linux/slab.h */
/openbmc/linux/Documentation/core-api/
H A Dmm-api.rst37 .. kernel-doc:: include/linux/slab.h
40 .. kernel-doc:: mm/slab.c
/openbmc/google-misc/subprojects/metrics-ipmi-blobs/
H A DREADME.md8 1. BMC memory metric: mem_available, slab, kernel_stack
H A Dmetricblob.proto21 int32 slab = 2; field
/openbmc/linux/Documentation/mm/
H A Dindex.rst22 slab
H A Dsplit_page_table_lock.rst64 Make sure the architecture doesn't use slab allocator for page table
65 allocation: slab uses page->slab_cache for its pages.
/openbmc/linux/Documentation/dev-tools/
H A Dkasan.rst67 Generic KASAN supports finding bugs in all of slab, page_alloc, vmap, vmalloc,
70 Software Tag-Based KASAN supports slab, page_alloc, vmalloc, and stack memory.
72 Hardware Tag-Based KASAN supports slab, page_alloc, and non-executable vmalloc
75 For slab, both software KASAN modes support SLUB and SLAB allocators, while
93 To include alloc and free stack traces of affected slab objects into reports,
169 BUG: KASAN: slab-out-of-bounds in kmalloc_oob_right+0xa8/0xbc [test_kasan]
225 flags: 0x200000000000100(slab)
241 where the accessed memory was allocated (in case a slab object was accessed),
243 bug report). Next comes a description of the accessed slab object and the
268 Note that KASAN bug titles (like ``slab-out-of-bounds`` or ``use-after-free``)
/openbmc/linux/mm/
H A DKconfig195 zsmalloc is a slab-based memory allocator designed to store
234 This option allows to select a slab allocator.
254 SLUB is a slab allocator that minimizes cache line usage
259 a slab allocator.
282 bool "Allow slab caches to be merged"
286 For reduced kernel memory fragmentation, slab caches can be
297 bool "Randomize slab freelist"
305 bool "Harden slab freelist metadata"
310 sacrifices to harden the kernel slab allocator against common
311 freelist exploit methods. Some slab implementations have more
[all …]
H A DKconfig.debug49 bool "Debug slab memory allocations"
63 result in significant savings in code size. While /sys/kernel/slab
235 of finding leaks due to the slab objects poisoning.
251 if slab allocations fail.
/openbmc/linux/Documentation/translations/zh_CN/process/
H A Dsubmit-checklist.rst89 19) 已通过至少注入slab和page分配失败进行检查。请参阅 ``Documentation/fault-injection/`` 。
/openbmc/linux/Documentation/translations/zh_TW/process/
H A Dsubmit-checklist.rst88 20) 已通過至少注入slab和page分配失敗進行檢查。請參閱 ``Documentation/fault-injection/``
/openbmc/linux/fs/erofs/
H A Dzdata.c173 struct kmem_cache *slab; member
272 if (!pcluster_pool[i].slab) in z_erofs_destroy_pcluster_pool()
274 kmem_cache_destroy(pcluster_pool[i].slab); in z_erofs_destroy_pcluster_pool()
275 pcluster_pool[i].slab = NULL; in z_erofs_destroy_pcluster_pool()
290 pcs->slab = kmem_cache_create(pcs->name, size, 0, in z_erofs_create_pcluster_pool()
292 if (pcs->slab) in z_erofs_create_pcluster_pool()
312 pcl = kmem_cache_zalloc(pcs->slab, GFP_NOFS); in z_erofs_alloc_pcluster()
332 kmem_cache_free(pcs->slab, pcl); in z_erofs_free_pcluster()
/openbmc/linux/Documentation/translations/zh_CN/kernel-hacking/
H A Dhacking.rst258 定义于 ``include/linux/slab.h``
292 在创建自己的常用对象缓存之前,请考虑使用 ``include/linux/slab.h`` 中的slab
/openbmc/linux/tools/testing/radix-tree/
H A DMakefile9 slab.o maple.o
/openbmc/linux/Documentation/translations/ja_JP/
H A DSubmitChecklist91 19: 少なくともslabアロケーションとpageアロケーションに失敗した場合の
/openbmc/linux/Documentation/fault-injection/
H A Dfault-injection.rst13 injects slab allocation failures. (kmalloc(), kmem_cache_alloc(), ...)
234 Note that this file enables all types of faults (slab, futex, etc).
350 - Inject slab allocation failures into module init/exit code::
472 Run a command "make -C tools/testing/selftests/ run_tests" with injecting slab
484 Same as above except to inject page allocation failure instead of slab
/openbmc/linux/Documentation/trace/
H A Devents-kmem.rst26 justified, particularly if kmalloc slab pages are getting significantly
42 of writing, no information is available on what slab is being allocated from,

12345