函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\delayacct.c Create Date:2022-07-27 12:53:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__delayacct_add_tsk

函数原型:int __delayacct_add_tsk(struct taskstats *d, struct task_struct *tsk)

返回类型:int

参数:

类型参数名称
struct taskstats *d
struct task_struct *tsk
92  task_cputime(tsk, & utime, & stime)
93  tmp等于 cpu "wall-clock" running time * On some architectures, value will adjust for cpu time stolen * from the kernel in involuntary waits due to virtualization. * Value is cumulative, in nanoseconds, without a corresponding count * and wraps around to zero sile
94  tmp加等于utimestime
95  cpu "wall-clock" running time * On some architectures, value will adjust for cpu time stolen * from the kernel in involuntary waits due to virtualization. * Value is cumulative, in nanoseconds, without a corresponding count * and wraps around to zero sile等于如果tmp小于 cpu "wall-clock" running time * On some architectures, value will adjust for cpu time stolen * from the kernel in involuntary waits due to virtualization. * Value is cumulative, in nanoseconds, without a corresponding count * and wraps around to zero sile则0否则tmp
97  task_cputime_scaled(tsk, & utimescaled, & stimescaled)
98  tmp等于 scaled cpu_run_real_total
99  tmp加等于utimescaledstimescaled
100  scaled cpu_run_real_total 等于如果tmp小于 scaled cpu_run_real_total 则0否则tmp
107  t1等于pcount
108  t2等于run_delay
109  t3等于sum_exec_runtime
111  Delay waiting for cpu, while runnable * count, delay_total NOT updated atomically加等于t1
113  tmp等于cpu_delay_totalt2
114  cpu_delay_total等于如果tmp小于cpu_delay_total则0否则tmp
116  tmp等于 cpu "virtual" running time * Uses time intervals seen by the kernel i.e. no adjustment * for kernel's involuntary waits due to virtualization. * Value is cumulative, in nanoseconds, without a corresponding count * and wraps around to zero silently on overt3
117  cpu "virtual" running time * Uses time intervals seen by the kernel i.e. no adjustment * for kernel's involuntary waits due to virtualization. * Value is cumulative, in nanoseconds, without a corresponding count * and wraps around to zero silently on over等于如果tmp小于 cpu "virtual" running time * Uses time intervals seen by the kernel i.e. no adjustment * for kernel's involuntary waits due to virtualization. * Value is cumulative, in nanoseconds, without a corresponding count * and wraps around to zero silently on over则0否则tmp
122  raw_spin_lock_irqsave( & lock, flags)
123  tmp等于blkio_delay_totalblkio_delay
124  blkio_delay_total等于如果tmp小于blkio_delay_total则0否则tmp
125  tmp等于swapin_delay_totalswapin_delay
126  swapin_delay_total等于如果tmp小于swapin_delay_total则0否则tmp
127  tmp等于freepages_delay_totalfreepages_delay
128  freepages_delay_total等于如果tmp小于freepages_delay_total则0否则tmp
129  tmp等于thrashing_delay_totalthrashing_delay
130  thrashing_delay_total等于如果tmp小于thrashing_delay_total则0否则tmp
131  Delay waiting for synchronous block I/O to complete * does not account for delays in I/O submission加等于blkio_count
132  Delay waiting for page fault I/O (swap in only) 加等于swapin_count
133  Delay waiting for memory reclaim 加等于freepages_count
134  Delay waiting for thrashing page 加等于thrashing_count
135  raw_spin_unlock_irqrestore( & lock, flags)
137  返回:0