perf tools: Fix -g option handling
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest3 patches 2 repliesIn review
- v14 patches 20 repliesSuperseded
Changes in v2 from the cover letter
- added -L as short option for call-graph for record/top commands
- updated documentation
- based on latest acme's perf/urgent
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | perf tools: Add call-graph option support into .perfconfigtools/ tools/ tools/ +3 more | +43 | 0 replies | |
| 2/3 | perf tools: Add readable output for callchain debugtools/ tools/ | +5 | 0 replies | |
| 3/3 | perf tools: Add -L as short option for call-graph for record/top commandstools/ tools/ tools/ +1 more | +4 | 2 replies |
Reviews trailers per patch
None of the 3 patches has a Reviewed-by or Acked-by.
| Patch | David Ahern |
|---|---|
| 1/3 | |
| 2/3 | Tested-Reviewed-by |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCHv2 0/3] perf tools: Fix -g option handling
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
---
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(-)