Home
last modified time | relevance | path

Searched refs:hdr_sz (Results 1 – 2 of 2) sorted by relevance

/external/linux-tools-perf/src/tools/perf/util/
Dtrace-event-info.c59 static int record_file(const char *file, ssize_t hdr_sz) in record_file() argument
74 if (hdr_sz) { in record_file()
75 if (write(output_fd, &size, hdr_sz) != hdr_sz) in record_file()
91 sizep += sizeof(u64) - hdr_sz; in record_file()
93 if (hdr_sz && pwrite(output_fd, sizep, hdr_sz, hdr_pos) < 0) { in record_file()
Dheader.c2429 static int try_all_file_abis(uint64_t hdr_sz, struct perf_header *ph) in try_all_file_abis() argument
2437 if (hdr_sz != ref_size) { in try_all_file_abis()
2438 attr_size = bswap_64(hdr_sz); in try_all_file_abis()
2467 static int try_all_pipe_abis(uint64_t hdr_sz, struct perf_header *ph) in try_all_pipe_abis() argument
2473 if (hdr_sz != attr_pipe_abi_sizes[i]) { in try_all_pipe_abis()
2474 attr_size = bswap_64(hdr_sz); in try_all_pipe_abis()
2475 if (attr_size != hdr_sz) in try_all_pipe_abis()
2496 static int check_magic_endian(u64 magic, uint64_t hdr_sz, in check_magic_endian() argument
2507 return try_all_pipe_abis(hdr_sz, ph); in check_magic_endian()
2509 return try_all_file_abis(hdr_sz, ph); in check_magic_endian()