]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86/intel: Fix PEBS data source encoding for ADL
authorKan Liang <kan.liang@linux.intel.com>
Wed, 29 Jun 2022 15:08:40 +0000 (08:08 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 4 Jul 2022 07:23:09 +0000 (09:23 +0200)
commit90083e6428d77edf53aa5216437071eb8c2cb67c
tree45c71b3ce764622ed8a5c2099c48fd8d9ea84aa8
parent8fb91b2ee2ff96618f1da0a2b4226cce5389cff4
perf/x86/intel: Fix PEBS data source encoding for ADL

The PEBS data source encoding for the e-core is different from the
p-core.

Add the pebs_data_source[] in the struct x86_hybrid_pmu to store the
data source encoding for each type of the core.

Add intel_pmu_pebs_data_source_grt() for the e-core.
There is nothing changed for the data source encoding of the p-core,
which still reuse the intel_pmu_pebs_data_source_skl().

Fixes: 4c38876c9623 ("perf/x86/intel: Add Alder Lake Hybrid support")
Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Andi Kleen <ak@linux.intel.com>
Link: https://lkml.kernel.org/r/20220629150840.2235741-2-kan.liang@linux.intel.com
arch/x86/events/intel/core.c
arch/x86/events/intel/ds.c
arch/x86/events/perf_event.h