Home
last modified time | relevance | path

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

/tools/perf/util/
Dtrace-event-info.c43 static int record_file(const char *file, ssize_t hdr_sz) in record_file() argument
58 if (hdr_sz) { in record_file()
59 if (write(output_fd, &size, hdr_sz) != hdr_sz) in record_file()
75 sizep += sizeof(u64) - hdr_sz; in record_file()
77 if (hdr_sz && pwrite(output_fd, sizep, hdr_sz, hdr_pos) < 0) { in record_file()
Dsession.c1703 size_t hdr_sz, rest; in perf_session__peek_event() local
1716 hdr_sz = sizeof(struct perf_event_header); in perf_session__peek_event()
1718 if (buf_sz < hdr_sz) in perf_session__peek_event()
1722 readn(fd, buf, hdr_sz) != (ssize_t)hdr_sz) in perf_session__peek_event()
1730 if (event->header.size < hdr_sz || event->header.size > buf_sz) in perf_session__peek_event()
1733 buf += hdr_sz; in perf_session__peek_event()
1734 rest = event->header.size - hdr_sz; in perf_session__peek_event()
Dheader.c3663 static int try_all_file_abis(uint64_t hdr_sz, struct perf_header *ph) in try_all_file_abis() argument
3671 if (hdr_sz != ref_size) { in try_all_file_abis()
3672 attr_size = bswap_64(hdr_sz); in try_all_file_abis()
3701 static int try_all_pipe_abis(uint64_t hdr_sz, struct perf_header *ph) in try_all_pipe_abis() argument
3707 if (hdr_sz != attr_pipe_abi_sizes[i]) { in try_all_pipe_abis()
3708 attr_size = bswap_64(hdr_sz); in try_all_pipe_abis()
3709 if (attr_size != hdr_sz) in try_all_pipe_abis()
3730 static int check_magic_endian(u64 magic, uint64_t hdr_sz, in check_magic_endian() argument
3741 return try_all_pipe_abis(hdr_sz, ph); in check_magic_endian()
3743 return try_all_file_abis(hdr_sz, ph); in check_magic_endian()