diff options
author | Andi Kleen <ak@linux.intel.com> | 2017-03-20 16:17:11 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-03-23 10:42:31 -0400 |
commit | bf874fcf9f2fed58510dc83abcee388cee2b427e (patch) | |
tree | 0339ad6ca5de37105e47d4fa0d3b082e091ccbb0 /tools/perf/util/parse-events.c | |
parent | 962848142335e8b35d522be78f58f2011d976b17 (diff) |
perf list: Move extra details printing to new option
Move the printing of perf expressions and internal events to a new
clearer --details flag, instead of lumping it together with other debug
options in --debug. This makes it clearer to use.
Before
perf list --debug
...
unc_m_power_critical_throttle_cycles
[Cycles all ranks are in critical thermal throttle. Unit: uncore_imc]
uncore_imc_2/event=0x86/ MetricName: power_critical_throttle_cycles % MetricExpr: (unc_m_power_critical_throttle_cycles / unc_m_clockticks) * 100.
after
perf list --details
...
unc_m_power_critical_throttle_cycles
[Cycles all ranks are in critical thermal throttle. Unit: uncore_imc]
uncore_imc_2/event=0x86/ MetricName: power_critical_throttle_cycles % MetricExpr: (unc_m_power_critical_throttle_cycles / unc_m_clockticks) * 100.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Link: http://lkml.kernel.org/r/20170320201711.14142-14-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/parse-events.c')
-rw-r--r-- | tools/perf/util/parse-events.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c index 119eb0b65876..6b498aea9fde 100644 --- a/tools/perf/util/parse-events.c +++ b/tools/perf/util/parse-events.c | |||
@@ -2325,7 +2325,7 @@ out_enomem: | |||
2325 | * Print the help text for the event symbols: | 2325 | * Print the help text for the event symbols: |
2326 | */ | 2326 | */ |
2327 | void print_events(const char *event_glob, bool name_only, bool quiet_flag, | 2327 | void print_events(const char *event_glob, bool name_only, bool quiet_flag, |
2328 | bool long_desc) | 2328 | bool long_desc, bool details_flag) |
2329 | { | 2329 | { |
2330 | print_symbol_events(event_glob, PERF_TYPE_HARDWARE, | 2330 | print_symbol_events(event_glob, PERF_TYPE_HARDWARE, |
2331 | event_symbols_hw, PERF_COUNT_HW_MAX, name_only); | 2331 | event_symbols_hw, PERF_COUNT_HW_MAX, name_only); |
@@ -2335,7 +2335,8 @@ void print_events(const char *event_glob, bool name_only, bool quiet_flag, | |||
2335 | 2335 | ||
2336 | print_hwcache_events(event_glob, name_only); | 2336 | print_hwcache_events(event_glob, name_only); |
2337 | 2337 | ||
2338 | print_pmu_events(event_glob, name_only, quiet_flag, long_desc); | 2338 | print_pmu_events(event_glob, name_only, quiet_flag, long_desc, |
2339 | details_flag); | ||
2339 | 2340 | ||
2340 | if (event_glob != NULL) | 2341 | if (event_glob != NULL) |
2341 | return; | 2342 | return; |