diff options
| author | Zide Chen <zide.chen@intel.com> | 2025-12-31 14:42:24 -0800 |
|---|---|---|
| committer | Peter Zijlstra <peterz@infradead.org> | 2026-01-06 16:34:25 +0100 |
| commit | 8a4bd1c0d6bb64ab4d9e94d83c40326356421a73 (patch) | |
| tree | a795159b1cd2430f7a8ba27f0532f1087a47a5e5 /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git | |
| parent | b575fc0e33574f3a476b68057e340ebe32d7b750 (diff) | |
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
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
