Lines Matching refs:f_header
3287 struct perf_pipe_file_header f_header; in perf_header__write_pipe() local
3293 f_header = (struct perf_pipe_file_header){ in perf_header__write_pipe()
3295 .size = sizeof(f_header), in perf_header__write_pipe()
3298 err = do_write(&ff, &f_header, sizeof(f_header)); in perf_header__write_pipe()
3311 struct perf_file_header f_header; in perf_session__write_header() local
3320 lseek(fd, sizeof(f_header), SEEK_SET); in perf_session__write_header()
3358 f_header = (struct perf_file_header){ in perf_session__write_header()
3360 .size = sizeof(f_header), in perf_session__write_header()
3373 memcpy(&f_header.adds_features, &header->adds_features, sizeof(header->adds_features)); in perf_session__write_header()
3376 err = do_write(&ff, &f_header, sizeof(f_header)); in perf_session__write_header()
3685 struct perf_pipe_file_header f_header; in perf_header__read_pipe() local
3687 if (perf_file_header__read_pipe(&f_header, header, in perf_header__read_pipe()
3694 return f_header.size == sizeof(f_header) ? 0 : -1; in perf_header__read_pipe()
3793 struct perf_file_header f_header; in perf_session__read_header() local
3816 if (perf_file_header__read(&f_header, header, fd) < 0) in perf_session__read_header()
3825 if (f_header.data.size == 0) { in perf_session__read_header()
3831 if (f_header.attr_size == 0) { in perf_session__read_header()
3838 nr_attrs = f_header.attrs.size / f_header.attr_size; in perf_session__read_header()
3839 lseek(fd, f_header.attrs.offset, SEEK_SET); in perf_session__read_header()