Jin Yao
ec6ae74fe8
perf report: Display average IPC and IPC coverage per symbol
Support displaying the average IPC and IPC coverage per symbol in 'perf
report' --tui and --stdio modes.
For example,
$ perf record -b ...
$ perf report -s symbol
Overhead Symbol IPC [IPC Coverage]
39.60% [.] __random 2.30 [ 54.8%]
18.02% [.] main 0.43 [ 54.3%]
14.21% [.] compute_flag 2.29 [100.0%]
14.16% [.] rand 0.36 [100.0%]
7.06% [.] __random_r 2.57 [ 70.5%]
6.85% [.] rand@plt 0.00 [ 0.0%]
Jiri Olsa <jolsa@redhat.com> provided the patch to support the --stdio
mode. I merged Jiri's code in this patch.
$ perf report -s symbol --stdio
# Overhead Symbol IPC [IPC Coverage]
# ........ ........................... ....................
#
39.60% [.] __random 2.30 [ 54.8%]
18.02% [.] main 0.43 [ 54.3%]
14.21% [.] compute_flag 2.29 [100.0%]
14.16% [.] rand 0.36 [100.0%]
7.06% [.] __random_r 2.57 [ 70.5%]
6.85% [.] rand@plt 0.00 [ 0.0%]
0.02% [k] run_timer_softirq 1.60 [ 57.2%]
The columns "IPC" and "[IPC Coverage]" are automatically enabled when
the sort-key "symbol" is specified. If the perf.data file doesn't
contain timed LBR information, columns are filled with "-".
For example,
# Overhead Symbol IPC [IPC Coverage]
# ........ ........................... ....................
#
46.57% [.] main - -
17.60% [.] rand - -
15.84% [.] __random_r - -
11.90% [.] __random - -
6.50% [.] compute_flag - -
1.59% [.] rand@plt - -
0.00% [.] _dl_relocate_object - -
0.00% [k] tlb_flush_mmu - -
0.00% [k] perf_event_mmap - -
0.00% [k] native_sched_clock - -
0.00% [k] intel_pmu_handle_irq_v4 - -
0.00% [k] native_write_msr - -
v3:
---
Removed the sortkey 'ipc' from command-line. The columns "IPC"
and "[IPC Coverage]" are automatically enabled when "symbol"
is specified.
v2:
---
Merge in Jiri's patch to support stdio mode
Signed-off-by: Jin Yao <yao.jin@linux.intel.com>
Reviewed-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1543586097-27632-4-git-send-email-yao.jin@linux.intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2018-12-17 14:55:44 -03:00
..
2018-12-17 14:54:51 -03:00
2018-11-21 22:39:55 -03:00
2018-12-17 14:55:11 -03:00
2018-11-21 12:00:31 -03:00
2018-11-21 12:00:32 -03:00
2018-11-21 22:39:58 -03:00
2018-11-21 22:39:58 -03:00
2018-02-19 12:28:08 -03:00
2018-11-05 14:53:00 -03:00
2018-12-17 14:54:32 -03:00
2018-12-17 14:55:14 -03:00
2018-08-08 15:55:52 -03:00
2018-12-17 14:55:44 -03:00
2018-02-05 13:58:02 -03:00
2018-01-23 09:51:38 -03:00
2018-09-19 10:25:10 -03:00
2018-11-21 22:39:55 -03:00
2018-05-15 10:32:16 -03:00
2017-11-07 10:30:18 +01:00
2018-07-31 10:53:20 -03:00
2017-11-07 10:30:18 +01:00
2017-11-02 11:10:55 +01:00
2018-07-24 14:37:33 -03:00
2017-11-07 10:30:18 +01:00
2018-02-19 09:49:12 -03:00
2018-04-12 10:33:31 -03:00
2018-09-19 15:06:59 -03:00
2018-04-30 12:20:54 -03:00
2018-08-13 15:22:18 -03:00
2018-06-04 10:28:52 -03:00
2017-11-07 10:30:18 +01:00
2017-11-07 10:30:18 +01:00
2018-04-18 15:35:48 -03:00
2018-06-04 10:28:50 -03:00
2018-12-17 14:55:11 -03:00
2018-12-17 14:55:44 -03:00
2018-06-05 10:09:54 -03:00
2018-12-17 14:54:18 -03:00
2018-11-05 14:37:09 -03:00
2018-04-26 13:47:09 -03:00
2018-12-17 14:54:40 -03:00
2018-11-21 12:00:31 -03:00
2018-04-12 10:33:34 -03:00
2017-11-02 11:10:55 +01:00
2018-10-30 11:46:22 -03:00
2018-09-19 14:53:36 -03:00
2014-03-18 18:17:06 -03:00
2018-08-20 08:54:58 -03:00
2018-12-17 14:54:54 -03:00
2018-12-17 14:55:14 -03:00
2017-09-25 10:39:43 -03:00
2017-11-02 11:10:55 +01:00
2017-12-27 12:16:00 -03:00
2017-11-02 11:10:55 +01:00
2018-02-23 14:29:59 +00:00
2015-08-06 16:48:27 -03:00
2018-06-04 10:28:50 -03:00
2018-12-17 14:55:08 -03:00