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()
112 int objpool_init(struct objpool_head *pool, int nr_objs, int object_size, in objpool_init() argument
119 if (nr_objs <= 0 || nr_objs > OBJPOOL_NR_OBJECT_MAX || in objpool_init()
127 capacity = roundup_pow_of_two(nr_objs); in objpool_init()
145 rc = objpool_init_percpu_slots(pool, nr_objs, context, objinit); in objpool_init()
149 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/radix-tree/
H A Dlinux.c23 int nr_objs; member
69 if (cachep->nr_objs) { in kmem_cache_alloc_lru()
71 cachep->nr_objs--; in kmem_cache_alloc_lru()
99 if (cachep->nr_objs > 10 || cachep->align) { in __kmem_cache_free_locked()
104 cachep->nr_objs++; in __kmem_cache_free_locked()
150 if (cachep->nr_objs >= size) { in kmem_cache_alloc_bulk()
161 cachep->nr_objs--; in kmem_cache_alloc_bulk()
220 ret->nr_objs = 0; in kmem_cache_create()
249 assert(test_cache->nr_objs == 5); in test_kmem_cache_bulk()
261 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.c3381 unsigned long nr_objs; in slab_out_of_memory() local
3386 nr_objs = node_nr_objs(n); in slab_out_of_memory()
3389 node, nr_slabs, nr_objs, nr_free); in slab_out_of_memory()
7247 unsigned long nr_objs = 0; in get_slabinfo() local
7254 nr_objs += node_nr_objs(n); in get_slabinfo()
7258 sinfo->active_objs = nr_objs - nr_free; in get_slabinfo()
7259 sinfo->num_objs = nr_objs; in get_slabinfo()