Function report |
Source Code:kernel\sched\cputime.c |
Create Date:2022-07-28 09:37:39 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Adjust tick based cputime random precision against scheduler runtime* accounting
Proto:void cputime_adjust(struct task_cputime *curr, struct prev_cputime *prev, u64 *ut, u64 *st)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct task_cputime * | curr | |
| struct prev_cputime * | prev | |
| u64 * | ut | |
| u64 * | st |
| 596 | raw_spin_lock_irqsave( & lock, flags) |
| 597 | rtime = sum_exec_runtime |
| 618 | If stime == 0 Then |
| 623 | If utime == 0 Then |
| 628 | stime = Perform (stime * rtime) / total, but avoid multiplication overflow by* losing precision when the numbers are big. |
| 630 | update : |
| 655 | out : |
| 658 | raw_spin_unlock_irqrestore( & lock, flags) |
| Name | Describe |
|---|---|
| task_cputime_adjusted | |
| thread_group_cputime_adjusted | |
| cgroup_base_stat_cputime_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 |