perf/x86/intel: Define bit macros for FixCntrCtl MSR
authorDapeng Mi <dapeng1.mi@linux.intel.com>
Thu, 4 May 2023 07:21:28 +0000 (15:21 +0800)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 8 May 2023 08:58:32 +0000 (10:58 +0200)
commit10d95a317ec12ec7dd4587a646c6bd6aa03c7ded
treed367fcd8b079ac14723dd09d0b6fce3cb4abfe0f
parent78075d947534013b4575687d19ebcbbb6d3addcd
perf/x86/intel: Define bit macros for FixCntrCtl MSR

Define bit macros for FixCntrCtl MSR and replace the bit hardcoding
with these bit macros. This would make code be more human-readable.

Perf commands 'perf stat -e "instructions,cycles,ref-cycles"' and
'perf record -e "instructions,cycles,ref-cycles"' pass.

Signed-off-by: Dapeng Mi <dapeng1.mi@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20230504072128.3653470-1-dapeng1.mi@linux.intel.com
arch/x86/events/intel/core.c
arch/x86/include/asm/perf_event.h