Function report |
Source Code:mm\memcontrol.c |
Create Date:2022-07-28 16:11:46 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:memcg_stat_show
Proto:static int memcg_stat_show(struct seq_file *m, void *v)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct seq_file * | m | |
void * | v |
3729 | memcg = mem_cgroup_from_seq(m) |
3737 | If memcg1_stats[i] == MEMCG_SWAP && Not Whether legacy memory+swap accounting is active Then Continue |
3748 | When i < NR_LRU_LISTS cycle seq_printf(m, "%s %lu\n", lru_list_name(i), dx can be of type enum memcg_stat_item or node_stat_item.* Keep in sync with memcg_exact_page_state(). * PAGE_SIZE) |
3754 | memory = memsw = PAGE_COUNTER_MAX |
3759 | seq_printf(m, "hierarchical_memory_limit %llu\n", (u64)memory * PAGE_SIZE) |
3761 | If Whether legacy memory+swap accounting is active Then seq_printf(m, "hierarchical_memsw_limit %llu\n", (u64)memsw * PAGE_SIZE) |
3766 | If memcg1_stats[i] == MEMCG_SWAP && Not Whether legacy memory+swap accounting is active Then Continue |
3768 | seq_printf(m, "total_%s %llu\n", memcg1_stat_names[i], (u64)dx can be of type enum memcg_stat_item or node_stat_item.* Keep in sync with memcg_exact_page_state(). * PAGE_SIZE) |
3778 | When i < NR_LRU_LISTS cycle seq_printf(m, "total_%s %llu\n", lru_list_name(i), (u64)dx can be of type enum memcg_stat_item or node_stat_item.* Keep in sync with memcg_exact_page_state(). * PAGE_SIZE) |
3807 | Return 0 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |