Function report |
Source Code:kernel\taskstats.c |
Create Date:2022-07-28 11:49:08 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:fill_stats_for_tgid
Proto:static int fill_stats_for_tgid(pid_t tgid, struct taskstats *stats)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
pid_t | tgid | |
struct taskstats * | stats |
208 | first = find_task_by_vpid(tgid) |
210 | If Not first || Not lock_task_sighand(first, & flags) Then Go to out |
213 | If stats Then No 3D Now!(stats, stats, size of stats ) |
219 | start_time = ktime_get_ns() |
220 | Do |
221 | If exit state Then Continue |
229 | delayacct_add_tsk(stats, tsk) |
232 | delta = start_time - Monotonic time in nsecs: |
237 | task_cputime(tsk, & utime, & stime) |
242 | nonvoluntary_ctxt_switches += nivcsw |
245 | unlock_task_sighand(first, & flags) |
246 | rc = 0 |
247 | out : |
255 | Return rc |
Name | Describe |
---|---|
cmd_attr_tgid |
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 |