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.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/perf/util/header.h b/tools/perf/util/header.h
index f46a94e09eea..dc8fedb066ab 100644
--- a/tools/perf/util/header.h
+++ b/tools/perf/util/header.h
@@ -55,7 +55,10 @@ struct perf_header {
55 DECLARE_BITMAP(adds_features, HEADER_FEAT_BITS); 55 DECLARE_BITMAP(adds_features, HEADER_FEAT_BITS);
56}; 56};
57 57
58struct perf_header *perf_header__read(int fd); 58struct perf_header *perf_header__new(void);
59void perf_header__delete(struct perf_header *self);
60
61int perf_header__read(struct perf_header *self, int fd);
59void perf_header__write(struct perf_header *self, int fd, bool at_exit); 62void perf_header__write(struct perf_header *self, int fd, bool at_exit);
60 63
61int perf_header__add_attr(struct perf_header *self, 64int perf_header__add_attr(struct perf_header *self,
@@ -75,8 +78,6 @@ perf_header__find_attr(u64 id, struct perf_header *header);
75void perf_header__set_feat(struct perf_header *self, int feat); 78void perf_header__set_feat(struct perf_header *self, int feat);
76bool perf_header__has_feat(const struct perf_header *self, int feat); 79bool perf_header__has_feat(const struct perf_header *self, int feat);
77 80
78struct perf_header *perf_header__new(void);
79
80int perf_header__process_sections(struct perf_header *self, int fd, 81int perf_header__process_sections(struct perf_header *self, int fd,
81 int (*process)(struct perf_file_section *self, 82 int (*process)(struct perf_file_section *self,
82 int feat, int fd)); 83 int feat, int fd));