/Linux-v5.15/tools/vm/ |
D | slabinfo.c | 54 struct slabinfo *slab; member 337 if (a->slab == find && in find_one_alias() 1107 a->slab = s; in link_slabs() 1126 if (!show_single_ref && a->slab->refs == 1) in alias() 1131 if (strcmp(a->slab->name, active) == 0) { in alias() 1136 printf("\n%-12s <- %s", a->slab->name, a->name); in alias() 1137 active = a->slab->name; in alias() 1140 printf("%-15s -> %s\n", a->name, a->slab->name); in alias() 1170 static int slab_mismatch(char *slab) in slab_mismatch() argument 1172 return regexec(&pattern, slab, 0, NULL, 0); in slab_mismatch() [all …]
|
/Linux-v5.15/Documentation/ABI/testing/ |
D | sysfs-kernel-slab | 1 What: /sys/kernel/slab 7 The /sys/kernel/slab directory contains a snapshot of the 13 What: /sys/kernel/slab/cache/aliases 22 What: /sys/kernel/slab/cache/align 31 What: /sys/kernel/slab/cache/alloc_calls 42 What: /sys/kernel/slab/cache/alloc_fastpath 53 What: /sys/kernel/slab/cache/alloc_from_partial 59 The alloc_from_partial file shows how many times a cpu slab has 60 been full and it has been refilled by using a slab from the list 65 What: /sys/kernel/slab/cache/alloc_refill [all …]
|
/Linux-v5.15/lib/ |
D | sg_pool.c | 13 struct kmem_cache *slab; member 150 sgp->slab = kmem_cache_create(sgp->name, size, 0, in sg_pool_init() 152 if (!sgp->slab) { in sg_pool_init() 159 sgp->slab); in sg_pool_init() 174 kmem_cache_destroy(sgp->slab); in sg_pool_init() 187 kmem_cache_destroy(sgp->slab); in sg_pool_exit()
|
D | stackdepot.c | 230 void *slab; in stack_depot_fetch() local 240 slab = stack_slabs[parts.slabindex]; in stack_depot_fetch() 241 if (!slab) in stack_depot_fetch() 243 stack = slab + offset; in stack_depot_fetch()
|
/Linux-v5.15/Documentation/vm/ |
D | slub.rst | 9 slab caches. SLUB always includes full debugging but it is off by default. 40 slub_debug=<Debug-Options>,<slab name1>,<slab name2>,... 47 of the first "select slabs" blocks that matches the slab's name are applied. 59 caused higher minimum slab orders 72 end of the slab name, in order to cover all slabs with the same prefix. For 78 Red zoning and tracking may realign the slab. We can just apply sanity checks 83 Debugging options may require the minimum possible slab order to increase as 85 sizes). This has a higher liklihood of resulting in slab allocation errors 91 You can apply different options to different list of slab names, using blocks 99 debugged by specifying global debug options followed by a list of slab names [all …]
|
D | split_page_table_lock.rst | 61 Make sure the architecture doesn't use slab allocator for page table 62 allocation: slab uses page->slab_cache for its pages.
|
/Linux-v5.15/net/dccp/ |
D | ccid.c | 81 struct kmem_cache *slab; in ccid_kmem_cache_create() local 88 slab = kmem_cache_create(slab_name_fmt, sizeof(struct ccid) + obj_size, 0, in ccid_kmem_cache_create() 90 return slab; in ccid_kmem_cache_create() 93 static void ccid_kmem_cache_destroy(struct kmem_cache *slab) in ccid_kmem_cache_destroy() argument 95 kmem_cache_destroy(slab); in ccid_kmem_cache_destroy()
|
/Linux-v5.15/tools/perf/Documentation/ |
D | perf-kmem.txt | 44 Sort the output (default: 'frag,hit,bytes' for slab and 'bytes,hit' 46 pingpong, frag' for slab and 'page, callsite, bytes, hit, order, 48 mode selection options - i.e. --slab, --page, --alloc and/or --caller. 57 --slab::
|
/Linux-v5.15/include/net/ |
D | request_sock.h | 30 struct kmem_cache *slab; member 91 req = kmem_cache_alloc(ops->slab, GFP_ATOMIC | __GFP_NOWARN); in reqsk_alloc() 97 kmem_cache_free(ops->slab, req); in reqsk_alloc() 121 kmem_cache_free(req->rsk_ops->slab, req); in __reqsk_free()
|
/Linux-v5.15/tools/testing/selftests/cgroup/ |
D | test_kmem.c | 165 long current, slab, anon, file, kernel_stack, pagetables, percpu, sock, sum; in test_kmem_memcg_deletion() local 183 slab = cg_read_key_long(parent, "memory.stat", "slab "); in test_kmem_memcg_deletion() 190 if (current < 0 || slab < 0 || anon < 0 || file < 0 || in test_kmem_memcg_deletion() 194 sum = slab + anon + file + kernel_stack + pagetables + percpu + sock; in test_kmem_memcg_deletion() 200 printf("slab = %ld\n", slab); in test_kmem_memcg_deletion()
|
/Linux-v5.15/Documentation/translations/zh_CN/dev-tools/ |
D | kasan.rst | 58 要将受影响的slab对象的alloc和free堆栈跟踪包含到报告中,请启用 68 BUG: KASAN: slab-out-of-bounds in kmalloc_oob_right+0xa8/0xbc [test_kasan] 124 flags: 0x200000000000100(slab) 139 堆栈跟踪、所访问内存分配位置的堆栈跟踪(对于访问了slab对象的情况)以及对象 141 slab对象的描述以及关于访问的内存页的信息。 159 请注意,KASAN错误标题(如 ``slab-out-of-bounds`` 或 ``use-after-free`` )
|
/Linux-v5.15/tools/testing/scatterlist/ |
D | Makefile | 17 … $(OFILES) scatterlist.c linux/scatterlist.h linux/highmem.h linux/kmemleak.h linux/slab.h asm/io.h 31 @touch linux/slab.h
|
/Linux-v5.15/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
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()
|
/Linux-v5.15/block/ |
D | bio.c | 36 struct kmem_cache *slab; member 73 struct kmem_cache *slab; member 89 bslab->slab = kmem_cache_create(bslab->name, size, in create_bio_slab() 91 if (!bslab->slab) in create_bio_slab() 100 kmem_cache_destroy(bslab->slab); in create_bio_slab() 126 return bslab->slab; in bio_find_or_create_slab() 141 WARN_ON_ONCE(bslab->slab != bs->bio_slab); in bio_put_slab() 150 kmem_cache_destroy(bslab->slab); in bio_put_slab() 164 kmem_cache_free(biovec_slab(nr_vecs)->slab, bv); in bvec_free() 199 bvl = kmem_cache_alloc(bvs->slab, bvec_alloc_gfp(gfp_mask)); in bvec_alloc() [all …]
|
/Linux-v5.15/Documentation/core-api/ |
D | mm-api.rst | 40 .. kernel-doc:: include/linux/slab.h 43 .. kernel-doc:: mm/slab.c
|
/Linux-v5.15/net/core/ |
D | sock.c | 1829 struct kmem_cache *slab; in sk_prot_alloc() local 1831 slab = prot->slab; in sk_prot_alloc() 1832 if (slab != NULL) { in sk_prot_alloc() 1833 sk = kmem_cache_alloc(slab, priority & ~__GFP_ZERO); in sk_prot_alloc() 1854 if (slab != NULL) in sk_prot_alloc() 1855 kmem_cache_free(slab, sk); in sk_prot_alloc() 1863 struct kmem_cache *slab; in sk_prot_free() local 1867 slab = prot->slab; in sk_prot_free() 1872 if (slab != NULL) in sk_prot_free() 1873 kmem_cache_free(slab, sk); in sk_prot_free() [all …]
|
/Linux-v5.15/fs/erofs/ |
D | zdata.c | 17 struct kmem_cache *slab; member 34 if (!pcluster_pool[i].slab) in z_erofs_destroy_pcluster_pool() 36 kmem_cache_destroy(pcluster_pool[i].slab); in z_erofs_destroy_pcluster_pool() 37 pcluster_pool[i].slab = NULL; in z_erofs_destroy_pcluster_pool() 52 pcs->slab = kmem_cache_create(pcs->name, size, 0, in z_erofs_create_pcluster_pool() 54 if (pcs->slab) in z_erofs_create_pcluster_pool() 74 pcl = kmem_cache_zalloc(pcs->slab, GFP_NOFS); in z_erofs_alloc_pcluster() 93 kmem_cache_free(pcs->slab, pcl); in z_erofs_free_pcluster()
|
/Linux-v5.15/Documentation/translations/zh_CN/process/ |
D | magic-number.rst | 90 RED_MAGIC2 0x170fc2a5 (any) ``mm/slab.c`` 104 SLAB_C_MAGIC 0x4f17a36d kmem_cache ``mm/slab.c`` 111 RED_MAGIC1 0x5a2cf071 (any) ``mm/slab.c``
|
D | submit-checklist.rst | 85 20) 已通过至少注入slab和page分配失败进行检查。请参阅 ``Documentation/fault-injection/``
|
/Linux-v5.15/Documentation/translations/zh_TW/process/ |
D | magic-number.rst | 93 RED_MAGIC2 0x170fc2a5 (any) ``mm/slab.c`` 107 SLAB_C_MAGIC 0x4f17a36d kmem_cache ``mm/slab.c`` 114 RED_MAGIC1 0x5a2cf071 (any) ``mm/slab.c``
|
D | submit-checklist.rst | 88 20) 已通過至少注入slab和page分配失敗進行檢查。請參閱 ``Documentation/fault-injection/``
|
/Linux-v5.15/Documentation/process/ |
D | magic-number.rst | 100 RED_MAGIC2 0x170fc2a5 (any) ``mm/slab.c`` 114 SLAB_C_MAGIC 0x4f17a36d kmem_cache ``mm/slab.c`` 121 RED_MAGIC1 0x5a2cf071 (any) ``mm/slab.c``
|
/Linux-v5.15/Documentation/translations/it_IT/process/ |
D | magic-number.rst | 106 RED_MAGIC2 0x170fc2a5 (any) ``mm/slab.c`` 120 SLAB_C_MAGIC 0x4f17a36d kmem_cache ``mm/slab.c`` 127 RED_MAGIC1 0x5a2cf071 (any) ``mm/slab.c``
|
/Linux-v5.15/Documentation/dev-tools/ |
D | kasan.rst | 56 To include alloc and free stack traces of affected slab objects into reports, 66 BUG: KASAN: slab-out-of-bounds in kmalloc_oob_right+0xa8/0xbc [test_kasan] 122 flags: 0x200000000000100(slab) 138 where the accessed memory was allocated (in case a slab object was accessed), 140 bug report). Next comes a description of the accessed slab object and the 165 Note that KASAN bug titles (like ``slab-out-of-bounds`` or ``use-after-free``) 279 Software tag-based KASAN currently only supports tagging of slab and page_alloc 303 Hardware tag-based KASAN currently only supports tagging of slab and page_alloc
|
/Linux-v5.15/Documentation/translations/zh_CN/kernel-hacking/ |
D | hacking.rst | 259 定义于 ``include/linux/slab.h`` 293 在创建自己的常用对象缓存之前,请考虑使用 ``include/linux/slab.h`` 中的slab
|