Function report |
Source Code:kernel\sched\psi.c |
Create Date:2022-07-28 09:46:17 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:collect_percpu_times
Proto:static void collect_percpu_times(struct psi_group *group, enum psi_aggregators aggregator, unsigned int *pchanged_states)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct psi_group * | group | |
| enum psi_aggregators | aggregator | |
| unsigned int * | pchanged_states |
| 306 | u64 deltas[NR_PSI_STATES - 1] = {0, } |
| 307 | nonidle_total = 0 |
| 308 | changed_states = 0 |
| 320 | for_each_possible_cpu(cpu) |
| 325 | get_recent_times(group, cpu, aggregator, times, & cpu_changed_states) |
| 327 | changed_states |= cpu_changed_states |
| 329 | nonidle = nsecs_to_jiffies(times[PSI_NONIDLE]) |
| 330 | nonidle_total += nonidle |
| 353 | If pchanged_states Then pchanged_states = changed_states |
| Name | Describe |
|---|---|
| psi_avgs_work | |
| psi_poll_work | |
| psi_show |
| 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 |