函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Add user/system time to cpuacct.* Note: it's the caller that updates the account of the root cgroup.

函数原型:void cpuacct_account_field(struct task_struct *tsk, int index, u64 val)

返回类型:void

参数:

类型参数名称
struct task_struct *tsk
intindex
u64val
364  _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
365 ca不等于root_cpuacct循环({
366  0
366  ({
366  循环
366  const void * __vpp_verify = NULL
366  当0循环
366  cpustat
366  })
366  })->cpustat[index] += val
367  _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()