aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2010-01-21 10:04:44 -0500
committerIngo Molnar <mingo@elte.hu>2010-01-27 06:46:48 -0500
commit0f35cd4cea08a8893e3e2ea03cbdb65f5d2b0e7a (patch)
tree7746ee8a305bc057e35d41da2bbeb7253242eb99 /tools/perf
parent24bfef0f924b4ac4312614422a4982b5f4d9a4c7 (diff)
perf top: Handle PERF_RECORD_{FORK,EXIT} events
As noticed by Mike, symbols in new tasks were not being processed as we weren't processing these events. Reported-by: Mike Galbraith <efault@gmx.de> Tested-by: Mike Galbraith <efault@gmx.de> 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: <1264086284-1431-2-git-send-email-acme@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/builtin-top.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c
index 8b049888a9dd..2227b84aa002 100644
--- a/tools/perf/builtin-top.c
+++ b/tools/perf/builtin-top.c
@@ -975,6 +975,10 @@ static int event__process(event_t *event, struct perf_session *session)
975 case PERF_RECORD_MMAP: 975 case PERF_RECORD_MMAP:
976 event__process_mmap(event, session); 976 event__process_mmap(event, session);
977 break; 977 break;
978 case PERF_RECORD_FORK:
979 case PERF_RECORD_EXIT:
980 event__process_task(event, session);
981 break;
978 default: 982 default:
979 break; 983 break;
980 } 984 }