• Home
  • Raw
  • Download

Lines Matching refs:f_header

454 	struct perf_pipe_file_header f_header;  in perf_header__write_pipe()  local
457 f_header = (struct perf_pipe_file_header){ in perf_header__write_pipe()
459 .size = sizeof(f_header), in perf_header__write_pipe()
462 err = do_write(fd, &f_header, sizeof(f_header)); in perf_header__write_pipe()
475 struct perf_file_header f_header; in perf_session__write_header() local
481 lseek(fd, sizeof(f_header), SEEK_SET); in perf_session__write_header()
538 f_header = (struct perf_file_header){ in perf_session__write_header()
540 .size = sizeof(f_header), in perf_session__write_header()
556 memcpy(&f_header.adds_features, &header->adds_features, sizeof(header->adds_features)); in perf_session__write_header()
559 err = do_write(fd, &f_header, sizeof(f_header)); in perf_session__write_header()
872 struct perf_pipe_file_header f_header; in perf_header__read_pipe() local
874 if (perf_file_header__read_pipe(&f_header, header, fd, in perf_header__read_pipe()
888 struct perf_file_header f_header; in perf_session__read_header() local
900 if (perf_file_header__read(&f_header, header, fd) < 0) { in perf_session__read_header()
905 nr_attrs = f_header.attrs.size / sizeof(f_attr); in perf_session__read_header()
906 lseek(fd, f_header.attrs.offset, SEEK_SET); in perf_session__read_header()
950 if (f_header.event_types.size) { in perf_session__read_header()
951 lseek(fd, f_header.event_types.offset, SEEK_SET); in perf_session__read_header()
952 events = malloc(f_header.event_types.size); in perf_session__read_header()
956 f_header.event_types.size)) in perf_session__read_header()
958 event_count = f_header.event_types.size / sizeof(struct perf_trace_event_type); in perf_session__read_header()