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 | session.c | 907 size_t hdr_sz, rest; in perf_session__peek_event() local 920 hdr_sz = sizeof(struct perf_event_header); in perf_session__peek_event() 922 if (buf_sz < hdr_sz) in perf_session__peek_event() 926 readn(fd, &buf, hdr_sz) != (ssize_t)hdr_sz) in perf_session__peek_event() 934 if (event->header.size < hdr_sz) in perf_session__peek_event() 937 rest = event->header.size - hdr_sz; in perf_session__peek_event()
|
D | header.c | 2489 static int try_all_file_abis(uint64_t hdr_sz, struct perf_header *ph) in try_all_file_abis() argument 2497 if (hdr_sz != ref_size) { in try_all_file_abis() 2498 attr_size = bswap_64(hdr_sz); in try_all_file_abis() 2527 static int try_all_pipe_abis(uint64_t hdr_sz, struct perf_header *ph) in try_all_pipe_abis() argument 2533 if (hdr_sz != attr_pipe_abi_sizes[i]) { in try_all_pipe_abis() 2534 attr_size = bswap_64(hdr_sz); in try_all_pipe_abis() 2535 if (attr_size != hdr_sz) in try_all_pipe_abis() 2556 static int check_magic_endian(u64 magic, uint64_t hdr_sz, in check_magic_endian() argument 2567 return try_all_pipe_abis(hdr_sz, ph); in check_magic_endian() 2569 return try_all_file_abis(hdr_sz, ph); in check_magic_endian()
|