aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2009-08-11 15:21:38 -0400
committerIngo Molnar <mingo@elte.hu>2009-08-12 08:10:49 -0400
commit94a24752fe95ca1e7f98b197052d44e6a207740d (patch)
treea065ddeef18968396c86dddd00aa14690201cff3
parent2a8083f063472f27c253545dd64e1a7bbbb1ab61 (diff)
perf report: Show the tid too in -D
This made it easier to find the firefox threading related bug. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Mike Galbraith <efault@gmx.de> Cc: Frédéric Weisbecker <fweisbec@gmail.com> LKML-Reference: <20090811192138.GE18061@ghostprotocols.net> Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--tools/perf/builtin-report.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c
index 99274cec0adb..23e1457f2409 100644
--- a/tools/perf/builtin-report.c
+++ b/tools/perf/builtin-report.c
@@ -1526,11 +1526,11 @@ process_sample_event(event_t *event, unsigned long offset, unsigned long head)
1526 more_data += sizeof(u64); 1526 more_data += sizeof(u64);
1527 } 1527 }
1528 1528
1529 dprintf("%p [%p]: PERF_EVENT_SAMPLE (IP, %d): %d: %p period: %Ld\n", 1529 dprintf("%p [%p]: PERF_EVENT_SAMPLE (IP, %d): %d/%d: %p period: %Ld\n",
1530 (void *)(offset + head), 1530 (void *)(offset + head),
1531 (void *)(long)(event->header.size), 1531 (void *)(long)(event->header.size),
1532 event->header.misc, 1532 event->header.misc,
1533 event->ip.pid, 1533 event->ip.pid, event->ip.tid,
1534 (void *)(long)ip, 1534 (void *)(long)ip,
1535 (long long)period); 1535 (long long)period);
1536 1536
@@ -1612,10 +1612,11 @@ process_mmap_event(event_t *event, unsigned long offset, unsigned long head)
1612 struct thread *thread = threads__findnew(event->mmap.pid); 1612 struct thread *thread = threads__findnew(event->mmap.pid);
1613 struct map *map = map__new(&event->mmap); 1613 struct map *map = map__new(&event->mmap);
1614 1614
1615 dprintf("%p [%p]: PERF_EVENT_MMAP %d: [%p(%p) @ %p]: %s\n", 1615 dprintf("%p [%p]: PERF_EVENT_MMAP %d/%d: [%p(%p) @ %p]: %s\n",
1616 (void *)(offset + head), 1616 (void *)(offset + head),
1617 (void *)(long)(event->header.size), 1617 (void *)(long)(event->header.size),
1618 event->mmap.pid, 1618 event->mmap.pid,
1619 event->mmap.tid,
1619 (void *)(long)event->mmap.start, 1620 (void *)(long)event->mmap.start,
1620 (void *)(long)event->mmap.len, 1621 (void *)(long)event->mmap.len,
1621 (void *)(long)event->mmap.pgoff, 1622 (void *)(long)event->mmap.pgoff,