4 #include "../../../include/linux/perf_event.h"
8 struct perf_header_attr
{
9 struct perf_event_attr attr
;
18 struct perf_header_attr
**attr
;
26 struct perf_header
*perf_header__read(int fd
);
27 void perf_header__write(struct perf_header
*self
, int fd
);
29 void perf_header__add_attr(struct perf_header
*self
,
30 struct perf_header_attr
*attr
);
32 void perf_header__push_event(u64 id
, const char *name
);
33 char *perf_header__find_event(u64 id
);
36 struct perf_header_attr
*
37 perf_header_attr__new(struct perf_event_attr
*attr
);
38 void perf_header_attr__add_id(struct perf_header_attr
*self
, u64 id
);
40 u64
perf_header__sample_type(struct perf_header
*header
);
41 struct perf_event_attr
*
42 perf_header__find_attr(u64 id
, struct perf_header
*header
);
45 struct perf_header
*perf_header__new(void);
47 #endif /* _PERF_HEADER_H */