/openbmc/linux/Documentation/translations/zh_CN/core-api/ |
H A D | memory-allocation.rst | 131 如果你需要分配许多相同的对象,你可以使用slab缓存分配器。在使用缓存之前,应该用 137 和 `kvmalloc` 分配的内存。slab缓存应该用kmem_cache_free()来释放。不要忘记用
|
/openbmc/linux/mm/kasan/ |
H A D | generic.c | 477 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 D | chtls_cm.h | 129 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 D | bio.c | 41 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 D | report.c | 293 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 D | kfence_test.c | 286 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 D | sock.c | 2081 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 D | vmlinux-gdb.py | 50 import linux.slab
|
/openbmc/linux/scripts/gdb/linux/ |
H A D | constants.py.in | 23 #include <linux/slab.h> 108 /* linux/slab.h */
|
/openbmc/linux/Documentation/core-api/ |
H A D | mm-api.rst | 37 .. kernel-doc:: include/linux/slab.h 40 .. kernel-doc:: mm/slab.c
|
/openbmc/google-misc/subprojects/metrics-ipmi-blobs/ |
H A D | README.md | 8 1. BMC memory metric: mem_available, slab, kernel_stack
|
H A D | metricblob.proto | 21 int32 slab = 2; field
|
/openbmc/linux/Documentation/mm/ |
H A D | index.rst | 22 slab
|
H A D | split_page_table_lock.rst | 64 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 D | kasan.rst | 67 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 D | Kconfig | 195 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 D | Kconfig.debug | 49 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 D | submit-checklist.rst | 89 19) 已通过至少注入slab和page分配失败进行检查。请参阅 ``Documentation/fault-injection/`` 。
|
/openbmc/linux/Documentation/translations/zh_TW/process/ |
H A D | submit-checklist.rst | 88 20) 已通過至少注入slab和page分配失敗進行檢查。請參閱 ``Documentation/fault-injection/``
|
/openbmc/linux/fs/erofs/ |
H A D | zdata.c | 173 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 D | hacking.rst | 258 定义于 ``include/linux/slab.h`` 292 在创建自己的常用对象缓存之前,请考虑使用 ``include/linux/slab.h`` 中的slab
|
/openbmc/linux/tools/testing/radix-tree/ |
H A D | Makefile | 9 slab.o maple.o
|
/openbmc/linux/Documentation/translations/ja_JP/ |
H A D | SubmitChecklist | 91 19: 少なくともslabアロケーションとpageアロケーションに失敗した場合の
|
/openbmc/linux/Documentation/fault-injection/ |
H A D | fault-injection.rst | 13 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 D | events-kmem.rst | 26 justified, particularly if kmalloc slab pages are getting significantly 42 of writing, no information is available on what slab is being allocated from,
|