Function report |
Source Code:kernel\delayacct.c |
Create Date:2022-07-28 11:48:13 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__delayacct_add_tsk
Proto:int __delayacct_add_tsk(struct taskstats *d, struct task_struct *tsk)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct taskstats * | d | |
struct task_struct * | tsk |
92 | task_cputime(tsk, & utime, & stime) |
97 | task_cputime_scaled(tsk, & utimescaled, & stimescaled) |
99 | tmp += utimescaled + stimescaled |
100 | scaled cpu_run_real_total = If tmp < scaled cpu_run_real_total Then 0 Else tmp |
109 | t3 = sum_exec_runtime |
113 | tmp = cpu_delay_total + t2 |
114 | cpu_delay_total = If tmp < cpu_delay_total Then 0 Else tmp |
122 | raw_spin_lock_irqsave( & lock, flags) |
123 | tmp = blkio_delay_total + blkio_delay |
124 | blkio_delay_total = If tmp < blkio_delay_total Then 0 Else tmp |
125 | tmp = swapin_delay_total + swapin_delay |
126 | swapin_delay_total = If tmp < swapin_delay_total Then 0 Else tmp |
127 | tmp = freepages_delay_total + freepages_delay |
128 | freepages_delay_total = If tmp < freepages_delay_total Then 0 Else tmp |
129 | tmp = thrashing_delay_total + thrashing_delay |
130 | thrashing_delay_total = If tmp < thrashing_delay_total Then 0 Else tmp |
131 | Delay waiting for synchronous block I/O to complete * does not account for delays in I/O submission += blkio_count |
135 | raw_spin_unlock_irqrestore( & lock, flags) |
137 | Return 0 |
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 |