Lines Matching refs:f_attr
3312 struct perf_file_attr f_attr; in perf_session__write_header() local
3334 f_attr = (struct perf_file_attr){ in perf_session__write_header()
3341 err = do_write(&ff, &f_attr, sizeof(f_attr)); in perf_session__write_header()
3361 .attr_size = sizeof(f_attr), in perf_session__write_header()
3364 .size = evlist->core.nr_entries * sizeof(f_attr), in perf_session__write_header()
3698 struct perf_file_attr *f_attr) in read_attr() argument
3700 struct perf_event_attr *attr = &f_attr->attr; in read_attr()
3702 size_t our_sz = sizeof(f_attr->attr); in read_attr()
3705 memset(f_attr, 0, sizeof(*f_attr)); in read_attr()
3738 ret = readn(fd, &f_attr->ids, sizeof(f_attr->ids)); in read_attr()
3794 struct perf_file_attr f_attr; in perf_session__read_header() local
3845 if (read_attr(fd, header, &f_attr) < 0) in perf_session__read_header()
3849 f_attr.ids.size = bswap_64(f_attr.ids.size); in perf_session__read_header()
3850 f_attr.ids.offset = bswap_64(f_attr.ids.offset); in perf_session__read_header()
3851 perf_event__attr_swap(&f_attr.attr); in perf_session__read_header()
3855 evsel = evsel__new(&f_attr.attr); in perf_session__read_header()
3867 nr_ids = f_attr.ids.size / sizeof(u64); in perf_session__read_header()
3876 lseek(fd, f_attr.ids.offset, SEEK_SET); in perf_session__read_header()