Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:It would make sense to put struct rusage in the task_struct,* except that would make the task_struct be *really big*

Proto:static void accumulate_thread_rusage(struct task_struct *t, struct rusage *r)

Type:void

Parameter:

TypeParameterName
struct task_struct *t
struct rusage *r
1699  voluntary context switches += Context switch counts:
1700  involuntary " += nivcsw
1701  page reclaims += MM fault and swap info: this can arguably be seen as either mm-specific or thread-specific:
1702  page faults += maj_flt
1703  block input operations += task_io_get_inblock(t)
1704  block output operations += task_io_get_oublock(t)
Caller
NameDescribe
getrusage