diff options
Diffstat (limited to 'tools/perf/util/event.h')
-rw-r--r-- | tools/perf/util/event.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h index 7f7cf8539cfe..e5740ea140ab 100644 --- a/tools/perf/util/event.h +++ b/tools/perf/util/event.h | |||
@@ -83,6 +83,37 @@ struct build_id_event { | |||
83 | char filename[]; | 83 | char filename[]; |
84 | }; | 84 | }; |
85 | 85 | ||
86 | enum perf_header_event_type { /* above any possible kernel type */ | ||
87 | PERF_RECORD_HEADER_ATTR = 64, | ||
88 | PERF_RECORD_HEADER_EVENT_TYPE = 65, | ||
89 | PERF_RECORD_HEADER_TRACING_DATA = 66, | ||
90 | PERF_RECORD_HEADER_BUILD_ID = 67, | ||
91 | PERF_RECORD_HEADER_MAX | ||
92 | }; | ||
93 | |||
94 | struct attr_event { | ||
95 | struct perf_event_header header; | ||
96 | struct perf_event_attr attr; | ||
97 | u64 id[]; | ||
98 | }; | ||
99 | |||
100 | #define MAX_EVENT_NAME 64 | ||
101 | |||
102 | struct perf_trace_event_type { | ||
103 | u64 event_id; | ||
104 | char name[MAX_EVENT_NAME]; | ||
105 | }; | ||
106 | |||
107 | struct event_type_event { | ||
108 | struct perf_event_header header; | ||
109 | struct perf_trace_event_type event_type; | ||
110 | }; | ||
111 | |||
112 | struct tracing_data_event { | ||
113 | struct perf_event_header header; | ||
114 | u32 size; | ||
115 | }; | ||
116 | |||
86 | typedef union event_union { | 117 | typedef union event_union { |
87 | struct perf_event_header header; | 118 | struct perf_event_header header; |
88 | struct ip_event ip; | 119 | struct ip_event ip; |
@@ -92,6 +123,10 @@ typedef union event_union { | |||
92 | struct lost_event lost; | 123 | struct lost_event lost; |
93 | struct read_event read; | 124 | struct read_event read; |
94 | struct sample_event sample; | 125 | struct sample_event sample; |
126 | struct attr_event attr; | ||
127 | struct event_type_event event_type; | ||
128 | struct tracing_data_event tracing_data; | ||
129 | struct build_id_event build_id; | ||
95 | } event_t; | 130 | } event_t; |
96 | 131 | ||
97 | struct events_stats { | 132 | struct events_stats { |