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.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/perf/util/header.h b/tools/perf/util/header.h
index 29ccbfdf8724..f28aaaa3a440 100644
--- a/tools/perf/util/header.h
+++ b/tools/perf/util/header.h
@@ -9,6 +9,7 @@
9#include <linux/types.h> 9#include <linux/types.h>
10#include "event.h" 10#include "event.h"
11#include "env.h" 11#include "env.h"
12#include "pmu.h"
12 13
13enum { 14enum {
14 HEADER_RESERVED = 0, /* always cleared */ 15 HEADER_RESERVED = 0, /* always cleared */
@@ -34,6 +35,7 @@ enum {
34 HEADER_AUXTRACE, 35 HEADER_AUXTRACE,
35 HEADER_STAT, 36 HEADER_STAT,
36 HEADER_CACHE, 37 HEADER_CACHE,
38 HEADER_SAMPLE_TIME,
37 HEADER_LAST_FEATURE, 39 HEADER_LAST_FEATURE,
38 HEADER_FEAT_BITS = 256, 40 HEADER_FEAT_BITS = 256,
39}; 41};
@@ -107,6 +109,11 @@ int perf_event__synthesize_features(struct perf_tool *tool,
107 struct perf_evlist *evlist, 109 struct perf_evlist *evlist,
108 perf_event__handler_t process); 110 perf_event__handler_t process);
109 111
112int perf_event__synthesize_extra_attr(struct perf_tool *tool,
113 struct perf_evlist *evsel_list,
114 perf_event__handler_t process,
115 bool is_pipe);
116
110int perf_event__process_feature(struct perf_tool *tool, 117int perf_event__process_feature(struct perf_tool *tool,
111 union perf_event *event, 118 union perf_event *event,
112 struct perf_session *session); 119 struct perf_session *session);
@@ -166,5 +173,5 @@ int write_padded(struct feat_fd *fd, const void *bf,
166 */ 173 */
167int get_cpuid(char *buffer, size_t sz); 174int get_cpuid(char *buffer, size_t sz);
168 175
169char *get_cpuid_str(void); 176char *get_cpuid_str(struct perf_pmu *pmu __maybe_unused);
170#endif /* __PERF_HEADER_H */ 177#endif /* __PERF_HEADER_H */