Home
last modified time | relevance | path

Searched refs:nr_objs (Results 1 – 7 of 7) sorted by relevance

/linux/lib/
H A Dobjpool.c40 pool->nr_objs++; in objpool_init_percpu_slot()
48 objpool_init_percpu_slots(struct objpool_head *pool, int nr_objs, in objpool_init_percpu_slots() argument
63 nodes = nr_objs / pool->nr_possible_cpus; in objpool_init_percpu_slots()
64 if (cpu_count < (nr_objs % pool->nr_possible_cpus)) in objpool_init_percpu_slots()
118 int objpool_init(struct objpool_head *pool, int nr_objs, int object_size, in objpool_init() argument
125 if (nr_objs <= 0 || nr_objs > OBJPOOL_NR_OBJECT_MAX || in objpool_init()
133 capacity = roundup_pow_of_two(nr_objs); in objpool_init()
151 rc = objpool_init_percpu_slots(pool, nr_objs, context, objinit); in objpool_init()
155 refcount_set(&pool->ref, pool->nr_objs + 1); in objpool_init()
H A Dtest_objpool.c303 WARN_ON(max != sop->pool.nr_objs); in ot_init_sync_m0()
473 WARN_ON(max != sop->pool.nr_objs); in ot_init_async_m0()
/linux/tools/testing/shared/
H A Dlinux.c23 int nr_objs; member
90 if (cachep->nr_objs) { in kmem_cache_alloc_lru()
92 cachep->nr_objs--; in kmem_cache_alloc_lru()
123 if (cachep->nr_objs > 10 || cachep->align) { in __kmem_cache_free_locked()
128 cachep->nr_objs++; in __kmem_cache_free_locked()
174 if (cachep->nr_objs >= size) { in kmem_cache_alloc_bulk()
185 cachep->nr_objs--; in kmem_cache_alloc_bulk()
245 ret->nr_objs = 0; in kmem_cache_create()
277 assert(test_cache->nr_objs == 5); in test_kmem_cache_bulk()
289 assert(test_cache->nr_objs == 11); in test_kmem_cache_bulk()
[all …]
/linux/tools/cgroup/
H A Dmemcg_slabinfo.py72 nr_objs = 0
75 nr_objs += fn(slab)
76 return nr_objs
85 nr_objs = 0
91 nr_objs += n.total_objects.counter.value_()
94 return {'active_objs': nr_objs - nr_free,
95 'num_objs': nr_objs,
/linux/include/linux/
H A Dobjpool.h87 int nr_objs; member
121 int objpool_init(struct objpool_head *pool, int nr_objs, int object_size,
147 if (READ_ONCE(slot->last) - head - 1 >= pool->nr_objs) { in __objpool_try_get_slot()
203 WARN_ON_ONCE(tail - head > pool->nr_objs); in __objpool_try_add_slot()
/linux/scripts/gdb/linux/
H A Dslab.py299 nr_objs = 0
306 nr_objs = int(cache_node['total_objects']['counter'])
310 active_objs = nr_objs - nr_free
311 num_objs = nr_objs
/linux/mm/
H A Dslub.c3544 unsigned long nr_objs; in slab_out_of_memory() local
3549 nr_objs = node_nr_objs(n); in slab_out_of_memory()
3552 node, nr_slabs, nr_objs, nr_free); in slab_out_of_memory()
7609 unsigned long nr_objs = 0; in get_slabinfo() local
7616 nr_objs += node_nr_objs(n); in get_slabinfo()
7620 sinfo->active_objs = nr_objs - nr_free; in get_slabinfo()
7621 sinfo->num_objs = nr_objs; in get_slabinfo()