Function report |
Source Code:kernel\sched\psi.c |
Create Date:2022-07-28 09:46:11 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:test_state
Proto:static bool test_state(unsigned int *tasks, enum psi_states state)
Type:bool
Parameter:
| Type | Parameter | Name |
|---|---|---|
| unsigned int * | tasks | |
| enum psi_states | state |
| 219 | Case state == PSI_IO_SOME |
| 221 | Case state == PSI_IO_FULL |
| 222 | Return tasks[NR_IOWAIT] && Not tasks[NR_RUNNING] |
| 223 | Case state == PSI_MEM_SOME |
| 224 | Return tasks[NR_MEMSTALL] |
| 225 | Case state == PSI_MEM_FULL |
| 226 | Return tasks[NR_MEMSTALL] && Not tasks[NR_RUNNING] |
| 227 | Case state == PSI_CPU_SOME |
| 228 | Return tasks[NR_RUNNING] > 1 |
| 229 | Case state == PSI_NONIDLE |
| 230 | Return tasks[NR_IOWAIT] || tasks[NR_MEMSTALL] || tasks[NR_RUNNING] |
| 232 | Default |
| 233 | Return false |
| Name | Describe |
|---|---|
| psi_group_change |
| 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 |