Function report |
Source Code:kernel\sched\cputime.c |
Create Date:2022-07-28 09:37:25 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Account user CPU time to a process.*@p: the process that the CPU time gets accounted to*@cputime: the CPU time spent in user space since the last update
Proto:void account_user_time(struct task_struct *p, u64 cputime)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct task_struct * | p | |
| u64 | cputime |
| 125 | index = If ask_nice - return the nice value of a given task.*@p: the task in question.* Return: The nice value [ -20 ... 0 ... 19 ]. > 0 Then CPUTIME_NICE Else CPUTIME_USER |
| 128 | task_group_account_field(p, index, cputime) |
| 131 | acct_account_cputime(p) |
| Name | Describe |
|---|---|
| account_process_tick | Account a single tick of CPU time.*@p: the process that the CPU time gets accounted to*@user_tick: indicates if the tick is a user or a system tick |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |