Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\cpuacct.c Create Date:2022-07-28 09:44:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:harge this task's execution time to its accounting group.* called with rq->lock held.

Proto:void cpuacct_charge(struct task_struct *tsk, u64 cputime)

Type:void

Parameter:

TypeParameterName
struct task_struct *tsk
u64cputime
341  index = ... kernel mode
342  regs = task_pt_regs(tsk)
344  If regs && ser_mode(regs) determines whether a register set came from user* mode Then index = ... user mode
347  _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
349  When ca cycle ({
350  0
350  ({
350  Do
350  const void * __vpp_verify = NULL
350  When 0 cycle
350  })
350  })->usages[index] += cputime
352  _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()