函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:void cpuacct_charge(struct task_struct *tsk, u64 cputime)

返回类型:void

参数:

类型参数名称
struct task_struct *tsk
u64cputime
341  index等于... kernel mode
342  regs等于task_pt_regs(tsk)
344  如果regsser_mode(regs) determines whether a register set came from user* modeindex等于... 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 ca循环({
350  0
350  ({
350  循环
350  const void * __vpp_verify = NULL
350  当0循环
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()