]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf/x86/intel/uncore: Add freerunning event descriptor helper macro
authorZide Chen <zide.chen@intel.com>
Wed, 31 Dec 2025 22:42:24 +0000 (14:42 -0800)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 6 Jan 2026 15:34:25 +0000 (16:34 +0100)
commit8a4bd1c0d6bb64ab4d9e94d83c40326356421a73
treea795159b1cd2430f7a8ba27f0532f1087a47a5e5
parentb575fc0e33574f3a476b68057e340ebe32d7b750
perf/x86/intel/uncore: Add freerunning event descriptor helper macro

Freerunning counter events are repetitive: the event code is fixed to
0xff, the unit is always "MiB", and the scale is identical across all
counters on a given PMON unit.

Introduce a new helper macro, INTEL_UNCORE_FR_EVENT_DESC(), to populate
the event, scale, and unit descriptor triplet. This reduces duplicated
lines and improves readability.

No functional change intended.

Signed-off-by: Zide Chen <zide.chen@intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Dapeng Mi <dapeng1.mi@linux.intel.com>
Link: https://patch.msgid.link/20251231224233.113839-8-zide.chen@intel.com
arch/x86/events/intel/uncore_snbep.c