Function report |
Source Code:arch\x86\kernel\cpu\aperfmperf.c |
Create Date:2022-07-28 07:56:35 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:aperfmperf_snapshot_khz()* On the current CPU, snapshot APERF, MPERF, and jiffies* unless we already did it within 10ms* calculate kHz, save snapshot
Proto:static void aperfmperf_snapshot_khz(void *dummy)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
void * | dummy |
43 | s = this_cpu_ptr( & samples) |
46 | local_irq_save(flags) |
47 | rdmsrl(MSR_IA32_APERF, aperf) |
48 | rdmsrl(MSR_IA32_MPERF, mperf) |
51 | aperf_delta = aperf - aperf |
52 | mperf_delta = mperf - mperf |
58 | If mperf_delta == 0 Then Return |
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 |