Home
last modified time | relevance | path

Searched refs:roundup (Results 1 – 14 of 14) sorted by relevance

/tools/include/linux/
A Dmath.h16 #ifndef roundup
17 #define roundup(x, y) ( \ macro
/tools/perf/util/
A Dbpf-utils.c152 data_len += roundup(count * size, sizeof(__u64)); in get_bpf_prog_info_linear()
182 ptr += roundup(count * size, sizeof(__u64)); in get_bpf_prog_info_linear()
A Dutil.c446 new_sz = msz >= 64 ? 1 : roundup(64, msz); /* Start with at least 64 bytes */ in do_realloc_array_as_needed()
A Dsymbol.c291 prev->end = roundup(prev->end + 4096, 4096); in symbols__fixup_end()
294 prev->end = roundup(prev->end + 4096, 4096); in symbols__fixup_end()
305 curr->end = roundup(curr->start, 4096) + 4096; in symbols__fixup_end()
A Dintel-pt.c4504 len = roundup(len + 1, 8); in intel_pt_process_auxtrace_info()
/tools/testing/selftests/cgroup/
A Dmemcg_protection.m77 % SWAP_CLUSTER_MAX roundup
/tools/bpf/bpftool/
A Dgen.c491 map_sz = (size_t)roundup(bpf_map__value_size(map), 8) * bpf_map__max_entries(map); in bpf_map_mmap_sz()
492 map_sz = roundup(map_sz, page_sz); in bpf_map_mmap_sz()
1218 mmap_sz = roundup(file_sz, sysconf(_SC_PAGE_SIZE)); in do_skeleton()
1630 mmap_sz = roundup(file_sz, sysconf(_SC_PAGE_SIZE)); in do_subskeleton()
/tools/perf/tests/
A Ddlfilter-test.c151 size_t fsz = roundup(strlen(filename) + 1, 8); in write_mmap()
/tools/perf/bench/
A Dinject-buildid.c180 len += roundup(strlen(dso->name) + 1, 8) + bench_id_hdr_size; in synthesize_mmap()
/tools/lib/bpf/
A Dbtf_dump.c903 new_off = roundup(cur_off, pad_bits); in btf_dump_emit_bit_padding()
919 (new_off == next_off && roundup(cur_off, next_align * 8) != new_off) || in btf_dump_emit_bit_padding()
A Dgen_loader.c159 __u32 size8 = roundup(size, 8); in add_data()
A Dlibbpf.c1795 map_sz = (size_t)roundup(value_sz, 8) * max_entries; in array_map_mmap_sz()
1796 map_sz = roundup(map_sz, page_sz); in array_map_mmap_sz()
2969 if (roundup(data_sz, page_sz) > mmap_sz) { in init_arena_map_data()
4406 ext->kcfg.data_off = roundup(off, ext->kcfg.align); in bpf_object__collect_externs()
10621 size_t elem_sz = roundup(map->def.value_size, 8); in validate_map_op()
/tools/perf/arch/x86/util/
A Dintel-pt.c293 return len ? roundup(len + 1, 8) : 0; in intel_pt_filter_bytes()
/tools/perf/
A Dbuiltin-inject.c2239 output_data_offset = roundup(8192 + session->header.data_offset, 4096); in __cmd_inject()
2282 output_data_offset = roundup(output_data_offset, 4096); in __cmd_inject()

Completed in 73 milliseconds