Lines Matching refs:m
4038 static int memcg_numa_stat_show(struct seq_file *m, void *v) in memcg_numa_stat_show() argument
4053 struct mem_cgroup *memcg = mem_cgroup_from_seq(m); in memcg_numa_stat_show()
4056 seq_printf(m, "%s=%lu", stat->name, in memcg_numa_stat_show()
4060 seq_printf(m, " N%d=%lu", nid, in memcg_numa_stat_show()
4063 seq_putc(m, '\n'); in memcg_numa_stat_show()
4068 seq_printf(m, "hierarchical_%s=%lu", stat->name, in memcg_numa_stat_show()
4072 seq_printf(m, " N%d=%lu", nid, in memcg_numa_stat_show()
4075 seq_putc(m, '\n'); in memcg_numa_stat_show()
4116 static int memcg_stat_show(struct seq_file *m, void *v) in memcg_stat_show() argument
4118 struct mem_cgroup *memcg = mem_cgroup_from_seq(m); in memcg_stat_show()
4135 seq_printf(m, "%s %lu\n", memcg1_stat_names[i], nr * PAGE_SIZE); in memcg_stat_show()
4139 seq_printf(m, "%s %lu\n", vm_event_name(memcg1_events[i]), in memcg_stat_show()
4143 seq_printf(m, "%s %lu\n", lru_list_name(i), in memcg_stat_show()
4153 seq_printf(m, "hierarchical_memory_limit %llu\n", in memcg_stat_show()
4156 seq_printf(m, "hierarchical_memsw_limit %llu\n", in memcg_stat_show()
4169 seq_printf(m, "total_%s %llu\n", memcg1_stat_names[i], in memcg_stat_show()
4174 seq_printf(m, "total_%s %llu\n", in memcg_stat_show()
4179 seq_printf(m, "total_%s %llu\n", lru_list_name(i), in memcg_stat_show()
4196 seq_printf(m, "anon_cost %lu\n", anon_cost); in memcg_stat_show()
4197 seq_printf(m, "file_cost %lu\n", file_cost); in memcg_stat_show()
6295 static int seq_puts_memcg_tunable(struct seq_file *m, unsigned long value) in seq_puts_memcg_tunable() argument
6298 seq_puts(m, "max\n"); in seq_puts_memcg_tunable()
6300 seq_printf(m, "%llu\n", (u64)value * PAGE_SIZE); in seq_puts_memcg_tunable()
6313 static int memory_min_show(struct seq_file *m, void *v) in memory_min_show() argument
6315 return seq_puts_memcg_tunable(m, in memory_min_show()
6316 READ_ONCE(mem_cgroup_from_seq(m)->memory.min)); in memory_min_show()
6336 static int memory_low_show(struct seq_file *m, void *v) in memory_low_show() argument
6338 return seq_puts_memcg_tunable(m, in memory_low_show()
6339 READ_ONCE(mem_cgroup_from_seq(m)->memory.low)); in memory_low_show()
6359 static int memory_high_show(struct seq_file *m, void *v) in memory_high_show() argument
6361 return seq_puts_memcg_tunable(m, in memory_high_show()
6362 READ_ONCE(mem_cgroup_from_seq(m)->memory.high)); in memory_high_show()
6408 static int memory_max_show(struct seq_file *m, void *v) in memory_max_show() argument
6410 return seq_puts_memcg_tunable(m, in memory_max_show()
6411 READ_ONCE(mem_cgroup_from_seq(m)->memory.max)); in memory_max_show()
6461 static void __memory_events_show(struct seq_file *m, atomic_long_t *events) in __memory_events_show() argument
6463 seq_printf(m, "low %lu\n", atomic_long_read(&events[MEMCG_LOW])); in __memory_events_show()
6464 seq_printf(m, "high %lu\n", atomic_long_read(&events[MEMCG_HIGH])); in __memory_events_show()
6465 seq_printf(m, "max %lu\n", atomic_long_read(&events[MEMCG_MAX])); in __memory_events_show()
6466 seq_printf(m, "oom %lu\n", atomic_long_read(&events[MEMCG_OOM])); in __memory_events_show()
6467 seq_printf(m, "oom_kill %lu\n", in __memory_events_show()
6471 static int memory_events_show(struct seq_file *m, void *v) in memory_events_show() argument
6473 struct mem_cgroup *memcg = mem_cgroup_from_seq(m); in memory_events_show()
6475 __memory_events_show(m, memcg->memory_events); in memory_events_show()
6479 static int memory_events_local_show(struct seq_file *m, void *v) in memory_events_local_show() argument
6481 struct mem_cgroup *memcg = mem_cgroup_from_seq(m); in memory_events_local_show()
6483 __memory_events_show(m, memcg->memory_events_local); in memory_events_local_show()
6487 static int memory_stat_show(struct seq_file *m, void *v) in memory_stat_show() argument
6489 struct mem_cgroup *memcg = mem_cgroup_from_seq(m); in memory_stat_show()
6495 seq_puts(m, buf); in memory_stat_show()
6501 static int memory_numa_stat_show(struct seq_file *m, void *v) in memory_numa_stat_show() argument
6504 struct mem_cgroup *memcg = mem_cgroup_from_seq(m); in memory_numa_stat_show()
6512 seq_printf(m, "%s", memory_stats[i].name); in memory_numa_stat_show()
6520 seq_printf(m, " N%d=%llu", nid, size); in memory_numa_stat_show()
6522 seq_putc(m, '\n'); in memory_numa_stat_show()
6529 static int memory_oom_group_show(struct seq_file *m, void *v) in memory_oom_group_show() argument
6531 struct mem_cgroup *memcg = mem_cgroup_from_seq(m); in memory_oom_group_show()
6533 seq_printf(m, "%d\n", memcg->oom_group); in memory_oom_group_show()
7435 static int swap_high_show(struct seq_file *m, void *v) in swap_high_show() argument
7437 return seq_puts_memcg_tunable(m, in swap_high_show()
7438 READ_ONCE(mem_cgroup_from_seq(m)->swap.high)); in swap_high_show()
7458 static int swap_max_show(struct seq_file *m, void *v) in swap_max_show() argument
7460 return seq_puts_memcg_tunable(m, in swap_max_show()
7461 READ_ONCE(mem_cgroup_from_seq(m)->swap.max)); in swap_max_show()
7481 static int swap_events_show(struct seq_file *m, void *v) in swap_events_show() argument
7483 struct mem_cgroup *memcg = mem_cgroup_from_seq(m); in swap_events_show()
7485 seq_printf(m, "high %lu\n", in swap_events_show()
7487 seq_printf(m, "max %lu\n", in swap_events_show()
7489 seq_printf(m, "fail %lu\n", in swap_events_show()