aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/header.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/header.h')
-rw-r--r--tools/perf/util/header.h6
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 {
58struct perf_header *perf_header__read(int fd); 58struct perf_header *perf_header__read(int fd);
59void perf_header__write(struct perf_header *self, int fd, bool at_exit); 59void perf_header__write(struct perf_header *self, int fd, bool at_exit);
60 60
61void perf_header__add_attr(struct perf_header *self, 61int perf_header__add_attr(struct perf_header *self,
62 struct perf_header_attr *attr); 62 struct perf_header_attr *attr);
63 63
64void perf_header__push_event(u64 id, const char *name); 64void perf_header__push_event(u64 id, const char *name);
65char *perf_header__find_event(u64 id); 65char *perf_header__find_event(u64 id);
66 66
67struct perf_header_attr *perf_header_attr__new(struct perf_event_attr *attr); 67struct perf_header_attr *perf_header_attr__new(struct perf_event_attr *attr);
68void perf_header_attr__delete(struct perf_header_attr *self);
69
68void perf_header_attr__add_id(struct perf_header_attr *self, u64 id); 70void perf_header_attr__add_id(struct perf_header_attr *self, u64 id);
69 71
70u64 perf_header__sample_type(struct perf_header *header); 72u64 perf_header__sample_type(struct perf_header *header);