Lines Matching refs:f_attr
2361 struct perf_file_attr f_attr; in perf_session__write_header() local
2381 f_attr = (struct perf_file_attr){ in perf_session__write_header()
2388 err = do_write(fd, &f_attr, sizeof(f_attr)); in perf_session__write_header()
2408 .attr_size = sizeof(f_attr), in perf_session__write_header()
2411 .size = evlist->nr_entries * sizeof(f_attr), in perf_session__write_header()
2734 struct perf_file_attr *f_attr) in read_attr() argument
2736 struct perf_event_attr *attr = &f_attr->attr; in read_attr()
2738 size_t our_sz = sizeof(f_attr->attr); in read_attr()
2741 memset(f_attr, 0, sizeof(*f_attr)); in read_attr()
2774 ret = readn(fd, &f_attr->ids, sizeof(f_attr->ids)); in read_attr()
2828 struct perf_file_attr f_attr; in perf_session__read_header() local
2864 if (read_attr(fd, header, &f_attr) < 0) in perf_session__read_header()
2868 f_attr.ids.size = bswap_64(f_attr.ids.size); in perf_session__read_header()
2869 f_attr.ids.offset = bswap_64(f_attr.ids.offset); in perf_session__read_header()
2870 perf_event__attr_swap(&f_attr.attr); in perf_session__read_header()
2874 evsel = perf_evsel__new(&f_attr.attr); in perf_session__read_header()
2886 nr_ids = f_attr.ids.size / sizeof(u64); in perf_session__read_header()
2895 lseek(fd, f_attr.ids.offset, SEEK_SET); in perf_session__read_header()