linux_dsm_epyc7002/tools/perf/pmu-events/arch/x86
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
..
amdzen1 perf vendor events amd: Update Zen1 events to V2 2020-03-24 10:35:58 -03:00
amdzen2 perf vendor events amd: Add Zen2 events 2020-03-24 10:35:58 -03:00
bonnell perf vendor events intel: Update Bonnell to V4 2019-04-01 15:23:42 -03:00
broadwell perf pmu-events x86: Use CPU_CLK_UNHALTED.THREAD in Kernel_Utilization metric 2020-04-03 09:37:56 -03:00
broadwellde perf pmu-events x86: Use CPU_CLK_UNHALTED.THREAD in Kernel_Utilization metric 2020-04-03 09:37:56 -03:00
broadwellx perf pmu-events x86: Use CPU_CLK_UNHALTED.THREAD in Kernel_Utilization metric 2020-04-03 09:37:56 -03:00
cascadelakex perf pmu-events x86: Use CPU_CLK_UNHALTED.THREAD in Kernel_Utilization metric 2020-04-03 09:37:56 -03:00
goldmont perf vendor events intel: Update Goldmont to v13 2019-04-01 15:23:44 -03:00
goldmontplus perf vendor events intel: Update GoldmontPlus to v1.01 2019-04-01 15:23:46 -03:00
haswell perf pmu-events x86: Use CPU_CLK_UNHALTED.THREAD in Kernel_Utilization metric 2020-04-03 09:37:56 -03:00
haswellx perf pmu-events x86: Use CPU_CLK_UNHALTED.THREAD in Kernel_Utilization metric 2020-04-03 09:37:56 -03:00
icelake perf vendor events intel: Add Icelake V1.00 event file 2019-08-12 16:26:02 -03:00
ivybridge perf pmu-events x86: Use CPU_CLK_UNHALTED.THREAD in Kernel_Utilization metric 2020-04-03 09:37:56 -03:00
ivytown perf pmu-events x86: Use CPU_CLK_UNHALTED.THREAD in Kernel_Utilization metric 2020-04-03 09:37:56 -03:00
jaketown perf pmu-events x86: Use CPU_CLK_UNHALTED.THREAD in Kernel_Utilization metric 2020-04-03 09:37:56 -03:00
knightslanding perf vendor events intel: Update KnightsLanding events to v9 2019-04-01 15:23:40 -03:00
nehalemep perf vendor events: Add NehalemEP V2 event file 2016-10-17 13:39:47 -03:00
nehalemex perf vendor events: Add NehalemEX V2 event file 2016-10-17 13:39:47 -03:00
sandybridge perf pmu-events x86: Use CPU_CLK_UNHALTED.THREAD in Kernel_Utilization metric 2020-04-03 09:37:56 -03:00
silvermont perf vendor events intel: Update Silvermont to v14 2019-04-01 15:23:48 -03:00
skylake perf pmu-events x86: Use CPU_CLK_UNHALTED.THREAD in Kernel_Utilization metric 2020-04-03 09:37:56 -03:00
skylakex perf pmu-events x86: Use CPU_CLK_UNHALTED.THREAD in Kernel_Utilization metric 2020-04-03 09:37:56 -03:00
tremontx perf vendor events intel: Add Tremontx event file v1.02 2019-08-15 12:04:04 -03:00
westmereep-dp perf vendor events: Add WestmereEP-DP V2 event file 2016-10-17 13:39:47 -03:00
westmereep-sp perf vendor events: Add WestmereEP-SP V2 event file 2016-10-17 13:39:47 -03:00
westmereex perf vendor events: Add WestmereEX V2 event file 2016-10-17 13:39:47 -03:00
mapfile.csv perf vendor events amd: Update Zen1 events to V2 2020-03-24 10:35:58 -03:00