diff options
Diffstat (limited to 'tools/perf/util/header.h')
-rw-r--r-- | tools/perf/util/header.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/perf/util/header.h b/tools/perf/util/header.h index 0cbd4c9e982c..b0d5cd707a7b 100644 --- a/tools/perf/util/header.h +++ b/tools/perf/util/header.h | |||
@@ -58,13 +58,15 @@ struct perf_header { | |||
58 | struct perf_header *perf_header__read(int fd); | 58 | struct perf_header *perf_header__read(int fd); |
59 | void perf_header__write(struct perf_header *self, int fd, bool at_exit); | 59 | void perf_header__write(struct perf_header *self, int fd, bool at_exit); |
60 | 60 | ||
61 | void perf_header__add_attr(struct perf_header *self, | 61 | int perf_header__add_attr(struct perf_header *self, |
62 | struct perf_header_attr *attr); | 62 | struct perf_header_attr *attr); |
63 | 63 | ||
64 | void perf_header__push_event(u64 id, const char *name); | 64 | void perf_header__push_event(u64 id, const char *name); |
65 | char *perf_header__find_event(u64 id); | 65 | char *perf_header__find_event(u64 id); |
66 | 66 | ||
67 | struct perf_header_attr *perf_header_attr__new(struct perf_event_attr *attr); | 67 | struct perf_header_attr *perf_header_attr__new(struct perf_event_attr *attr); |
68 | void perf_header_attr__delete(struct perf_header_attr *self); | ||
69 | |||
68 | void perf_header_attr__add_id(struct perf_header_attr *self, u64 id); | 70 | void perf_header_attr__add_id(struct perf_header_attr *self, u64 id); |
69 | 71 | ||
70 | u64 perf_header__sample_type(struct perf_header *header); | 72 | u64 perf_header__sample_type(struct perf_header *header); |