aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/event.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2011-01-29 06:04:40 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2011-01-29 13:24:24 -0500
commitef2bf6d043ac9bd4a6f38d862af407154a4754d9 (patch)
tree6fa92bb6b329ef2dc2087dc173d7eccad6c7aa2a /tools/perf/util/event.c
parentdc82009aac6ee6e423b48de43a251745c62ab012 (diff)
perf events: Account PERF_RECORD_LOST events in event__process
Right now this function is only used by perf top, that uses PROT_READ only, i.e. overwrite mode, so no PERF_RECORD_LOST events are generated, but don't forget those events. The patch that moved this out of perf top was made so that this routine could be used by 'perf probe' in the uprobes patchset, so perhaps there they need to check for LOST events and warn the user, as will be done in the following patches that will switch 'perf top' to non overwrite mode (mmap with PROT_READ|PROT_WRITE). Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com> Cc: Stephane Eranian <eranian@google.com> Cc: Tom Zanussi <tzanussi@gmail.com> LKML-Reference: <new-submission> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/event.c')
-rw-r--r--tools/perf/util/event.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/event.c b/tools/perf/util/event.c
index e4db8b888546..b9d4ac87f9f7 100644
--- a/tools/perf/util/event.c
+++ b/tools/perf/util/event.c
@@ -646,6 +646,8 @@ int event__process(event_t *event, struct sample_data *sample,
646 case PERF_RECORD_EXIT: 646 case PERF_RECORD_EXIT:
647 event__process_task(event, sample, session); 647 event__process_task(event, sample, session);
648 break; 648 break;
649 case PERF_RECORD_LOST:
650 event__process_lost(event, sample, session);
649 default: 651 default:
650 break; 652 break;
651 } 653 }