函数逻辑报告 |
Source Code:mm\vmstat.c |
Create Date:2022-07-27 15:47:31 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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") |
1567 | 以i小于NR_VM_NODE_STAT_ITEMS循环 |
1568 | seq_printf(m, "\n %-12s %lu", node_stat_name(i), Determine the per node value of a stat item.) |
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]) |
1596 | 如果非Returns true if a zone has memory 则 |
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") |
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., 内存域第一个页帧的索引) |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |