Lines Matching refs:stats

22 		   struct taskstats *stats, struct task_struct *tsk)
37 stats->ac_tgetime = delta;
40 stats->ac_etime = delta;
43 stats->ac_btime = clamp_t(time64_t, btime, 0, U32_MAX);
44 stats->ac_btime64 = btime;
47 stats->ac_exitcode = tsk->exit_code;
49 stats->ac_flag |= AFORK;
51 stats->ac_flag |= ASU;
53 stats->ac_flag |= ACORE;
55 stats->ac_flag |= AXSIG;
56 stats->ac_nice = task_nice(tsk);
57 stats->ac_sched = tsk->policy;
58 stats->ac_pid = task_pid_nr_ns(tsk, pid_ns);
59 stats->ac_tgid = task_tgid_nr_ns(tsk, pid_ns);
62 stats->ac_uid = from_kuid_munged(user_ns, tcred->uid);
63 stats->ac_gid = from_kgid_munged(user_ns, tcred->gid);
64 stats->ac_ppid = pid_alive(tsk) ?
69 stats->ac_utime = div_u64(utime, NSEC_PER_USEC);
70 stats->ac_stime = div_u64(stime, NSEC_PER_USEC);
73 stats->ac_utimescaled = div_u64(utimescaled, NSEC_PER_USEC);
74 stats->ac_stimescaled = div_u64(stimescaled, NSEC_PER_USEC);
76 stats->ac_minflt = tsk->min_flt;
77 stats->ac_majflt = tsk->maj_flt;
79 strncpy(stats->ac_comm, tsk->comm, sizeof(stats->ac_comm));
91 void xacct_add_tsk(struct taskstats *stats, struct task_struct *p)
96 stats->coremem = p->acct_rss_mem1 * PAGE_SIZE;
97 do_div(stats->coremem, 1000 * KB);
98 stats->virtmem = p->acct_vm_mem1 * PAGE_SIZE;
99 do_div(stats->virtmem, 1000 * KB);
103 stats->hiwater_rss = get_mm_hiwater_rss(mm) * PAGE_SIZE / KB;
104 stats->hiwater_vm = get_mm_hiwater_vm(mm) * PAGE_SIZE / KB;
107 stats->read_char = p->ioac.rchar & KB_MASK;
108 stats->write_char = p->ioac.wchar & KB_MASK;
109 stats->read_syscalls = p->ioac.syscr & KB_MASK;
110 stats->write_syscalls = p->ioac.syscw & KB_MASK;
112 stats->read_bytes = p->ioac.read_bytes & KB_MASK;
113 stats->write_bytes = p->ioac.write_bytes & KB_MASK;
114 stats->cancelled_write_bytes = p->ioac.cancelled_write_bytes & KB_MASK;
116 stats->read_bytes = 0;
117 stats->write_bytes = 0;
118 stats->cancelled_write_bytes = 0;