Function report |
Source Code:kernel\sched\core.c |
Create Date:2022-07-28 09:36:00 |
| Last Modify:2022-05-22 13:40:38 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Return accounted runtime for the task.* In case the task is currently running, return the runtime plus current's* pending runtime that have not been accounted yet.
Proto:unsigned long long task_sched_runtime(struct task_struct *p)
Type:unsigned long long
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct task_struct * | p |
| 3576 | If task_current(rq, p) && task_on_rq_queued(p) Then |
| 3578 | update_rq_clock(rq) |
| 3579 | update_curr(rq) |
| 3581 | ns = sum_exec_runtime |
| 3582 | task_rq_unlock(rq, p, & rf) |
| 3584 | Return ns |
| Name | Describe |
|---|---|
| thread_group_cputime | Accumulate raw cputime values of dead tasks (sig->[us]time) and live* tasks (sum on group iteration) belonging to @tsk's group. |
| cpu_clock_sample | Sample a per-thread clock for the given task. clkid is validated. |
| 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 |