函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\cgroup.h Create Date:2022-07-27 06:54:19
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:cgroup_account_cputime

函数原型:static inline void cgroup_account_cputime(struct task_struct *task, u64 delta_exec)

返回类型:void

参数:

类型参数名称
struct task_struct *task
u64delta_exec
773  cpuacct_charge(task, delta_exec)
775  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
776  cgrp等于task_dfl_cgroup(task)
777  如果cgroup_parent(cgrp)则__cgroup_account_cputime(cgrp, delta_exec)
779  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
调用者
名称描述
update_curr更新当前进程运行时间,包括虚拟运行时间
update_curr_rtUpdate the current task's runtime statistics. Skip current tasks that* are not in our scheduling class.
update_curr_dlUpdate the current task's runtime statistics (provided it is still* a -deadline task and has not been removed from the dl_rq).
put_prev_task_stop