tsacct.c (7a9787e1eba95a166265e6a260cf30af04ef0a99) | tsacct.c (b6dff3ec5e116e3af6f537d4caedcad6b9e5082a) |
---|---|
1/* 2 * tsacct.c - System accounting over taskstats interface 3 * 4 * Copyright (C) Jay Lan, <jlan@sgi.com> 5 * 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by --- 39 unchanged lines hidden (view full) --- 48 if (tsk->flags & PF_SUPERPRIV) 49 stats->ac_flag |= ASU; 50 if (tsk->flags & PF_DUMPCORE) 51 stats->ac_flag |= ACORE; 52 if (tsk->flags & PF_SIGNALED) 53 stats->ac_flag |= AXSIG; 54 stats->ac_nice = task_nice(tsk); 55 stats->ac_sched = tsk->policy; | 1/* 2 * tsacct.c - System accounting over taskstats interface 3 * 4 * Copyright (C) Jay Lan, <jlan@sgi.com> 5 * 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by --- 39 unchanged lines hidden (view full) --- 48 if (tsk->flags & PF_SUPERPRIV) 49 stats->ac_flag |= ASU; 50 if (tsk->flags & PF_DUMPCORE) 51 stats->ac_flag |= ACORE; 52 if (tsk->flags & PF_SIGNALED) 53 stats->ac_flag |= AXSIG; 54 stats->ac_nice = task_nice(tsk); 55 stats->ac_sched = tsk->policy; |
56 stats->ac_uid = tsk->uid; 57 stats->ac_gid = tsk->gid; | 56 stats->ac_uid = tsk->cred->uid; 57 stats->ac_gid = tsk->cred->gid; |
58 stats->ac_pid = tsk->pid; 59 rcu_read_lock(); 60 stats->ac_ppid = pid_alive(tsk) ? 61 rcu_dereference(tsk->real_parent)->tgid : 0; 62 rcu_read_unlock(); 63 stats->ac_utime = cputime_to_msecs(tsk->utime) * USEC_PER_MSEC; 64 stats->ac_stime = cputime_to_msecs(tsk->stime) * USEC_PER_MSEC; 65 stats->ac_utimescaled = --- 84 unchanged lines hidden --- | 58 stats->ac_pid = tsk->pid; 59 rcu_read_lock(); 60 stats->ac_ppid = pid_alive(tsk) ? 61 rcu_dereference(tsk->real_parent)->tgid : 0; 62 rcu_read_unlock(); 63 stats->ac_utime = cputime_to_msecs(tsk->utime) * USEC_PER_MSEC; 64 stats->ac_stime = cputime_to_msecs(tsk->stime) * USEC_PER_MSEC; 65 stats->ac_utimescaled = --- 84 unchanged lines hidden --- |