aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/perf_counter
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/perf_counter')
-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