Function report |
Source Code:kernel\sched\cpuacct.c |
Create Date:2022-07-28 09:44:23 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:cpuacct_cpuusage_read
Proto:static u64 cpuacct_cpuusage_read(struct cpuacct *ca, int cpu, enum cpuacct_stat_index index)
Type:u64
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct cpuacct * | ca | |
| int | cpu | |
| enum cpuacct_stat_index | index |
| 108 | BUG_ON(index > CPUACCT_STAT_NSTATS) |
| 114 | raw_spin_lock_irq( & lock) |
| 117 | If index == CPUACCT_STAT_NSTATS Then |
| 123 | Else |
| 128 | raw_spin_unlock_irq( & lock) |
| 131 | Return data |
| Name | Describe |
|---|---|
| __cpuusage_read | Return total CPU usage (in nanoseconds) of a group |
| __cpuacct_percpu_seq_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 |