Home
last modified time | relevance | path

Searched refs:nr_allocated (Results 1 – 19 of 19) sorted by relevance

/linux-6.12.1/tools/testing/shared/
Dlinux.c15 int nr_allocated; variable
27 unsigned long nr_allocated; member
51 return cachep->size * cachep->nr_allocated; in kmem_cache_get_alloc()
56 return cachep->nr_allocated; in kmem_cache_nr_allocated()
109 uatomic_inc(&cachep->nr_allocated); in kmem_cache_alloc_lru()
110 uatomic_inc(&nr_allocated); in kmem_cache_alloc_lru()
133 uatomic_dec(&nr_allocated); in kmem_cache_free_locked()
134 uatomic_dec(&cachep->nr_allocated); in kmem_cache_free_locked()
222 uatomic_inc(&nr_allocated); in kmem_cache_alloc_bulk()
223 uatomic_inc(&cachep->nr_allocated); in kmem_cache_alloc_bulk()
[all …]
/linux-6.12.1/tools/testing/radix-tree/
Dmain.c244 nr_allocated, preempt_count); in single_thread_tests()
248 nr_allocated, preempt_count); in single_thread_tests()
252 nr_allocated, preempt_count); in single_thread_tests()
256 nr_allocated, preempt_count); in single_thread_tests()
260 nr_allocated, preempt_count); in single_thread_tests()
264 nr_allocated, preempt_count); in single_thread_tests()
269 nr_allocated, preempt_count); in single_thread_tests()
273 nr_allocated, preempt_count); in single_thread_tests()
281 nr_allocated, preempt_count); in single_thread_tests()
324 nr_allocated, preempt_count); in main()
Dtag_check.c53 printv(2, "before item_kill_tree: %d allocated\n", nr_allocated); in simple_checks()
56 printv(2, "after item_kill_tree: %d allocated\n", nr_allocated); in simple_checks()
300 printv(2, "%d: nr_allocated=%d\n", __LINE__, nr_allocated); in __leak_check()
302 printv(2, "%d: nr_allocated=%d\n", __LINE__, nr_allocated); in __leak_check()
304 printv(2, "%d: nr_allocated=%d\n", __LINE__, nr_allocated); in __leak_check()
306 printv(2, "%d: nr_allocated=%d\n", __LINE__, nr_allocated); in __leak_check()
340 printv(2, "after extend_checks: %d allocated\n", nr_allocated); in tag_check()
344 printv(2, "after leak_check: %d allocated\n", nr_allocated); in tag_check()
347 printv(2, "after simple_checks: %d allocated\n", nr_allocated); in tag_check()
350 printv(2, "after thrash_tags: %d allocated\n", nr_allocated); in tag_check()
Dxarray.c26 if (nr_allocated) in main()
27 printf("nr_allocated = %d\n", nr_allocated); in main()
Dtest.h50 extern int nr_allocated;
Didr-test.c600 if (nr_allocated) in main()
601 printf("nr_allocated = %d\n", nr_allocated); in main()
Dmaple.c36533 if (nr_allocated) in main()
36534 printf("nr_allocated = %d\n", nr_allocated); in main()
/linux-6.12.1/fs/reiserfs/
Dbitmap.c351 int nr_allocated = 0; in scan_bitmap() local
390 nr_allocated = in scan_bitmap()
393 if (nr_allocated) in scan_bitmap()
401 nr_allocated = in scan_bitmap()
403 if (nr_allocated) in scan_bitmap()
407 nr_allocated = in scan_bitmap()
412 return nr_allocated; in scan_bitmap()
1158 int nr_allocated; in allocate_without_wrapping_disk() local
1161 nr_allocated = scan_bitmap(hint->th, &start, finish, min, in allocate_without_wrapping_disk()
1165 if (nr_allocated == 0) /* no new blocks allocated, return */ in allocate_without_wrapping_disk()
[all …]
/linux-6.12.1/drivers/media/common/videobuf2/
Dframe_vector.c49 if (WARN_ON_ONCE(nr_frames > vec->nr_allocated)) in get_vaddr_frames()
50 nr_frames = vec->nr_allocated; in get_vaddr_frames()
179 vec->nr_allocated = nr_frames; in frame_vector_create()
/linux-6.12.1/lib/
Dtest_vmalloc.c365 unsigned long nr_allocated; in vm_map_ram_test() local
376 nr_allocated = alloc_pages_bulk_array(GFP_KERNEL, map_nr_pages, pages); in vm_map_ram_test()
377 if (nr_allocated != map_nr_pages) in vm_map_ram_test()
388 for (i = 0; i < nr_allocated; i++) in vm_map_ram_test()
394 return nr_allocated != map_nr_pages; in vm_map_ram_test()
/linux-6.12.1/drivers/md/persistent-data/
Ddm-space-map-common.h80 dm_block_t nr_allocated; member
103 __le64 nr_allocated; member
Ddm-space-map-disk.c62 *count = (smd->old_ll.nr_blocks - smd->old_ll.nr_allocated) - smd->nr_allocated_this_transaction; in sm_disk_get_nr_free()
186 root_le.nr_allocated = cpu_to_le64(smd->ll.nr_allocated); in sm_disk_copy_root()
Ddm-space-map-common.c490 ll->nr_allocated++; in sm_ll_insert()
497 ll->nr_allocated--; in sm_ll_insert()
672 ll->nr_allocated++; in sm_ll_inc_bitmap()
868 ll->nr_allocated--; in sm_ll_dec_bitmap()
1044 ll->nr_allocated = 0; in sm_ll_new_metadata()
1086 ll->nr_allocated = le64_to_cpu(smr.nr_allocated); in sm_ll_open_metadata()
1222 ll->nr_allocated = 0; in sm_ll_new_disk()
1258 ll->nr_allocated = le64_to_cpu(smr->nr_allocated); in sm_ll_open_disk()
Ddm-space-map-metadata.c296 *count = smm->old_ll.nr_blocks - smm->old_ll.nr_allocated - in sm_metadata_get_nr_free()
549 root_le.nr_allocated = cpu_to_le64(smm->ll.nr_allocated); in sm_metadata_copy_root()
/linux-6.12.1/mm/
Dmempolicy.c2364 unsigned long nr_allocated; in alloc_pages_bulk_array_interleave() local
2373 nr_allocated = alloc_pages_bulk_noprof(gfp, in alloc_pages_bulk_array_interleave()
2379 nr_allocated = alloc_pages_bulk_noprof(gfp, in alloc_pages_bulk_array_interleave()
2384 page_array += nr_allocated; in alloc_pages_bulk_array_interleave()
2385 total_allocated += nr_allocated; in alloc_pages_bulk_array_interleave()
2398 unsigned long nr_allocated = 0; in alloc_pages_bulk_array_weighted_interleave() local
2429 nr_allocated = __alloc_pages_bulk(gfp, node, NULL, node_pages, in alloc_pages_bulk_array_weighted_interleave()
2431 page_array += nr_allocated; in alloc_pages_bulk_array_weighted_interleave()
2432 total_allocated += nr_allocated; in alloc_pages_bulk_array_weighted_interleave()
2492 nr_allocated = __alloc_pages_bulk(gfp, node, NULL, node_pages, in alloc_pages_bulk_array_weighted_interleave()
[all …]
Dvmalloc.c3514 unsigned int nr_allocated = 0; in vm_area_alloc_pages() local
3525 while (nr_allocated < nr_pages) { in vm_area_alloc_pages()
3534 nr_pages_request = min(100U, nr_pages - nr_allocated); in vm_area_alloc_pages()
3544 pages + nr_allocated); in vm_area_alloc_pages()
3548 pages + nr_allocated); in vm_area_alloc_pages()
3550 nr_allocated += nr; in vm_area_alloc_pages()
3563 while (nr_allocated < nr_pages) { in vm_area_alloc_pages()
3591 pages[nr_allocated + i] = page + i; in vm_area_alloc_pages()
3594 nr_allocated += 1U << order; in vm_area_alloc_pages()
3597 return nr_allocated; in vm_area_alloc_pages()
/linux-6.12.1/include/media/
Dframe_vector.h7 unsigned int nr_allocated; /* Number of frames we have space for */ member
/linux-6.12.1/drivers/md/
Ddm-cache-policy-smq.c697 unsigned int nr_allocated; member
707 ea->nr_allocated = 0u; in init_allocator()
740 ea->nr_allocated++; in alloc_entry()
756 ea->nr_allocated++; in alloc_particular_entry()
763 BUG_ON(!ea->nr_allocated); in free_entry()
766 ea->nr_allocated--; in free_entry()
1164 nr_free = from_cblock(mq->cache_size) - mq->cache_alloc.nr_allocated; in free_target_met()
1621 r = to_cblock(mq->cache_alloc.nr_allocated); in smq_residency()
/linux-6.12.1/tools/perf/
Dbuiltin-trace.c2176 size_t nr_used = 0, nr_allocated = strlist__nr_entries(trace->ev_qualifier); in trace__validate_ev_qualifier() local
2178 trace->ev_qualifier_ids.entries = malloc(nr_allocated * in trace__validate_ev_qualifier()
2216 if (nr_allocated == nr_used) { in trace__validate_ev_qualifier()
2219 nr_allocated += 8; in trace__validate_ev_qualifier()
2221 nr_allocated * sizeof(trace->ev_qualifier_ids.entries[0])); in trace__validate_ev_qualifier()