函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:proc_sample_cputime_atomic

函数原型:static void proc_sample_cputime_atomic(struct task_cputime_atomic *at, u64 *samples)

返回类型:void

参数:

类型参数名称
struct task_cputime_atomic *at
u64 *samples
237  utime等于atomic64_read( & utime)
238  stime等于atomic64_read( & stime)
239  rtime等于atomic64_read( & sum_exec_runtime)
240  store_samples(samples, stime, utime, rtime)
调用者
名称描述
thread_group_sample_cputimehread_group_sample_cputime - Sample cputime for a given task*@tsk: Task for which cputime needs to be started*@samples: Storage for time samples* Called from sys_getitimer() to calculate the expiry time of an active* timer
thread_group_start_cputimehread_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
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
check_process_timersCheck for any per-thread CPU timers that have fired and move them* off the tsk->*_timers list onto the firing list. Per-thread timers* have already been taken off.
fastpath_timer_checkastpath_timer_check - POSIX CPU timers fast path.*@tsk: The task (thread) being checked.* Check the task and thread group timers. If both are zero (there are no* timers set) return false. Otherwise snapshot the task and thread group