[PATCHv2 0/3] perf tools: Fix -g option handling

From: Jiri Olsa
Date: Fri Nov 01 2013 - 11:23:48 EST


hi,
changing the '-g/-G' options for record/top commands
to take NO argument and enable unwind method based
on .perfconfig setup (using FP by default).

The current -g option parsing moves into the
'--call-graph' option.

Examples:
$ cat ~/.perfconfig:
[top]
call-graph = fp

[record]
call-graph = dwarf,8192

$ perf record -g ls
- enables dwarf unwind with user stack size dump 8192 bytes

$ perf top -G
- enables frame pointer unwind

$ perf record --call-graph=fp ls
- enables frame pointer unwind

$ perf top --call-graph=dwarf,4096 ls
- enables dwarf unwind with user stack size dump 4096 bytes

v2 changes:
- added -L as short option for call-graph for record/top commands
- updated documentation
- based on latest acme's perf/urgent

thanks,
jirka

Cc: Corey Ashford <cjashfor@xxxxxxxxxxxxxxxxxx>
Cc: David Ahern <dsahern@xxxxxxxxx>
Cc: Ingo Molnar <mingo@xxxxxxx>
Cc: Namhyung Kim <namhyung@xxxxxxxxxx>
Cc: Paul Mackerras <paulus@xxxxxxxxx>
Cc: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
Cc: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
Cc: Andi Kleen <andi@xxxxxxxxxxxxxx>
Cc: Adrian Hunter <adrian.hunter@xxxxxxxxx>
---
Jiri Olsa (3):
perf tools: Add call-graph option support into .perfconfig
perf tools: Add readable output for callchain debug
perf tools: Add -L as short option for call-graph for record/top commands

tools/perf/Documentation/perf-record.txt | 6 ++++++
tools/perf/Documentation/perf-top.txt | 9 +++++++++
tools/perf/builtin-record.c | 22 ++++++++++++++++++++--
tools/perf/builtin-top.c | 14 +++++++++++++-
tools/perf/perf.h | 4 +++-
tools/perf/util/evsel.c | 2 +-
6 files changed, 52 insertions(+), 5 deletions(-)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/