Function report |
Source Code:kernel\sched\psi.c |
Create Date:2022-07-28 09:46:33 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:record_times
Proto:static void record_times(struct psi_group_cpu *groupc, int cpu, bool memstall_tick)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct psi_group_cpu * | groupc | |
int | cpu | |
bool | memstall_tick |
633 | delta = now - state_start |
634 | state_start = now |
636 | If state_mask & 1 << PSI_IO_SOME Then |
637 | times[PSI_IO_SOME] += delta |
638 | If state_mask & 1 << PSI_IO_FULL Then times[PSI_IO_FULL] += delta |
642 | If state_mask & 1 << PSI_MEM_SOME Then |
643 | times[PSI_MEM_SOME] += delta |
644 | If state_mask & 1 << PSI_MEM_FULL Then times[PSI_MEM_FULL] += delta |
646 | Else if memstall_tick Then |
665 | If state_mask & 1 << PSI_CPU_SOME Then times[PSI_CPU_SOME] += delta |
668 | If state_mask & 1 << PSI_NONIDLE Then times[PSI_NONIDLE] += delta |
Name | Describe |
---|---|
psi_group_change | |
psi_memstall_tick |
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 |