函数逻辑报告 |
Source Code:arch\x86\kernel\cpu\perfctr-watchdog.c |
Create Date:2022-07-27 09:14:27 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:verts an msr to an appropriate reservation bit* returns the bit offset of the event selection register
函数原型:static inline unsigned int nmi_evntsel_msr_to_bit(unsigned int msr)
返回类型:unsigned int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| unsigned int | msr |
| 78 | 当:CPU vendor 恒等于X86_VENDOR_HYGON |
| 79 | 当:CPU vendor 恒等于X86_VENDOR_AMD |
| 80 | 如果msr大于等于Fam 15h MSRs 则返回:msr减Fam 15h MSRs 右移1位 |
| 83 | 当:CPU vendor 恒等于X86_VENDOR_INTEL |
| 84 | 如果cpu_has( & common cpu data for all cpus , Intel Architectural PerfMon )则返回:msr减MSR_ARCH_PERFMON_EVENTSEL0 |
| 88 | 当:CPU family 恒等于6 |
| 89 | 返回:msr减MSR_P6_EVNTSEL0 |
| 90 | 当:CPU family 恒等于11 |
| 91 | 返回:msr减MSR_KNC_EVNTSEL0 |
| 92 | 当:CPU family 恒等于15 |
| 93 | 返回:msr减MSR_P4_BSU_ESCR0 |
| 96 | 返回:0 |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |