From 2735bd62906eba6421ab80cf53a891315f90b157 Mon Sep 17 00:00:00 2001 From: Kan Liang Date: Thu, 22 Oct 2020 10:23:09 +0800 Subject: [PATCH 2197/2944] Intel: perf/x86/intel: Fix the name of perf METRICS to #31064126 commit bbdbde2a415d9f479803266cae6fb0c1a9f6c80e upstream Backport summary: backport to kernel 4.19.57 for ICX perf topdown support Bit 15 of the PERF_CAPABILITIES MSR indicates that the perf METRICS feature is supported. The perf METRICS is not a PEBS feature. Rename pebs_metrics_available perf_metrics. The bit is not used in the current code. It will be used in a later patch. Signed-off-by: Kan Liang Signed-off-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/20200723171117.9918-6-kan.liang@linux.intel.com Signed-off-by: Yunying Sun Signed-off-by: Peng Wang Reviewed-by: Artie Ding --- arch/x86/events/perf_event.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/events/perf_event.h b/arch/x86/events/perf_event.h index e63a405..c0e358b 100644 --- a/arch/x86/events/perf_event.h +++ b/arch/x86/events/perf_event.h @@ -515,6 +515,7 @@ struct extra_reg { */ u64 full_width_write:1; u64 pebs_baseline:1; + u64 perf_metrics:1; }; u64 capabilities; }; -- 1.8.3.1