Home
last modified time | relevance | path

Searched refs:stat_cpu (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/include/linux/
Dmemcontrol.h277 struct mem_cgroup_stat_cpu __percpu *stat_cpu; member
583 x = val + __this_cpu_read(memcg->stat_cpu->count[idx]); in __mod_memcg_state()
588 __this_cpu_write(memcg->stat_cpu->count[idx], x); in __mod_memcg_state()
726 x = count + __this_cpu_read(memcg->stat_cpu->events[idx]); in __count_memcg_events()
731 __this_cpu_write(memcg->stat_cpu->events[idx], x); in __count_memcg_events()
/Linux-v4.19/mm/
Dmemcontrol.c718 __this_cpu_add(memcg->stat_cpu->nr_page_events, nr_pages); in mem_cgroup_charge_statistics()
754 val = __this_cpu_read(memcg->stat_cpu->nr_page_events); in mem_cgroup_event_ratelimit()
755 next = __this_cpu_read(memcg->stat_cpu->targets[target]); in mem_cgroup_event_ratelimit()
771 __this_cpu_write(memcg->stat_cpu->targets[target], next); in mem_cgroup_event_ratelimit()
2078 x = this_cpu_xchg(memcg->stat_cpu->count[i], 0); in memcg_hotplug_cpu_dead()
2098 x = this_cpu_xchg(memcg->stat_cpu->events[i], 0); in memcg_hotplug_cpu_dead()
4411 free_percpu(memcg->stat_cpu); in __mem_cgroup_free()
4440 memcg->stat_cpu = alloc_percpu(struct mem_cgroup_stat_cpu); in mem_cgroup_alloc()
4441 if (!memcg->stat_cpu) in mem_cgroup_alloc()
6048 __this_cpu_add(ug->memcg->stat_cpu->nr_page_events, nr_pages); in uncharge_batch()