函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\vmstat.c Create Date:2022-07-27 15:47:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:zoneinfo_show_print

函数原型:static void zoneinfo_show_print(struct seq_file *m, pg_data_t *pgdat, struct zone *zone)

返回类型:void

参数:

类型参数名称
struct seq_file *m
pg_data_t *pgdat
struct zone *zone
1564  seq_printf(m, "Node %d, zone %8s", 全局结点ID, 内存域的惯用名称(NORMAL DMA HIGHMEM))
1565  如果is_zone_first_populated(pgdat, zone)则
1566  seq_printf(m, "\n per-node stats")
1572  seq_printf(m, "\n pages free %lu\n min %lu\n low %lu\n high %lu\n spanned %lu\n present %lu\n managed %lu", zone_page_state(zone, First 128 byte cacheline (assuming 64 bit words) ), min_wmark_pages(zone), low_wmark_pages(zone), high_wmark_pages(zone), 内存域中页的总数, 内存域中实际上可用的页数目, zone_managed_pages(zone))
1588  seq_printf(m, "\n protection: (%ld", 关键性内存分配[0])
1591 i小于ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(关键性内存分配)循环seq_printf(m, ", %ld", 关键性内存分配[i])
1593  seq_putc(m, ')')
1596  如果非Returns true if a zone has memory
1597  seq_putc(m, '\n')
1598  返回
1601 i小于NR_VM_ZONE_STAT_ITEMS循环seq_printf(m, "\n %-12s %lu", zone_stat_name(i), zone_page_state(zone, i))
1606 i小于NR_VM_NUMA_STAT_ITEMS循环seq_printf(m, "\n %-12s %lu", numa_stat_name(i), zone_numa_state_snapshot(zone, i))
1611  seq_printf(m, "\n pagesets")
1612  遍历在线CPU(i)
1615  pageset等于per_cpu_ptr(CPU热/冷页帧列表, i)
1616  seq_printf(m, "\n cpu: %i\n count: %i\n high: %i\n batch: %i", i, count, high watermark, emptying needed , chunk size for buddy add/remove )
1630  seq_printf(m, "\n node_unreclaimable: %u\n start_pfn: %lu", Number of 'reclaimed == 0' runs >= Maximum number of reclaim retries without progress before the OOM* killer is consider the only way forward., 内存域第一个页帧的索引)
1635  seq_putc(m, '\n')