Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\cgroup.h Create Date:2022-07-28 05:55:03
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:cgroup_account_cputime

Proto:static inline void cgroup_account_cputime(struct task_struct *task, u64 delta_exec)

Type:void

Parameter:

TypeParameterName
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  If cgroup_parent(cgrp) Then __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()
Caller
NameDescribe
update_currUpdate the current task's runtime statistics.
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