Searched refs:nr_objs (Results 1 – 8 of 8) sorted by relevance
| /linux/lib/ |
| H A D | objpool.c | 40 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 D | test_objpool.c | 302 WARN_ON(max != sop->pool.nr_objs); in ot_init_sync_m0() 468 WARN_ON(max != sop->pool.nr_objs); in ot_init_async_m0()
|
| /linux/tools/testing/shared/ |
| H A D | linux.c | 76 if (cachep->nr_objs) { in kmem_cache_alloc_lru() 78 cachep->nr_objs--; in kmem_cache_alloc_lru() 109 if (cachep->nr_objs > 10 || cachep->align) { in kmem_cache_alloc_lru() 114 cachep->nr_objs++; in kmem_cache_alloc_lru() 166 if (cachep->nr_objs >= size) { in kmem_cache_alloc_bulk() 177 cachep->nr_objs--; in kmem_cache_alloc_bulk() 241 ret->nr_objs = 0; in kmem_cache_create() 357 assert(test_cache->nr_objs == 5); 369 assert(test_cache->nr_objs == 11); 376 assert(!test_cache2->nr_objs); 23 int nr_objs; global() member [all...] |
| /linux/tools/cgroup/ |
| H A D | memcg_slabinfo.py | 72 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/scripts/livepatch/ |
| H A D | init.c | 19 unsigned int nr_objs; in livepatch_mod_init() local 24 nr_objs = obj_exts_sec_size / sizeof(*obj_exts); in livepatch_mod_init() 25 if (!nr_objs) { in livepatch_mod_init() 37 objs = kzalloc(sizeof(struct klp_object) * (nr_objs + 1), GFP_KERNEL); in livepatch_mod_init() 43 for (int i = 0; i < nr_objs; i++) { in livepatch_mod_init()
|
| /linux/scripts/gdb/linux/ |
| H A D | slab.py | 299 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/tools/include/linux/ |
| H A D | slab.h | 51 int nr_objs; member
|
| /linux/mm/ |
| H A D | slub.c | 4281 unsigned long nr_objs; in slab_out_of_memory() local 4286 nr_objs = node_nr_objs(n); in slab_out_of_memory() 4289 node, nr_slabs, nr_objs, nr_free); in slab_out_of_memory() 9918 unsigned long nr_objs = 0; in get_slabinfo() local 9925 nr_objs += node_nr_objs(n); in get_slabinfo() 9929 sinfo->active_objs = nr_objs - nr_free; in get_slabinfo() 9930 sinfo->num_objs = nr_objs; in get_slabinfo()
|