Lines Matching defs:stat
256 struct mem_cgroup_stat_cpu *stat;
541 val += per_cpu(mem->stat->count[idx], cpu);
558 this_cpu_add(mem->stat->count[MEM_CGROUP_STAT_SWAPOUT], val);
570 __this_cpu_add(mem->stat->count[MEM_CGROUP_STAT_CACHE], val);
572 __this_cpu_add(mem->stat->count[MEM_CGROUP_STAT_RSS], val);
575 __this_cpu_inc(mem->stat->count[MEM_CGROUP_STAT_PGPGIN_COUNT]);
577 __this_cpu_inc(mem->stat->count[MEM_CGROUP_STAT_PGPGOUT_COUNT]);
578 __this_cpu_inc(mem->stat->count[MEM_CGROUP_EVENTS]);
602 val = this_cpu_read(mem->stat->count[MEM_CGROUP_EVENTS]);
1485 __this_cpu_inc(mem->stat->count[MEM_CGROUP_STAT_FILE_MAPPED]);
1488 __this_cpu_dec(mem->stat->count[MEM_CGROUP_STAT_FILE_MAPPED]);
1975 __this_cpu_dec(from->stat->count[MEM_CGROUP_STAT_FILE_MAPPED]);
1976 __this_cpu_inc(to->stat->count[MEM_CGROUP_STAT_FILE_MAPPED]);
3372 s64 stat[NR_MCS_STAT];
3398 /* per cpu stat */
3400 s->stat[MCS_CACHE] += val * PAGE_SIZE;
3402 s->stat[MCS_RSS] += val * PAGE_SIZE;
3404 s->stat[MCS_FILE_MAPPED] += val * PAGE_SIZE;
3406 s->stat[MCS_PGPGIN] += val;
3408 s->stat[MCS_PGPGOUT] += val;
3411 s->stat[MCS_SWAP] += val * PAGE_SIZE;
3414 /* per zone stat */
3416 s->stat[MCS_INACTIVE_ANON] += val * PAGE_SIZE;
3418 s->stat[MCS_ACTIVE_ANON] += val * PAGE_SIZE;
3420 s->stat[MCS_INACTIVE_FILE] += val * PAGE_SIZE;
3422 s->stat[MCS_ACTIVE_FILE] += val * PAGE_SIZE;
3424 s->stat[MCS_UNEVICTABLE] += val * PAGE_SIZE;
3447 cb->fill(cb, memcg_stat_strings[i].local_name, mystat.stat[i]);
3464 cb->fill(cb, memcg_stat_strings[i].total_name, mystat.stat[i]);
3899 .name = "stat",
4028 mem->stat = alloc_percpu(struct mem_cgroup_stat_cpu);
4029 if (!mem->stat) {
4060 free_percpu(mem->stat);