perf vendor events intel: Add umasks/occ_sel to PCU events.
authorIan Rogers <irogers@google.com>
Wed, 28 Feb 2024 17:05:29 +0000 (09:05 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Fri, 1 Mar 2024 02:08:13 +0000 (18:08 -0800)
commitdd267d056fed323f1684fa52d2a864fc93ca3be0
tree6e8213cf5cc7a7b670ed242b515c692ea9931c39
parentec42d3d56819688537ec7ee37ce97f695fb8e6d7
perf vendor events intel: Add umasks/occ_sel to PCU events.

UMasks were being dropped leading to all PCU
UNC_P_POWER_STATE_OCCUPANCY events having the same encoding. Don't
drop the umask trying to be consistent with other sources of events
like libpfm4 [1]. Older models need to use occ_sel rather than umask,
correct these values too. This applies the change from [2].

[1] https://sourceforge.net/p/perfmon2/libpfm4/ci/master/tree/lib/events/intel_skx_unc_pcu_events.h#l30
[2] https://github.com/captain5050/perfmon/commit/cbd4aee81023e5bfa09677b1ce170ff69e9c423d

Signed-off-by: Ian Rogers <irogers@google.com>
Reviewed-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20240228170529.4035675-1-irogers@google.com
tools/perf/pmu-events/arch/x86/broadwellde/uncore-power.json
tools/perf/pmu-events/arch/x86/broadwellx/uncore-power.json
tools/perf/pmu-events/arch/x86/cascadelakex/uncore-power.json
tools/perf/pmu-events/arch/x86/haswellx/uncore-power.json
tools/perf/pmu-events/arch/x86/icelakex/uncore-power.json
tools/perf/pmu-events/arch/x86/ivytown/uncore-power.json
tools/perf/pmu-events/arch/x86/jaketown/uncore-power.json
tools/perf/pmu-events/arch/x86/skylakex/uncore-power.json
tools/perf/pmu-events/arch/x86/snowridgex/uncore-power.json