Home
last modified time | relevance | path

Searched refs:slab (Results 1 – 25 of 61) sorted by relevance

123

/Linux-v5.4/tools/vm/
Dslabinfo.c54 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.4/Documentation/ABI/testing/
Dsysfs-kernel-slab1 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.4/lib/
Dsg_pool.c13 struct kmem_cache *slab; member
149 sgp->slab = kmem_cache_create(sgp->name, size, 0, in sg_pool_init()
151 if (!sgp->slab) { in sg_pool_init()
158 sgp->slab); in sg_pool_init()
173 kmem_cache_destroy(sgp->slab); in sg_pool_init()
186 kmem_cache_destroy(sgp->slab); in sg_pool_exit()
Dstackdepot.c201 void *slab = stack_slabs[parts.slabindex]; in stack_depot_fetch() local
203 struct stack_record *stack = slab + offset; in stack_depot_fetch()
/Linux-v5.4/Documentation/vm/
Dslub.rst9 slab caches. SLUB always includes full debugging but it is off by default.
40 slub_debug=<Debug-Options>,<slab name1>,<slab name2>,...
54 caused higher minimum slab orders
67 end of the slab name, in order to cover all slabs with the same prefix. For
73 Red zoning and tracking may realign the slab. We can just apply sanity checks
78 Debugging options may require the minimum possible slab order to increase as
80 sizes). This has a higher liklihood of resulting in slab allocation errors
90 /sys/kernel/slab/<slab name>/
93 corresponding debug option. All options can be set on a slab that does
94 not contain objects. If the slab already contains objects then sanity checks
[all …]
Dsplit_page_table_lock.rst61 Make sure the architecture doesn't use slab allocator for page table
62 allocation: slab uses page->slab_cache for its pages.
/Linux-v5.4/net/dccp/
Dccid.c81 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.4/tools/perf/Documentation/
Dperf-kmem.txt44 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.4/include/net/
Drequest_sock.h30 struct kmem_cache *slab; member
84 req = kmem_cache_alloc(ops->slab, GFP_ATOMIC | __GFP_NOWARN); in reqsk_alloc()
90 kmem_cache_free(ops->slab, req); in reqsk_alloc()
114 kmem_cache_free(req->rsk_ops->slab, req); in __reqsk_free()
/Linux-v5.4/block/
Dbio.c53 struct kmem_cache *slab; member
65 struct kmem_cache *slab = NULL; in bio_find_or_create_slab() local
76 if (!bslab->slab && entry == -1) in bio_find_or_create_slab()
79 slab = bslab->slab; in bio_find_or_create_slab()
86 if (slab) in bio_find_or_create_slab()
105 slab = kmem_cache_create(bslab->name, sz, ARCH_KMALLOC_MINALIGN, in bio_find_or_create_slab()
107 if (!slab) in bio_find_or_create_slab()
110 bslab->slab = slab; in bio_find_or_create_slab()
115 return slab; in bio_find_or_create_slab()
126 if (bs->bio_slab == bio_slabs[i].slab) { in bio_put_slab()
[all …]
/Linux-v5.4/drivers/crypto/chelsio/chtls/
Dchtls_cm.h131 chtls_tcp_ops->slab = tcp_prot->rsk_prot->slab; in chtls_init_rsk_ops()
139 kmem_cache_free(req->rsk_ops->slab, req); in chtls_reqsk_free()
/Linux-v5.4/Documentation/core-api/
Dmm-api.rst43 .. kernel-doc:: include/linux/slab.h
46 .. kernel-doc:: mm/slab.c
Dmemory-allocation.rst118 If you need to allocate many identical objects you can use the slab
128 `vmalloc` and `kvmalloc`. The slab caches should be freed with
/Linux-v5.4/net/core/
Dsock.c1595 struct kmem_cache *slab; in sk_prot_alloc() local
1597 slab = prot->slab; in sk_prot_alloc()
1598 if (slab != NULL) { in sk_prot_alloc()
1599 sk = kmem_cache_alloc(slab, priority & ~__GFP_ZERO); in sk_prot_alloc()
1621 if (slab != NULL) in sk_prot_alloc()
1622 kmem_cache_free(slab, sk); in sk_prot_alloc()
1630 struct kmem_cache *slab; in sk_prot_free() local
1634 slab = prot->slab; in sk_prot_free()
1639 if (slab != NULL) in sk_prot_free()
1640 kmem_cache_free(slab, sk); in sk_prot_free()
[all …]
/Linux-v5.4/Documentation/translations/zh_CN/process/
Dmagic-number.rst96 RED_MAGIC2 0x170fc2a5 (any) ``mm/slab.c``
110 SLAB_C_MAGIC 0x4f17a36d kmem_cache ``mm/slab.c``
117 RED_MAGIC1 0x5a2cf071 (any) ``mm/slab.c``
Dsubmit-checklist.rst87 21) 已通过至少注入slab和page分配失败进行检查。请参阅 ``Documentation/fault-injection/``
/Linux-v5.4/Documentation/dev-tools/
Dkasan.rst64 BUG: KASAN: slab-out-of-bounds in kmalloc_oob_right+0xa8/0xbc [test_kasan]
120 flags: 0x200000000000100(slab)
137 access happens on a slab object), and a stack trace of where the object was
139 the accessed slab object and information about the accessed memory page.
/Linux-v5.4/Documentation/fault-injection/
Dfault-injection.rst13 injects slab allocation failures. (kmalloc(), kmem_cache_alloc(), ...)
194 Note that this file enables all types of faults (slab, futex, etc).
245 - Inject slab allocation failures into module init/exit code::
367 Run a command "make -C tools/testing/selftests/ run_tests" with injecting slab
379 Same as above except to inject page allocation failure instead of slab
/Linux-v5.4/Documentation/translations/it_IT/process/
Dmagic-number.rst113 RED_MAGIC2 0x170fc2a5 (any) ``mm/slab.c``
127 SLAB_C_MAGIC 0x4f17a36d kmem_cache ``mm/slab.c``
134 RED_MAGIC1 0x5a2cf071 (any) ``mm/slab.c``
/Linux-v5.4/Documentation/process/
Dmagic-number.rst107 RED_MAGIC2 0x170fc2a5 (any) ``mm/slab.c``
121 SLAB_C_MAGIC 0x4f17a36d kmem_cache ``mm/slab.c``
128 RED_MAGIC1 0x5a2cf071 (any) ``mm/slab.c``
/Linux-v5.4/Documentation/translations/ja_JP/
DSubmitChecklist93 20: 少なくともslabアロケーションとpageアロケーションに失敗した場合の
/Linux-v5.4/Documentation/trace/
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,
/Linux-v5.4/tools/testing/fault-injection/
Dfailcmd.sh59 inject slab allocation failures
/Linux-v5.4/mm/
Dmemory-failure.c832 #define slab (1UL << PG_slab) macro
852 { slab, slab, MF_MSG_SLAB, me_kernel },
881 #undef slab
DMakefile71 obj-$(CONFIG_SLAB) += slab.o

123