函数源码 |
Source File:include\linux\sched\cputime.h |
Create Date:2022-07-27 06:42:33 |
首页 | Copyright©Brick |
159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 | /** * account_group_exec_runtime - Maintain exec runtime for a thread group. * * @tsk: Pointer to task structure. * @ns: Time value by which to increment the sum_exec_runtime field * of the thread_group_cputime structure. * * If thread group time is being maintained, get the structure for the * running CPU and update the sum_exec_runtime field there. */ static inline void account_group_exec_runtime( struct task_struct *tsk, unsigned long long ns) { struct thread_group_cputimer *cputimer = get_running_cputimer(tsk); if (!cputimer) return ; atomic64_add(ns, &cputimer->cputime_atomic.sum_exec_runtime); } |