Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\perfctr-watchdog.c Create Date:2022-07-28 08:14:29
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:verts an msr to an appropriate reservation bit* returns the bit offset of the event selection register

Proto:static inline unsigned int nmi_evntsel_msr_to_bit(unsigned int msr)

Type:unsigned int

Parameter:

TypeParameterName
unsigned intmsr
78  Case CPU vendor == X86_VENDOR_HYGON
79  Case CPU vendor == X86_VENDOR_AMD
80  If msr >= Fam 15h MSRs Then Return msr - Fam 15h MSRs >> 1
82  Return msr - K7 MSRs
83  Case CPU vendor == X86_VENDOR_INTEL
84  If cpu_has( & common cpu data for all cpus , Intel Architectural PerfMon ) Then Return msr - MSR_ARCH_PERFMON_EVENTSEL0
88  Case CPU family == 6
89  Return msr - MSR_P6_EVNTSEL0
90  Case CPU family == 11
91  Return msr - MSR_KNC_EVNTSEL0
92  Case CPU family == 15
93  Return msr - MSR_P4_BSU_ESCR0
96  Return 0
Caller
NameDescribe
reserve_evntsel_nmi
release_evntsel_nmi