diff options
author | Namhyung Kim <namhyung.kim@lge.com> | 2013-01-22 04:09:45 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-01-31 11:07:49 -0500 |
commit | 01d14f1615dfe1c6d040541501445967ac716009 (patch) | |
tree | a04e78401538c0402151f29869355a7d0f6c4e63 /tools | |
parent | 717e263fc354d53d0961e952b779d14a42c8ea66 (diff) |
perf report: Add --group option
Add --group option to enable event grouping. When enabled, all the
group members information will be shown together with the leader.
$ perf report --group
...
# group: {ref-cycles,cycles}
# ========
#
# Samples: 7K of event 'anon group { ref-cycles, cycles }'
# Event count (approx.): 6876107743
#
# Overhead Command Shared Object Symbol
# ................ ....... ................. ..........................
#
99.84% 99.76% noploop noploop [.] main
0.07% 0.00% noploop ld-2.15.so [.] strcmp
0.03% 0.00% noploop [kernel.kallsyms] [k] timerqueue_del
0.03% 0.03% noploop [kernel.kallsyms] [k] sched_clock_cpu
0.02% 0.00% noploop [kernel.kallsyms] [k] account_user_time
0.01% 0.00% noploop [kernel.kallsyms] [k] __alloc_pages_nodemask
0.00% 0.00% noploop [kernel.kallsyms] [k] native_write_msr_safe
0.00% 0.11% noploop [kernel.kallsyms] [k] _raw_spin_lock
0.00% 0.06% noploop [kernel.kallsyms] [k] find_get_page
0.00% 0.02% noploop [kernel.kallsyms] [k] rcu_check_callbacks
0.00% 0.02% noploop [kernel.kallsyms] [k] __current_kernel_time
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1358845787-1350-18-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/Documentation/perf-report.txt | 3 | ||||
-rw-r--r-- | tools/perf/builtin-report.c | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/tools/perf/Documentation/perf-report.txt b/tools/perf/Documentation/perf-report.txt index 848a0dcb6dfd..02284a0067f0 100644 --- a/tools/perf/Documentation/perf-report.txt +++ b/tools/perf/Documentation/perf-report.txt | |||
@@ -203,6 +203,9 @@ OPTIONS | |||
203 | --objdump=<path>:: | 203 | --objdump=<path>:: |
204 | Path to objdump binary. | 204 | Path to objdump binary. |
205 | 205 | ||
206 | --group:: | ||
207 | Show event group information together. | ||
208 | |||
206 | SEE ALSO | 209 | SEE ALSO |
207 | -------- | 210 | -------- |
208 | linkperf:perf-stat[1], linkperf:perf-annotate[1] | 211 | linkperf:perf-stat[1], linkperf:perf-annotate[1] |
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index ce518c48a525..9ef38424f7c3 100644 --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c | |||
@@ -668,6 +668,8 @@ int cmd_report(int argc, const char **argv, const char *prefix __maybe_unused) | |||
668 | "Specify disassembler style (e.g. -M intel for intel syntax)"), | 668 | "Specify disassembler style (e.g. -M intel for intel syntax)"), |
669 | OPT_BOOLEAN(0, "show-total-period", &symbol_conf.show_total_period, | 669 | OPT_BOOLEAN(0, "show-total-period", &symbol_conf.show_total_period, |
670 | "Show a column with the sum of periods"), | 670 | "Show a column with the sum of periods"), |
671 | OPT_BOOLEAN(0, "group", &symbol_conf.event_group, | ||
672 | "Show event group information together"), | ||
671 | OPT_CALLBACK_NOOPT('b', "branch-stack", &sort__branch_mode, "", | 673 | OPT_CALLBACK_NOOPT('b', "branch-stack", &sort__branch_mode, "", |
672 | "use branch records for histogram filling", parse_branch_mode), | 674 | "use branch records for histogram filling", parse_branch_mode), |
673 | OPT_STRING(0, "objdump", &objdump_path, "path", | 675 | OPT_STRING(0, "objdump", &objdump_path, "path", |