Function report |
Source Code:kernel\tsacct.c |
Create Date:2022-07-28 11:49:52 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ll in basic accounting fields
Proto:void bacct_add_tsk(struct user_namespace *user_ns, struct pid_namespace *pid_ns, struct taskstats *stats, struct task_struct *tsk)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct user_namespace * | user_ns | |
struct pid_namespace * | pid_ns | |
struct taskstats * | stats | |
struct task_struct * | tsk |
28 | BUILD_BUG_ON - break compile if a condition is true(should be >= TASK_COMM_LEN* in linux/sched.h < Task command name length: ) |
31 | delta = ktime_get_ns() - Monotonic time in nsecs: |
37 | Begin time [sec since 1970] = These interfaces are all based on the old timespec type* and should get replaced with the timespec64 based versions* over time so we can remove the file here. - delta |
38 | If thread_group_leader(tsk) Then |
39 | Exit status = exit code |
43 | If Per task flags (PF_*), defined further below: & Used super-user privileges Then Record flags |= ... used super-user privileges |
45 | If Per task flags (PF_*), defined further below: & Dumped core Then Record flags |= ... dumped core |
47 | If Per task flags (PF_*), defined further below: & Killed by a signal Then Record flags |= ... was killed by a signal |
49 | task_nice = ask_nice - return the nice value of a given task.*@p: the task in question.* Return: The nice value [ -20 ... 0 ... 19 ]. |
51 | Process ID = task_pid_nr_ns(tsk, pid_ns) |
60 | task_cputime(tsk, & utime, & stime) |
64 | task_cputime_scaled(tsk, & utimescaled, & stimescaled) |
68 | Minor Page Fault Count = MM fault and swap info: this can arguably be seen as either mm-specific or thread-specific: |
71 | strncpy( Command name , * executable name, excluding path. * - normally initialized setup_new_exec() * - access it with [gs]et_task_comm() * - lock it with task_lock(), size of Command name ) |
Name | Describe |
---|---|
fill_stats |
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 |