diff options
author | Andi Kleen <ak@linux.intel.com> | 2017-03-20 21:17:09 +0100 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-03-23 15:42:30 +0100 |
commit | 7f372a636d92e21d6fa41aebd6986ef590aefbfc (patch) | |
tree | 93374339c16ace4382b7de0ff7b7e7b254de2da1 /tools/perf/util/evsel.c | |
parent | perf stat: Output JSON MetricExpr metric (diff) | |
download | linux-7f372a636d92e21d6fa41aebd6986ef590aefbfc.tar.xz linux-7f372a636d92e21d6fa41aebd6986ef590aefbfc.zip |
perf list: Support printing MetricExpr with --debug
Output the metric expr in perf list when --debug is specified, so that
the user can check the formula.
Before:
% perf list
...
unc_m_power_channel_ppd
[Cycles where DRAM ranks are in power down (CKE) mode. Derived from unc_m_power_channel_ppd. Unit:
uncore_imc]
uncore_imc_2/event=0x85/
After:
% perf list --debug
...
unc_m_power_channel_ppd
[Cycles where DRAM ranks are in power down (CKE) mode. Derived from unc_m_power_channel_ppd. Unit:
uncore_imc]
Perf: uncore_imc_2/event=0x85/ MetricExpr: (unc_m_power_channel_ppd / unc_m_clockticks) * 100.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: http://lkml.kernel.org/r/20170320201711.14142-12-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/evsel.c')
0 files changed, 0 insertions, 0 deletions