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:28
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

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

Type:unsigned int

Parameter:

TypeParameterName
unsigned intmsr
49  Case CPU vendor == X86_VENDOR_HYGON
50  Case CPU vendor == X86_VENDOR_AMD
51  If msr >= MSR_F15H_PERF_CTR Then Return msr - MSR_F15H_PERF_CTR >> 1
53  Return msr - MSR_K7_PERFCTR0
54  Case CPU vendor == X86_VENDOR_INTEL
55  If cpu_has( & common cpu data for all cpus , Intel Architectural PerfMon ) Then Return msr - MSR_ARCH_PERFMON_PERFCTR0
59  Case CPU family == 6
60  Return msr - MSR_P6_PERFCTR0
61  Case CPU family == 11
62  Return msr - MSR_KNC_PERFCTR0
63  Case CPU family == 15
67  Return 0
Caller
NameDescribe
reserve_perfctr_nmi
release_perfctr_nmi