aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/data_map.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/data_map.c')
-rw-r--r--tools/perf/util/data_map.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/perf/util/data_map.c b/tools/perf/util/data_map.c
index 08c4cf5e66b..b557b836de3 100644
--- a/tools/perf/util/data_map.c
+++ b/tools/perf/util/data_map.c
@@ -144,7 +144,6 @@ int perf_session__process_events(struct perf_session *self,
144 unsigned long head, shift; 144 unsigned long head, shift;
145 unsigned long offset = 0; 145 unsigned long offset = 0;
146 size_t page_size; 146 size_t page_size;
147 u64 sample_type;
148 event_t *event; 147 event_t *event;
149 uint32_t size; 148 uint32_t size;
150 char *buf; 149 char *buf;
@@ -157,11 +156,10 @@ int perf_session__process_events(struct perf_session *self,
157 page_size = getpagesize(); 156 page_size = getpagesize();
158 157
159 head = self->header.data_offset; 158 head = self->header.data_offset;
160 sample_type = perf_header__sample_type(&self->header); 159 self->sample_type = perf_header__sample_type(&self->header);
161 160
162 err = -EINVAL; 161 err = -EINVAL;
163 if (ops->sample_type_check && 162 if (ops->sample_type_check && ops->sample_type_check(self) < 0)
164 ops->sample_type_check(sample_type, self) < 0)
165 goto out_err; 163 goto out_err;
166 164
167 if (!ops->full_paths) { 165 if (!ops->full_paths) {