| H A D | slub.c | 1 // SPDX-License-Identifier: GPL-2.0 38 #include <linux/fault-inject.h> 45 #include <kunit/test-bug.h> 57 * 2. node->list_lock (Spinlock) 58 * 3. kmem_cache->cpu_slab->lock (Local lock) 76 * A. slab->freelist -> Lis 475 unsigned int size; global() member 497 struct list_head full; global() member 667 order_objects(unsigned int order,unsigned int size) order_objects() argument 673 oo_make(unsigned int order,unsigned int size) oo_make() argument 2321 memcg_slab_post_alloc_hook(struct kmem_cache * s,struct list_lru * lru,gfp_t flags,size_t size,void ** p) memcg_slab_post_alloc_hook() argument 2369 int size; memcg_slab_post_charge() local 2414 memcg_slab_post_alloc_hook(struct kmem_cache * s,struct list_lru * lru,gfp_t flags,size_t size,void ** p) memcg_slab_post_alloc_hook() argument 2938 struct slab_sheaf *full = NULL; barn_replace_empty_sheaf() local 2965 barn_replace_full_sheaf(struct node_barn * barn,struct slab_sheaf * full) barn_replace_full_sheaf() argument 4923 slab_post_alloc_hook(struct kmem_cache * s,struct list_lru * lru,gfp_t flags,size_t size,void ** p,bool init,unsigned int orig_size) slab_post_alloc_hook() argument 4988 struct slab_sheaf *full; __pcs_replace_empty_main() local 5159 alloc_from_pcs_bulk(struct kmem_cache * s,size_t size,void ** p) alloc_from_pcs_bulk() argument 5174 struct slab_sheaf *full; alloc_from_pcs_bulk() local 5339 kmem_cache_prefill_sheaf(struct kmem_cache * s,gfp_t gfp,unsigned int size) kmem_cache_prefill_sheaf() argument 5481 kmem_cache_refill_sheaf(struct kmem_cache * s,gfp_t gfp,struct slab_sheaf ** sheafp,unsigned int size) kmem_cache_refill_sheaf() argument 5563 ___kmalloc_large_node(size_t size,gfp_t flags,int node) ___kmalloc_large_node() argument 5594 __kmalloc_large_noprof(size_t size,gfp_t flags) __kmalloc_large_noprof() argument 5604 __kmalloc_large_node_noprof(size_t size,gfp_t flags,int node) __kmalloc_large_node_noprof() argument 5615 __do_kmalloc_node(size_t size,kmem_buckets * b,gfp_t flags,int node,unsigned long caller) __do_kmalloc_node() argument 5638 __kmalloc_node_noprof(DECL_BUCKET_PARAMS (size,b),gfp_t flags,int node) __kmalloc_node_noprof() argument 5644 __kmalloc_noprof(size_t size,gfp_t flags) __kmalloc_noprof() argument 5661 kmalloc_nolock_noprof(size_t size,gfp_t gfp_flags,int node) kmalloc_nolock_noprof() argument 5740 __kmalloc_node_track_caller_noprof(DECL_BUCKET_PARAMS (size,b),gfp_t flags,int node,unsigned long caller) __kmalloc_node_track_caller_noprof() argument 5748 __kmalloc_cache_noprof(struct kmem_cache * s,gfp_t gfpflags,size_t size) __kmalloc_cache_noprof() argument 5761 __kmalloc_cache_node_noprof(struct kmem_cache * s,gfp_t gfpflags,int node,size_t size) __kmalloc_cache_node_noprof() argument 6303 free_to_pcs_bulk(struct kmem_cache * s,size_t size,void ** p) free_to_pcs_bulk() argument 7035 kmalloc_gfp_adjust(gfp_t flags,size_t size) kmalloc_gfp_adjust() argument 7080 __kvmalloc_node_noprof(DECL_BUCKET_PARAMS (size,b),unsigned long align,gfp_t flags,int node) __kvmalloc_node_noprof() argument 7181 kvrealloc_node_align_noprof(const void * p,size_t size,unsigned long align,gfp_t flags,int nid) kvrealloc_node_align_noprof() argument 7231 build_detached_freelist(struct kmem_cache * s,size_t size,void ** p,struct detached_freelist * df) build_detached_freelist() argument 7293 __kmem_cache_free_bulk(struct kmem_cache * s,size_t size,void ** p) __kmem_cache_free_bulk() argument 7314 kmem_cache_free_bulk(struct kmem_cache * s,size_t size,void ** p) kmem_cache_free_bulk() argument 7343 __kmem_cache_alloc_bulk(struct kmem_cache * s,gfp_t flags,size_t size,void ** p) __kmem_cache_alloc_bulk() argument 7414 __kmem_cache_alloc_bulk(struct kmem_cache * s,gfp_t flags,size_t size,void ** p) __kmem_cache_alloc_bulk() argument 7443 kmem_cache_alloc_bulk_noprof(struct kmem_cache * s,gfp_t flags,size_t size,void ** p) kmem_cache_alloc_bulk_noprof() argument 7532 calc_slab_order(unsigned int size,unsigned int min_order,unsigned int max_order,unsigned int fract_leftover) calc_slab_order() argument 7552 calculate_order(unsigned int size) calculate_order() argument 7831 unsigned int size = s->object_size; calculate_sizes() local 8503 __kmem_cache_alias(const char * name,unsigned int size,unsigned int align,slab_flags_t flags,void (* ctor)(void *)) __kmem_cache_alias() argument 8528 do_kmem_cache_create(struct kmem_cache * s,const char * name,unsigned int size,struct kmem_cache_args * args,slab_flags_t flags) do_kmem_cache_create() argument [all...] |