Function report |
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 activity | Download SCCT | Chinese |
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:
Type | Parameter | Name |
---|---|---|
unsigned int | msr |
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 |
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 |
Name | Describe |
---|---|
reserve_evntsel_nmi | |
release_evntsel_nmi |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |