• Home
  • Raw
  • Download

Lines Matching refs:stats

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