aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2009-04-08 09:01:28 -0400
committerIngo Molnar <mingo@elte.hu>2009-04-08 12:53:29 -0400
commit808382b33bb4c60df6379ec2db39f332cc56b82a (patch)
treea3f201053f207f52df368371c4815f6a1fdf85c0 /Documentation
parent6b6e5486b3a168f0328c82a8d4376caf901472b1 (diff)
perf_counter: kerneltop: keep up with ABI changes
Update kerneltop to use PERF_EVENT_MISC_OVERFLOW Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> LKML-Reference: <20090408130408.947197470@chello.nl> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/perf_counter/kerneltop.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/Documentation/perf_counter/kerneltop.c b/Documentation/perf_counter/kerneltop.c
index 15f3a5f90198..042c1b83a872 100644
--- a/Documentation/perf_counter/kerneltop.c
+++ b/Documentation/perf_counter/kerneltop.c
@@ -1277,22 +1277,22 @@ static void mmap_read(struct mmap_data *md)
1277 1277
1278 old += size; 1278 old += size;
1279 1279
1280 switch (event->header.type) { 1280 if (event->header.misc & PERF_EVENT_MISC_OVERFLOW) {
1281 case PERF_EVENT_COUNTER_OVERFLOW | __PERF_EVENT_IP: 1281 if (event->header.type & PERF_RECORD_IP)
1282 case PERF_EVENT_COUNTER_OVERFLOW | __PERF_EVENT_IP | __PERF_EVENT_TID: 1282 process_event(event->ip.ip, md->counter);
1283 process_event(event->ip.ip, md->counter); 1283 } else {
1284 break; 1284 switch (event->header.type) {
1285 1285 case PERF_EVENT_MMAP:
1286 case PERF_EVENT_MMAP: 1286 case PERF_EVENT_MUNMAP:
1287 case PERF_EVENT_MUNMAP: 1287 printf("%s: %Lu %Lu %Lu %s\n",
1288 printf("%s: %Lu %Lu %Lu %s\n", 1288 event->header.type == PERF_EVENT_MMAP
1289 event->header.type == PERF_EVENT_MMAP 1289 ? "mmap" : "munmap",
1290 ? "mmap" : "munmap", 1290 event->mmap.start,
1291 event->mmap.start, 1291 event->mmap.len,
1292 event->mmap.len, 1292 event->mmap.pgoff,
1293 event->mmap.pgoff, 1293 event->mmap.filename);
1294 event->mmap.filename); 1294 break;
1295 break; 1295 }
1296 } 1296 }
1297 } 1297 }
1298 1298