linux/tools/perf/pmu-events/arch/x86/ivytown
Jin Yao 8ed1faf015 perf pmu-events x86: Use CPU_CLK_UNHALTED.THREAD in Kernel_Utilization metric
The kernel utilization metric does multiplexing currently and is somewhat
unreliable. The problem is that it uses two instances of the fixed counter,
and the kernel has to multipleplex which causes errors. So should use
CPU_CLK_UNHALTED.THREAD instead.

Before:

  # perf stat -M Kernel_Utilization -- sleep 1

  Performance counter stats for 'sleep 1':

          1,419,425      cpu_clk_unhalted.ref_tsc:k
      <not counted>      cpu_clk_unhalted.ref_tsc	(0.00%)

After:

  # perf stat -M Kernel_Utilization -- sleep 1

  Performance counter stats for 'sleep 1':

            746,688      cpu_clk_unhalted.thread:k #      0.7 Kernel_Utilization
          1,088,348      cpu_clk_unhalted.thread

Signed-off-by: Jin Yao <yao.jin@linux.intel.com>
Reviewed-by: Andi Kleen <ak@linux.intel.com>
Reviewed-by: Kan Liang <kan.liang@linux.intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jin Yao <yao.jin@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/20200309013125.7559-1-yao.jin@linux.intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2020-04-03 09:37:56 -03:00
..
cache.json perf vendor events intel: Update IvyTown files to V20 2018-01-25 06:37:21 -03:00
floating-point.json perf vendor events: Add IvyTown V19 event file 2016-10-17 13:39:47 -03:00
frontend.json perf vendor events intel: Update IvyTown events to V20 2018-01-25 06:36:58 -03:00
ivt-metrics.json perf pmu-events x86: Use CPU_CLK_UNHALTED.THREAD in Kernel_Utilization metric 2020-04-03 09:37:56 -03:00
memory.json perf vendor events intel: Update IvyTown files to V20 2018-01-25 06:37:21 -03:00
other.json perf vendor events intel: Update IvyTown events to V20 2018-01-25 06:36:58 -03:00
pipeline.json perf vendor events intel: Update IvyTown events to v20 2019-04-01 15:23:29 -03:00
uncore-cache.json perf vendor events intel: Update Intel uncore JSON event files 2017-03-23 11:42:28 -03:00
uncore-interconnect.json perf vendor events intel: Update Intel uncore JSON event files 2017-03-23 11:42:28 -03:00
uncore-memory.json perf vendor events intel: Update Intel uncore JSON event files 2017-03-23 11:42:28 -03:00
uncore-power.json perf vendor events intel: Fix wrong filter_band* values for uncore events 2018-10-11 11:13:23 -03:00
virtual-memory.json perf vendor events intel: Update IvyTown events to V20 2018-01-25 06:36:58 -03:00