Home
last modified time | relevance | path

Searched refs:total_size (Results 1 – 22 of 22) sorted by relevance

/tools/testing/memblock/tests/
A Dalloc_api.c80 phys_addr_t total_size; in alloc_top_down_disjoint_check() local
106 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_top_down_disjoint_check()
148 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_top_down_before_check()
172 phys_addr_t total_size; in alloc_top_down_after_check() local
196 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_top_down_after_check()
246 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_top_down_second_fit_check()
300 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_in_between_generic_check()
583 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_bottom_up_disjoint_check()
622 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_bottom_up_before_check()
669 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_bottom_up_after_check()
[all …]
A Dbasic_api.c198 ASSERT_EQ(memblock.memory.total_size, total_size); in memblock_add_overlap_top_check()
250 ASSERT_EQ(memblock.memory.total_size, total_size); in memblock_add_overlap_bottom_check()
375 ASSERT_EQ(memblock.memory.total_size, total_size); in memblock_add_between_check()
419 ASSERT_EQ(memblock.memory.total_size, total_size); in memblock_add_near_max_check()
663 ASSERT_EQ(memblock.reserved.total_size, total_size); in memblock_reserve_overlap_top_check()
716 ASSERT_EQ(memblock.reserved.total_size, total_size); in memblock_reserve_overlap_bottom_check()
1410 ASSERT_EQ(memblock.memory.total_size, total_size); in memblock_remove_overlap_top_check()
1462 ASSERT_EQ(memblock.memory.total_size, total_size); in memblock_remove_overlap_bottom_check()
1522 ASSERT_EQ(memblock.memory.total_size, total_size); in memblock_remove_within_check()
1608 ASSERT_EQ(memblock.memory.total_size, total_size); in memblock_remove_near_max_check()
[all …]
A Dalloc_helpers_api.c39 ASSERT_EQ(memblock.reserved.total_size, size); in alloc_from_simple_generic_check()
83 ASSERT_EQ(memblock.reserved.total_size, size); in alloc_from_misaligned_generic_check()
128 ASSERT_EQ(memblock.reserved.total_size, size); in alloc_from_top_down_high_addr_check()
157 phys_addr_t total_size = r1_size + r2_size; in alloc_from_top_down_no_space_above_check() local
172 ASSERT_EQ(rgn->size, total_size); in alloc_from_top_down_no_space_above_check()
175 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_from_top_down_no_space_above_check()
211 ASSERT_EQ(memblock.reserved.total_size, MEM_SIZE); in alloc_from_top_down_min_addr_cap_check()
254 ASSERT_EQ(memblock.reserved.total_size, size); in alloc_from_bottom_up_high_addr_check()
300 ASSERT_EQ(memblock.reserved.total_size, r1_size + r2_size); in alloc_from_bottom_up_no_space_above_check()
333 ASSERT_EQ(memblock.reserved.total_size, r1_size); in alloc_from_bottom_up_min_addr_cap_check()
A Dalloc_nid_api.c340 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_nid_min_reserved_generic_check()
390 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_nid_max_reserved_generic_check()
422 phys_addr_t total_size; in alloc_nid_top_down_reserved_with_space_check() local
456 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_nid_top_down_reserved_with_space_check()
485 phys_addr_t total_size; in alloc_nid_reserved_full_merge_generic_check() local
516 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_nid_reserved_full_merge_generic_check()
583 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_nid_top_down_reserved_no_space_check()
929 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_nid_bottom_up_reserved_with_space_check()
1002 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_nid_bottom_up_reserved_no_space_check()
1980 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_nid_bottom_up_numa_part_reserved_check()
[all …]
A Dalloc_exact_nid_api.c57 ASSERT_EQ(memblock.reserved.total_size, size); in alloc_exact_nid_top_down_numa_simple_check()
170 ASSERT_EQ(memblock.reserved.total_size, size); in alloc_exact_nid_top_down_numa_split_range_low_check()
227 ASSERT_EQ(memblock.reserved.total_size, size); in alloc_exact_nid_top_down_numa_no_overlap_split_check()
358 phys_addr_t total_size; in alloc_exact_nid_bottom_up_numa_part_reserved_check() local
369 total_size = size + r1.size; in alloc_exact_nid_bottom_up_numa_part_reserved_check()
379 ASSERT_EQ(new_rgn->size, total_size); in alloc_exact_nid_bottom_up_numa_part_reserved_check()
384 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_exact_nid_bottom_up_numa_part_reserved_check()
847 phys_addr_t total_size; in alloc_exact_nid_numa_reserved_full_merge_generic_check() local
860 total_size = r1.size + r2.size + size; in alloc_exact_nid_numa_reserved_full_merge_generic_check()
874 ASSERT_EQ(new_rgn->size, total_size); in alloc_exact_nid_numa_reserved_full_merge_generic_check()
[all …]
A Dcommon.c45 memblock.memory.total_size = 0; in reset_memblock_regions()
51 memblock.reserved.total_size = 0; in reset_memblock_regions()
/tools/testing/selftests/kvm/
A Dguest_memfd_test.c52 TEST_ASSERT_EQ(sb.st_size, total_size); in test_file_size()
60 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE, 0, total_size); in test_fallocate()
67 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE, total_size, page_size); in test_fallocate()
74 total_size, page_size); in test_fallocate()
78 total_size + page_size, page_size); in test_fallocate()
176 size_t total_size; in main() local
183 total_size = page_size * 4; in main()
190 fd = vm_create_guest_memfd(vm, total_size, 0); in main()
194 test_file_size(fd, page_size, total_size); in main()
195 test_fallocate(fd, page_size, total_size); in main()
[all …]
/tools/testing/selftests/bpf/progs/
A Dtest_get_stack_rawtp.c60 int max_len, max_buildid_len, total_size; in bpf_prog1() local
95 total_size = usize + ksize; in bpf_prog1()
96 if (total_size > 0 && total_size <= max_len) in bpf_prog1()
97 bpf_perf_event_output(ctx, &perfmap, 0, raw_data, total_size); in bpf_prog1()
/tools/bootconfig/
A Dtest-bootconfig.sh63 total_size=$(expr $bconf_size + $initrd_size + 9 + 12 + $ALIGN - 1 )
64 total_size=$(expr $total_size / $ALIGN)
65 total_size=$(expr $total_size \* $ALIGN)
66 xpass test $new_size -eq $total_size
A Dmain.c373 size_t total_size; in apply_xbc() local
437 total_size = stat.st_size + size + BOOTCONFIG_FOOTER_SIZE; in apply_xbc()
438 pad = ((total_size + BOOTCONFIG_ALIGN - 1) & (~BOOTCONFIG_ALIGN_MASK)) - total_size; in apply_xbc()
448 total_size = size + BOOTCONFIG_FOOTER_SIZE; in apply_xbc()
450 ret = write(fd, data, total_size); in apply_xbc()
451 if (ret < total_size) { in apply_xbc()
/tools/perf/util/
A Djitdump.h40 uint32_t total_size; /* total size of header */ member
61 uint32_t total_size; member
A Djitdump.c177 header.total_size = bswap_32(header.total_size); in jit_open()
189 header.total_size, in jit_open()
220 bs = header.total_size - sizeof(header); in jit_open()
283 prefix->total_size = bswap_32(prefix->total_size); in jit_get_next_entry()
287 size = prefix->total_size; in jit_get_next_entry()
450 code = (unsigned long)jr + jr->load.p.total_size - csize; in jit_repipe_code_load()
655 sz = jr->prefix.total_size - sizeof(jr->info); in jit_repipe_debug_info()
682 unwinding_data_size = jr->prefix.total_size - sizeof(jr->unwinding); in jit_repipe_unwinding_info()
A Dcs-etm.c3368 int total_size = auxtrace_info->header.size; in cs_etm__process_auxtrace_info_full() local
3429 priv_size = total_size - event_header_size - INFO_HEADER_SIZE; in cs_etm__process_auxtrace_info_full()
A Dsession.c2326 u64 total_size = perf_data__size(session->data); in __perf_session__process_dir_events() local
2329 ui_progress__init_size(&prog, total_size, "Processing events..."); in __perf_session__process_dir_events()
/tools/perf/jvmti/
A Djvmti_agent.c312 header.total_size = sizeof(header); in jvmti_open()
342 rec.p.total_size = sizeof(rec); in jvmti_close()
380 rec.p.total_size = sizeof(rec) + sym_len; in jvmti_write_code()
390 rec.p.total_size += size; in jvmti_write_code()
457 rec.p.total_size = size; in jvmti_write_debug_info()
/tools/testing/selftests/sgx/
A Dmain.c330 unsigned long total_size = 0; in get_total_epc_mem() local
349 return total_size; in get_total_epc_mem()
982 size_t total_size = 0; in TEST_F() local
997 total_size += seg->size; in TEST_F()
1112 size_t total_size = 0; in TEST_F() local
1127 total_size += seg->size; in TEST_F()
1235 size_t total_size = 0; in TEST_F() local
1276 total_size += seg->size; in TEST_F()
1377 modt_ioc.offset = total_size + PAGE_SIZE; in TEST_F()
1440 modt_ioc.offset = total_size; in TEST_F()
[all …]
/tools/lib/bpf/
A Dringbuf.c582 __u32 avail_size, total_size, max_size; in user_ring_buffer__reserve() local
601 total_size = (size + BPF_RINGBUF_HDR_SZ + 7) / 8 * 8; in user_ring_buffer__reserve()
603 if (total_size > max_size) in user_ring_buffer__reserve()
606 if (avail_size < total_size) in user_ring_buffer__reserve()
616 smp_store_release(rb->producer_pos, prod_pos + total_size); in user_ring_buffer__reserve()
/tools/perf/Documentation/
A Djitdump-specification.txt41 * uint32_t total_size: size in bytes of file header
57 * uint32_t total_size: the size in bytes of the record including the header.
82 The record header total_size field is inclusive of all components:
/tools/mm/
A Dslabinfo.c822 avg_size, total_size = 0; in totals() local
937 total_size += size; in totals()
962 avg_size = total_size / used_slabs; in totals()
982 store_size(b1, total_size);store_size(b2, total_waste); in totals()
1029 store_size(b3, max_size);store_size(b4, total_size); in totals()
/tools/perf/tests/shell/
A Dtest_intel_pt.sh332 .total_size = sizeof(header),
364 .p.total_size = sizeof(rec) + sz,
/tools/arch/x86/intel_sdsi/
A Dintel_sdsi.c125 uint32_t total_size; member
476 printf("Total Size: %d\n", sc->total_size); in sdsi_state_cert_show()
/tools/testing/selftests/kvm/lib/
A Dkvm_util.c2257 ssize_t desc_size, total_size, ret; in read_stats_descriptors() local
2260 total_size = header->num_desc * desc_size; in read_stats_descriptors()
2265 ret = pread(stats_fd, stats_desc, total_size, header->desc_offset); in read_stats_descriptors()
2266 TEST_ASSERT(ret == total_size, "Read KVM stats descriptors"); in read_stats_descriptors()

Completed in 64 milliseconds