Function report |
Source Code:kernel\sched\psi.c |
Create Date:2022-07-28 09:46:14 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:get_recent_times
Proto:static void get_recent_times(struct psi_group *group, int cpu, enum psi_aggregators aggregator, unsigned int *times, unsigned int *pchanged_states)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct psi_group * | group | |
| int | cpu | |
| enum psi_aggregators | aggregator | |
| unsigned int * | times | |
| unsigned int * | pchanged_states |
| 241 | groupc = per_cpu_ptr(pcpu, cpu) |
| 247 | pchanged_states = 0 |
| 250 | Do |
| 253 | No 3D Now!(times, times, size of times ) |
| 254 | state_mask = state_mask |
| 255 | state_start = state_start |
| 259 | When s < NR_PSI_STATES cycle |
| 270 | If state_mask & 1 << s Then times[s] += now - state_start |
| 273 | delta = times[s] - times_prev[aggregator][s] |
| 274 | times_prev[aggregator][s] = times[s] |
| 277 | If delta Then pchanged_states |= 1 << s |
| Name | Describe |
|---|---|
| collect_percpu_times |
| 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 |