Home
last modified time | relevance | path

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

12345678910>>...100

/linux/tools/vm/
A Dslabinfo.c54 struct slabinfo *slab; member
1107 a->slab = s; in link_slabs()
1212 slab->alias = 0; in read_slab_dir()
1213 slab->refs = 0; in read_slab_dir()
1267 slab++; in read_slab_dir()
1288 for (slab = slabinfo; (slab < slabinfo + slabs) && in output_slabs()
1291 if (slab->alias) in output_slabs()
1306 slab_debug(slab); in output_slabs()
1308 ops(slab); in output_slabs()
1310 slabcache(slab); in output_slabs()
[all …]
/linux/Documentation/ABI/testing/
A Dsysfs-kernel-slab1 What: /sys/kernel/slab
13 What: /sys/kernel/slab/<cache>/aliases
22 What: /sys/kernel/slab/<cache>/align
31 What: /sys/kernel/slab/<cache>/alloc_calls
131 What: /sys/kernel/slab/<cache>/ctor
139 new slab is allocated.
242 a frozen slab (i.e. a remote cpu slab). It can be written to
338 What: /sys/kernel/slab/<cache>/order
346 number of objects per slab. If a slab cannot be allocated
384 when a new slab is allocated.
[all …]
/linux/lib/
A Dsg_pool.c13 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()
A Dstackdepot.c272 void *slab; in stack_depot_fetch() local
285 slab = stack_slabs[parts.slabindex]; in stack_depot_fetch()
286 if (!slab) in stack_depot_fetch()
288 stack = slab + offset; in stack_depot_fetch()
/linux/Documentation/vm/
A Dslub.rst40 slub_debug=<Debug-Options>,<slab name1>,<slab name2>,...
59 caused higher minimum slab orders
107 /sys/kernel/slab/<slab name>/
120 used on the wrong slab.
159 slab in order for the allocation order to be acceptable. In
161 allocations on a slab without consulting centralized resources
172 of a slab cache with large object sizes into one high order
230 BUG <slab cache affected>: <What went wrong>
234 INFO: Slab <address> <slab information>
242 set for the slab. slub_debug sets that option)
[all …]
A 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/net/dccp/
A 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/tools/perf/Documentation/
A Dperf-kmem.txt47 Sort the output (default: 'frag,hit,bytes' for slab and 'bytes,hit'
49 pingpong, frag' for slab and 'page, callsite, bytes, hit, order,
51 mode selection options - i.e. --slab, --page, --alloc and/or --caller.
60 --slab::
/linux/include/net/
A Drequest_sock.h30 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/tools/testing/selftests/cgroup/
A Dtest_kmem.c165 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/Documentation/translations/zh_CN/dev-tools/
A Dkasan.rst58 要将受影响的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/tools/testing/scatterlist/
A DMakefile17 … $(OFILES) scatterlist.c linux/scatterlist.h linux/highmem.h linux/kmemleak.h linux/slab.h asm/io.h
31 @touch linux/slab.h
/linux/block/
A Dbio.c36 struct kmem_cache *slab; member
73 struct kmem_cache *slab; member
89 bslab->slab = kmem_cache_create(bslab->name, size, in create_bio_slab()
92 if (!bslab->slab) in create_bio_slab()
101 kmem_cache_destroy(bslab->slab); in create_bio_slab()
127 return bslab->slab; in bio_find_or_create_slab()
142 WARN_ON_ONCE(bslab->slab != bs->bio_slab); in bio_put_slab()
151 kmem_cache_destroy(bslab->slab); in bio_put_slab()
165 kmem_cache_free(biovec_slab(nr_vecs)->slab, bv); in bvec_free()
200 bvl = kmem_cache_alloc(bvs->slab, bvec_alloc_gfp(gfp_mask)); in bvec_alloc()
[all …]
/linux/Documentation/translations/zh_CN/core-api/
A Dmm-api.rst48 include/linux/slab.h
50 mm/slab.c
A Dmemory-allocation.rst131 如果你需要分配许多相同的对象,你可以使用slab缓存分配器。在使用缓存之前,应该用
137 和 `kvmalloc` 分配的内存。slab缓存应该用kmem_cache_free()来释放。不要忘记用
/linux/drivers/net/ethernet/chelsio/inline_crypto/chtls/
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()
/linux/net/core/
A Dsock.c1910 struct kmem_cache *slab; in sk_prot_alloc() local
1912 slab = prot->slab; in sk_prot_alloc()
1913 if (slab != NULL) { in sk_prot_alloc()
1935 if (slab != NULL) in sk_prot_alloc()
1944 struct kmem_cache *slab; in sk_prot_free() local
1948 slab = prot->slab; in sk_prot_free()
1953 if (slab != NULL) in sk_prot_free()
3691 rsk_prot->slab = NULL; in req_prot_cleanup()
3711 if (!rsk_prot->slab) { in req_prot_init()
3762 prot->slab = NULL; in proto_register()
[all …]
/linux/Documentation/core-api/
A Dmm-api.rst40 .. kernel-doc:: include/linux/slab.h
43 .. kernel-doc:: mm/slab.c
/linux/fs/erofs/
A Dzdata.c17 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/Documentation/translations/zh_CN/process/
A Dmagic-number.rst90 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``
/linux/Documentation/translations/zh_TW/process/
A Dmagic-number.rst93 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``
/linux/Documentation/dev-tools/
A Dkasan.rst56 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``)
282 Software tag-based KASAN currently only supports tagging of slab and page_alloc
306 Hardware tag-based KASAN currently only supports tagging of slab and page_alloc
/linux/Documentation/process/
A Dmagic-number.rst100 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/Documentation/translations/it_IT/process/
A Dmagic-number.rst106 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/Documentation/fault-injection/
A Dfault-injection.rst13 injects slab allocation failures. (kmalloc(), kmem_cache_alloc(), ...)
221 Note that this file enables all types of faults (slab, futex, etc).
272 - Inject slab allocation failures into module init/exit code::
394 Run a command "make -C tools/testing/selftests/ run_tests" with injecting slab
406 Same as above except to inject page allocation failure instead of slab

Completed in 40 milliseconds

12345678910>>...100