函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\perfctr-watchdog.c Create Date:2022-07-27 09:14:26
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:verts an msr to an appropriate reservation bit

函数原型:static inline unsigned int nmi_perfctr_msr_to_bit(unsigned int msr)

返回类型:unsigned int

参数:

类型参数名称
unsigned intmsr
49  :CPU vendor 恒等于X86_VENDOR_HYGON
50  :CPU vendor 恒等于X86_VENDOR_AMD
51  如果msr大于等于MSR_F15H_PERF_CTR则返回:msrMSR_F15H_PERF_CTR右移1位
53  返回:msrMSR_K7_PERFCTR0
54  :CPU vendor 恒等于X86_VENDOR_INTEL
55  如果cpu_has( & common cpu data for all cpus , Intel Architectural PerfMon )则返回:msrMSR_ARCH_PERFMON_PERFCTR0
59  :CPU family 恒等于6
60  返回:msrMSR_P6_PERFCTR0
61  :CPU family 恒等于11
62  返回:msrMSR_KNC_PERFCTR0
63  :CPU family 恒等于15
67  返回:0
调用者
名称描述
reserve_perfctr_nmi
release_perfctr_nmi