path: root/tools/perf/Documentation
diff options
authorNamhyung Kim <>2015-10-22 15:28:49 +0900
committerArnaldo Carvalho de Melo <>2015-10-22 15:40:02 -0300
commita2c10d39af49b00514f7cc7b750757fcc2174f0c (patch)
tree6c709e08266cc80b49016c71bb8fd261b7629920 /tools/perf/Documentation
parent21cf62847d29392e51c37460856d3c3c57769c5e (diff)
perf top: Support call-graph display options also
Currently 'perf top --call-graph' option is same as 'perf record'. But 'perf top' also need to receive display options in 'perf report'. To do that, change parse_callchain_report_opt() to allow record options too. Now perf top can receive display options like below: $ perf top --call-graph Error: option `call-graph' requires a value Usage: perf top [<options>] --call-graph <mode[,dump_size],output_type,min_percent[,print_limit],call_order[,branch]> setup and enables call-graph (stack chain/backtrace) recording: fp dwarf lbr, output_type (graph, flat, fractal, or none), min percent threshold, optional print limit, callchain order, key (function or address), add branches $ perf top --call-graph callee,graph,fp Signed-off-by: Namhyung Kim <> Cc: Adrian Hunter <> Cc: Borislav Petkov <> Cc: Brendan Gregg <> Cc: Chandler Carruth <> Cc: David Ahern <> Cc: Frederic Weisbecker <> Cc: Jiri Olsa <> Cc: Peter Zijlstra <> Cc: Stephane Eranian <> Cc: Wang Nan <> Link: Signed-off-by: Arnaldo Carvalho de Melo <>
Diffstat (limited to 'tools/perf/Documentation')
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/perf/Documentation/perf-top.txt b/tools/perf/Documentation/perf-top.txt
index f6a23eb294e7..556cec09bf50 100644
--- a/tools/perf/Documentation/perf-top.txt
+++ b/tools/perf/Documentation/perf-top.txt
@@ -160,9 +160,10 @@ Default is to monitor all CPUS.
Enables call-graph (stack chain/backtrace) recording.
+--call-graph [mode,type,min[,limit],order[,key][,branch]]::
Setup and enable call-graph (stack chain/backtrace) recording,
- implies -g.
+ implies -g. See `--call-graph` section in perf-record and
+ perf-report man pages for details.
Accumulate callchain of children to parent entry so that then can