diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2009-12-27 18:37:05 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-12-28 03:03:35 -0500 |
commit | 55aa640f54280da25046acd2075842d464f451e6 (patch) | |
tree | ab9f390de0a7315bbcac3dc7105673d3eeb8c521 /tools/perf/util/session.c | |
parent | f7d87444e6ee6f4a19634e5412664c1c529a2370 (diff) |
perf session: Remove redundant prefix & suffix from perf_event_ops
Since now all that we have are perf event handlers, leave just
the name of the event.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <1261957026-15580-9-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/session.c')
-rw-r--r-- | tools/perf/util/session.c | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c index 4f2eeb584da8..7f0537d1add8 100644 --- a/tools/perf/util/session.c +++ b/tools/perf/util/session.c | |||
@@ -161,24 +161,24 @@ static int process_event_stub(event_t *event __used, | |||
161 | 161 | ||
162 | static void perf_event_ops__fill_defaults(struct perf_event_ops *handler) | 162 | static void perf_event_ops__fill_defaults(struct perf_event_ops *handler) |
163 | { | 163 | { |
164 | if (handler->process_sample_event == NULL) | 164 | if (handler->sample == NULL) |
165 | handler->process_sample_event = process_event_stub; | 165 | handler->sample = process_event_stub; |
166 | if (handler->process_mmap_event == NULL) | 166 | if (handler->mmap == NULL) |
167 | handler->process_mmap_event = process_event_stub; | 167 | handler->mmap = process_event_stub; |
168 | if (handler->process_comm_event == NULL) | 168 | if (handler->comm == NULL) |
169 | handler->process_comm_event = process_event_stub; | 169 | handler->comm = process_event_stub; |
170 | if (handler->process_fork_event == NULL) | 170 | if (handler->fork == NULL) |
171 | handler->process_fork_event = process_event_stub; | 171 | handler->fork = process_event_stub; |
172 | if (handler->process_exit_event == NULL) | 172 | if (handler->exit == NULL) |
173 | handler->process_exit_event = process_event_stub; | 173 | handler->exit = process_event_stub; |
174 | if (handler->process_lost_event == NULL) | 174 | if (handler->lost == NULL) |
175 | handler->process_lost_event = process_event_stub; | 175 | handler->lost = process_event_stub; |
176 | if (handler->process_read_event == NULL) | 176 | if (handler->read == NULL) |
177 | handler->process_read_event = process_event_stub; | 177 | handler->read = process_event_stub; |
178 | if (handler->process_throttle_event == NULL) | 178 | if (handler->throttle == NULL) |
179 | handler->process_throttle_event = process_event_stub; | 179 | handler->throttle = process_event_stub; |
180 | if (handler->process_unthrottle_event == NULL) | 180 | if (handler->unthrottle == NULL) |
181 | handler->process_unthrottle_event = process_event_stub; | 181 | handler->unthrottle = process_event_stub; |
182 | } | 182 | } |
183 | 183 | ||
184 | static const char *event__name[] = { | 184 | static const char *event__name[] = { |
@@ -222,23 +222,23 @@ static int perf_session__process_event(struct perf_session *self, | |||
222 | 222 | ||
223 | switch (event->header.type) { | 223 | switch (event->header.type) { |
224 | case PERF_RECORD_SAMPLE: | 224 | case PERF_RECORD_SAMPLE: |
225 | return ops->process_sample_event(event, self); | 225 | return ops->sample(event, self); |
226 | case PERF_RECORD_MMAP: | 226 | case PERF_RECORD_MMAP: |
227 | return ops->process_mmap_event(event, self); | 227 | return ops->mmap(event, self); |
228 | case PERF_RECORD_COMM: | 228 | case PERF_RECORD_COMM: |
229 | return ops->process_comm_event(event, self); | 229 | return ops->comm(event, self); |
230 | case PERF_RECORD_FORK: | 230 | case PERF_RECORD_FORK: |
231 | return ops->process_fork_event(event, self); | 231 | return ops->fork(event, self); |
232 | case PERF_RECORD_EXIT: | 232 | case PERF_RECORD_EXIT: |
233 | return ops->process_exit_event(event, self); | 233 | return ops->exit(event, self); |
234 | case PERF_RECORD_LOST: | 234 | case PERF_RECORD_LOST: |
235 | return ops->process_lost_event(event, self); | 235 | return ops->lost(event, self); |
236 | case PERF_RECORD_READ: | 236 | case PERF_RECORD_READ: |
237 | return ops->process_read_event(event, self); | 237 | return ops->read(event, self); |
238 | case PERF_RECORD_THROTTLE: | 238 | case PERF_RECORD_THROTTLE: |
239 | return ops->process_throttle_event(event, self); | 239 | return ops->throttle(event, self); |
240 | case PERF_RECORD_UNTHROTTLE: | 240 | case PERF_RECORD_UNTHROTTLE: |
241 | return ops->process_unthrottle_event(event, self); | 241 | return ops->unthrottle(event, self); |
242 | default: | 242 | default: |
243 | self->unknown_events++; | 243 | self->unknown_events++; |
244 | return -1; | 244 | return -1; |