函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\posix-cpu-timers.c Create Date:2022-07-27 11:47:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:hread_group_start_cputime - Start cputime and return a sample*@tsk: Task for which cputime needs to be started*@samples: Storage for time samples* The thread group cputime accouting is avoided when there are no posix* CPU timers armed

函数原型:static void thread_group_start_cputime(struct task_struct *tsk, u64 *samples)

返回类型:void

参数:

类型参数名称
struct task_struct *tsk
u64 *samples
301  cputimer等于cputimer
302  pct等于 Empty if CONFIG_POSIX_CPUTIMERS=n
305  如果非READ_ONCE(timers_active)则
313  Accumulate raw cputime values of dead tasks (sig->[us]time) and live* tasks (sum on group iteration) belonging to @tsk's group.
314  update_gt_cputime( & cputime_atomic, & sum)
323  WRITE_ONCE(timers_active, true)
325  proc_sample_cputime_atomic( & cputime_atomic, samples)
调用者
名称描述
cpu_clock_sample_groupSample a process (thread group) clock for the given task clkid. If the* group's cputime accounting is already enabled, read the atomic* store. Otherwise a full update is required. Task's sighand lock must be