Adding -L as short option for call-graph for record/top commands. Plus documentation update.
Signed-off-by: Jiri Olsa <jo...@redhat.com> Cc: Corey Ashford <cjash...@linux.vnet.ibm.com> Cc: David Ahern <dsah...@gmail.com> Cc: Ingo Molnar <mi...@elte.hu> Cc: Namhyung Kim <namhy...@kernel.org> Cc: Paul Mackerras <pau...@samba.org> Cc: Peter Zijlstra <a.p.zijls...@chello.nl> Cc: Arnaldo Carvalho de Melo <a...@redhat.com> Cc: Andi Kleen <a...@firstfloor.org> Cc: Adrian Hunter <adrian.hun...@intel.com> --- tools/perf/Documentation/perf-record.txt | 1 + tools/perf/Documentation/perf-top.txt | 1 + tools/perf/builtin-record.c | 2 +- tools/perf/builtin-top.c | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/perf/Documentation/perf-record.txt b/tools/perf/Documentation/perf-record.txt index 22ccd63..fb4956e 100644 --- a/tools/perf/Documentation/perf-record.txt +++ b/tools/perf/Documentation/perf-record.txt @@ -92,6 +92,7 @@ OPTIONS -g:: Enables call-graph (stack chain/backtrace) recording. +-L:: --call-graph:: Setup and enable call-graph (stack chain/backtrace) recording, implies -g. diff --git a/tools/perf/Documentation/perf-top.txt b/tools/perf/Documentation/perf-top.txt index 456fd65..f92d477 100644 --- a/tools/perf/Documentation/perf-top.txt +++ b/tools/perf/Documentation/perf-top.txt @@ -143,6 +143,7 @@ Default is to monitor all CPUS. -G:: Enables call-graph (stack chain/backtrace) recording. +-L:: --call-graph:: Setup and enable call-graph (stack chain/backtrace) recording, implies -G. diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c index 04c5cf9..a20098d 100644 --- a/tools/perf/builtin-record.c +++ b/tools/perf/builtin-record.c @@ -903,7 +903,7 @@ const struct option record_options[] = { OPT_CALLBACK_NOOPT('g', NULL, &record.opts, NULL, "enables call-graph recording" , &record_callchain_opt), - OPT_CALLBACK(0, "call-graph", &record.opts, + OPT_CALLBACK('L', "call-graph", &record.opts, "mode[,dump_size]", record_callchain_help, &record_parse_callchain_opt), OPT_INCR('v', "verbose", &verbose, diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index e1671b1..938e025 100644 --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c @@ -1121,7 +1121,7 @@ int cmd_top(int argc, const char **argv, const char *prefix __maybe_unused) OPT_CALLBACK_NOOPT('G', NULL, &top.record_opts, NULL, "enables call-graph recording", &callchain_opt), - OPT_CALLBACK(0, "call-graph", &top.record_opts, + OPT_CALLBACK('L', "call-graph", &top.record_opts, "mode[,dump_size]", record_callchain_help, &parse_callchain_opt), OPT_CALLBACK(0, "ignore-callees", NULL, "regex", -- 1.7.11.7 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/