Lines Matching refs:f_header
2271 struct perf_pipe_file_header f_header; in perf_header__write_pipe() local
2274 f_header = (struct perf_pipe_file_header){ in perf_header__write_pipe()
2276 .size = sizeof(f_header), in perf_header__write_pipe()
2279 err = do_write(fd, &f_header, sizeof(f_header)); in perf_header__write_pipe()
2292 struct perf_file_header f_header; in perf_session__write_header() local
2299 lseek(fd, sizeof(f_header), SEEK_SET); in perf_session__write_header()
2336 f_header = (struct perf_file_header){ in perf_session__write_header()
2338 .size = sizeof(f_header), in perf_session__write_header()
2351 memcpy(&f_header.adds_features, &header->adds_features, sizeof(header->adds_features)); in perf_session__write_header()
2354 err = do_write(fd, &f_header, sizeof(f_header)); in perf_session__write_header()
2651 struct perf_pipe_file_header f_header; in perf_header__read_pipe() local
2653 if (perf_file_header__read_pipe(&f_header, header, session->fd, in perf_header__read_pipe()
2755 struct perf_file_header f_header; in perf_session__read_header() local
2768 if (perf_file_header__read(&f_header, header, fd) < 0) in perf_session__read_header()
2777 if (f_header.data.size == 0) { in perf_session__read_header()
2783 nr_attrs = f_header.attrs.size / f_header.attr_size; in perf_session__read_header()
2784 lseek(fd, f_header.attrs.offset, SEEK_SET); in perf_session__read_header()