Commit 808382b3 authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Ingo Molnar

perf_counter: kerneltop: keep up with ABI changes

Update kerneltop to use PERF_EVENT_MISC_OVERFLOW
Signed-off-by: default avatarPeter 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: default avatarIngo Molnar <mingo@elte.hu>
parent 6b6e5486
...@@ -1277,12 +1277,11 @@ static void mmap_read(struct mmap_data *md) ...@@ -1277,12 +1277,11 @@ static void mmap_read(struct mmap_data *md)
old += size; old += size;
switch (event->header.type) { if (event->header.misc & PERF_EVENT_MISC_OVERFLOW) {
case PERF_EVENT_COUNTER_OVERFLOW | __PERF_EVENT_IP: if (event->header.type & PERF_RECORD_IP)
case PERF_EVENT_COUNTER_OVERFLOW | __PERF_EVENT_IP | __PERF_EVENT_TID:
process_event(event->ip.ip, md->counter); process_event(event->ip.ip, md->counter);
break; } else {
switch (event->header.type) {
case PERF_EVENT_MMAP: case PERF_EVENT_MMAP:
case PERF_EVENT_MUNMAP: case PERF_EVENT_MUNMAP:
printf("%s: %Lu %Lu %Lu %s\n", printf("%s: %Lu %Lu %Lu %s\n",
...@@ -1295,6 +1294,7 @@ static void mmap_read(struct mmap_data *md) ...@@ -1295,6 +1294,7 @@ static void mmap_read(struct mmap_data *md)
break; break;
} }
} }
}
md->prev = old; md->prev = old;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment