Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

Name:memcg_stat_show

Proto:static int memcg_stat_show(struct seq_file *m, void *v)

Type:int

Parameter:

TypeParameterName
struct seq_file *m
void *v
3729  memcg = mem_cgroup_from_seq(m)
3734  BUILD_BUG_ON - break compile if a condition is true(ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(memcg1_stat_names) != ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(memcg1_stats))
3736  When i < ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(memcg1_stats) cycle
3737  If memcg1_stats[i] == MEMCG_SWAP && Not Whether legacy memory+swap accounting is active Then Continue
3739  seq_printf(m, "%s %lu\n", memcg1_stat_names[i], dx can be of type enum memcg_stat_item or node_stat_item.* Keep in sync with memcg_exact_page_state(). * PAGE_SIZE)
3744  When i < ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(Universal VM events cgroup1 shows, original sort order ) cycle seq_printf(m, "%s %lu\n", vm_event_name(Universal VM events cgroup1 shows, original sort order [i]), memcg_events_local(memcg, Universal VM events cgroup1 shows, original sort order [i]))
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
3755  When mi cycle
3756  memory = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(memory, max)
3757  memsw = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(memsw, 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)
3765  When i < ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(memcg1_stats) cycle
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)
3773  When i < ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(Universal VM events cgroup1 shows, original sort order ) cycle seq_printf(m, "total_%s %llu\n", vm_event_name(Universal VM events cgroup1 shows, original sort order [i]), (u64)memcg_events(memcg, Universal VM events cgroup1 shows, original sort order [i]))
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