• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/kernel/

Lines Matching defs:stats

29 void bacct_add_tsk(struct taskstats *stats, struct task_struct *tsk)
43 stats->ac_etime = ac_etime;
44 stats->ac_btime = get_seconds() - ts.tv_sec;
46 stats->ac_exitcode = tsk->exit_code;
48 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 = tsk->pid;
61 stats->ac_uid = tcred->uid;
62 stats->ac_gid = tcred->gid;
63 stats->ac_ppid = pid_alive(tsk) ?
66 stats->ac_utime = cputime_to_msecs(tsk->utime) * USEC_PER_MSEC;
67 stats->ac_stime = cputime_to_msecs(tsk->stime) * USEC_PER_MSEC;
68 stats->ac_utimescaled =
70 stats->ac_stimescaled =
72 stats->ac_minflt = tsk->min_flt;
73 stats->ac_majflt = tsk->maj_flt;
75 strncpy(stats->ac_comm, tsk->comm, sizeof(stats->ac_comm));
86 void xacct_add_tsk(struct taskstats *stats, struct task_struct *p)
91 stats->coremem = p->acct_rss_mem1 * PAGE_SIZE / MB;
92 stats->virtmem = p->acct_vm_mem1 * PAGE_SIZE / MB;
96 stats->hiwater_rss = get_mm_hiwater_rss(mm) * PAGE_SIZE / KB;
97 stats->hiwater_vm = get_mm_hiwater_vm(mm) * PAGE_SIZE / KB;
100 stats->read_char = p->ioac.rchar;
101 stats->write_char = p->ioac.wchar;
102 stats->read_syscalls = p->ioac.syscr;
103 stats->write_syscalls = p->ioac.syscw;
105 stats->read_bytes = p->ioac.read_bytes;
106 stats->write_bytes = p->ioac.write_bytes;
107 stats->cancelled_write_bytes = p->ioac.cancelled_write_bytes;
109 stats->read_bytes = 0;
110 stats->write_bytes = 0;
111 stats->cancelled_write_bytes = 0;