Function report |
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 activity | Download SCCT | Chinese |
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:
Type | Parameter | Name |
---|---|---|
unsigned int | msr |
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 |
64 | Return msr - Pentium IV performance counter MSRs |
67 | Return 0 |
Name | Describe |
---|---|
reserve_perfctr_nmi | |
release_perfctr_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 |