aha/tools/perf
Ingo Molnar 3efa1cc99e perf record/report: Add call graph / call chain profiling
Add the first steps of call-graph profiling:

 - add the -c (--call-graph) option to perf record
 - parse the call-graph record and printout out under -D (--dump-trace)

The call-graph data is not put into the histogram yet, but it
can be seen that it's being processed correctly:

0x3ce0 [0x38]: event: 35
.
. ... raw event: size 56 bytes
.  0000:  23 00 00 00 05 00 38 00 d4 df 0e 81 ff ff ff ff  #.....8........
.  0010:  60 0b 00 00 60 0b 00 00 03 00 00 00 01 00 02 00  `...`..........
.  0020:  d4 df 0e 81 ff ff ff ff a0 61 ed 41 36 00 00 00  .........a.A6..
.  0030:  04 92 e6 41 36 00 00 00                          .a.A6..
.
0x3ce0 [0x38]: PERF_EVENT (IP, 5): 2912: 0xffffffff810edfd4 period: 1
... chain: u:2, k:1, nr:3
.....  0: 0xffffffff810edfd4
.....  1: 0x3641ed61a0
.....  2: 0x3641e69204
 ... thread: perf:2912
 ...... dso: [kernel]

This shows a 3-entry call-graph: with 1 kernel-space and two user-space
entries

Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: Arjan van de Ven <arjan@infradead.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-06-14 20:34:06 +02:00
..
Documentation
util perf stat: Reorganize output 2009-06-13 13:40:03 +02:00
.gitignore
builtin-annotate.c perf annotate: Fixes for filename:line displays 2009-06-13 17:51:00 +02:00
builtin-help.c
builtin-list.c
builtin-record.c perf record/report: Add call graph / call chain profiling 2009-06-14 20:34:06 +02:00
builtin-report.c perf record/report: Add call graph / call chain profiling 2009-06-14 20:34:06 +02:00
builtin-stat.c perf stat: Enable raw data to be printed 2009-06-13 15:40:35 +02:00
builtin-top.c perf_counter: Standardize event names 2009-06-11 17:54:15 +02:00
builtin.h
command-list.txt
design.txt perf_counter: Start documenting HAVE_PERF_COUNTERS requirements 2009-06-12 19:37:30 +02:00
Makefile perf stat: Enable raw data to be printed 2009-06-13 15:40:35 +02:00
perf.c
perf.h perf_counter: Add forward/backward attribute ABI compatibility 2009-06-12 14:28:52 +02:00