diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-08-15 06:06:12 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-08-15 06:06:12 -0400 |
commit | be750231ce1599b86fbba213e3da8344ece262e2 (patch) | |
tree | a506c461082692bb5bab8b9bb63a762816329454 /tools/perf/builtin-report.c | |
parent | 18408ddc01136f505ae357c03f0d8e50b10e0db6 (diff) | |
parent | 39e6dd73502f64e2ae3236b304e160ae30de9384 (diff) |
Merge branch 'perfcounters/urgent' into perfcounters/core
Conflicts:
kernel/perf_counter.c
Merge reason: update to latest upstream (-rc6) and resolve
the conflict with urgent fixes.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/builtin-report.c')
-rw-r--r-- | tools/perf/builtin-report.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index 93945ecdac86..6321951fe1bf 100644 --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c | |||
@@ -1276,11 +1276,11 @@ process_sample_event(event_t *event, unsigned long offset, unsigned long head) | |||
1276 | more_data += sizeof(u64); | 1276 | more_data += sizeof(u64); |
1277 | } | 1277 | } |
1278 | 1278 | ||
1279 | dprintf("%p [%p]: PERF_EVENT_SAMPLE (IP, %d): %d: %p period: %Ld\n", | 1279 | dprintf("%p [%p]: PERF_EVENT_SAMPLE (IP, %d): %d/%d: %p period: %Ld\n", |
1280 | (void *)(offset + head), | 1280 | (void *)(offset + head), |
1281 | (void *)(long)(event->header.size), | 1281 | (void *)(long)(event->header.size), |
1282 | event->header.misc, | 1282 | event->header.misc, |
1283 | event->ip.pid, | 1283 | event->ip.pid, event->ip.tid, |
1284 | (void *)(long)ip, | 1284 | (void *)(long)ip, |
1285 | (long long)period); | 1285 | (long long)period); |
1286 | 1286 | ||
@@ -1340,10 +1340,11 @@ process_sample_event(event_t *event, unsigned long offset, unsigned long head) | |||
1340 | if (show & show_mask) { | 1340 | if (show & show_mask) { |
1341 | struct symbol *sym = resolve_symbol(thread, &map, &dso, &ip); | 1341 | struct symbol *sym = resolve_symbol(thread, &map, &dso, &ip); |
1342 | 1342 | ||
1343 | if (dso_list && dso && dso->name && !strlist__has_entry(dso_list, dso->name)) | 1343 | if (dso_list && (!dso || !dso->name || |
1344 | !strlist__has_entry(dso_list, dso->name))) | ||
1344 | return 0; | 1345 | return 0; |
1345 | 1346 | ||
1346 | if (sym_list && sym && !strlist__has_entry(sym_list, sym->name)) | 1347 | if (sym_list && (!sym || !strlist__has_entry(sym_list, sym->name))) |
1347 | return 0; | 1348 | return 0; |
1348 | 1349 | ||
1349 | if (hist_entry__add(thread, map, dso, sym, ip, chain, level, period)) { | 1350 | if (hist_entry__add(thread, map, dso, sym, ip, chain, level, period)) { |
@@ -1362,10 +1363,11 @@ process_mmap_event(event_t *event, unsigned long offset, unsigned long head) | |||
1362 | struct thread *thread = threads__findnew(event->mmap.pid); | 1363 | struct thread *thread = threads__findnew(event->mmap.pid); |
1363 | struct map *map = map__new(&event->mmap, cwd, cwdlen); | 1364 | struct map *map = map__new(&event->mmap, cwd, cwdlen); |
1364 | 1365 | ||
1365 | dprintf("%p [%p]: PERF_EVENT_MMAP %d: [%p(%p) @ %p]: %s\n", | 1366 | dprintf("%p [%p]: PERF_EVENT_MMAP %d/%d: [%p(%p) @ %p]: %s\n", |
1366 | (void *)(offset + head), | 1367 | (void *)(offset + head), |
1367 | (void *)(long)(event->header.size), | 1368 | (void *)(long)(event->header.size), |
1368 | event->mmap.pid, | 1369 | event->mmap.pid, |
1370 | event->mmap.tid, | ||
1369 | (void *)(long)event->mmap.start, | 1371 | (void *)(long)event->mmap.start, |
1370 | (void *)(long)event->mmap.len, | 1372 | (void *)(long)event->mmap.len, |
1371 | (void *)(long)event->mmap.pgoff, | 1373 | (void *)(long)event->mmap.pgoff, |