Searched refs:hdr_sz (Results 1 – 3 of 3) sorted by relevance
/tools/perf/util/ |
D | trace-event-info.c | 60 static int record_file(const char *file, ssize_t hdr_sz) in record_file() argument 75 if (hdr_sz) { in record_file() 76 if (write(output_fd, &size, hdr_sz) != hdr_sz) in record_file() 92 sizep += sizeof(u64) - hdr_sz; in record_file() 94 if (hdr_sz && pwrite(output_fd, sizep, hdr_sz, hdr_pos) < 0) { in record_file()
|
D | header.c | 2499 static int try_all_file_abis(uint64_t hdr_sz, struct perf_header *ph) in try_all_file_abis() argument 2507 if (hdr_sz != ref_size) { in try_all_file_abis() 2508 attr_size = bswap_64(hdr_sz); in try_all_file_abis() 2537 static int try_all_pipe_abis(uint64_t hdr_sz, struct perf_header *ph) in try_all_pipe_abis() argument 2543 if (hdr_sz != attr_pipe_abi_sizes[i]) { in try_all_pipe_abis() 2544 attr_size = bswap_64(hdr_sz); in try_all_pipe_abis() 2545 if (attr_size != hdr_sz) in try_all_pipe_abis() 2566 static int check_magic_endian(u64 magic, uint64_t hdr_sz, in check_magic_endian() argument 2577 return try_all_pipe_abis(hdr_sz, ph); in check_magic_endian() 2579 return try_all_file_abis(hdr_sz, ph); in check_magic_endian()
|
D | session.c | 1399 size_t hdr_sz, rest; in perf_session__peek_event() local 1412 hdr_sz = sizeof(struct perf_event_header); in perf_session__peek_event() 1414 if (buf_sz < hdr_sz) in perf_session__peek_event() 1418 readn(fd, buf, hdr_sz) != (ssize_t)hdr_sz) in perf_session__peek_event() 1426 if (event->header.size < hdr_sz || event->header.size > buf_sz) in perf_session__peek_event() 1429 rest = event->header.size - hdr_sz; in perf_session__peek_event()
|