Home
last modified time | relevance | path

Searched refs:memory_stats (Results 1 – 1 of 1) sorted by relevance

/mm/
Dmemcontrol.c1530 static struct memory_stat memory_stats[] = { variable
1575 for (i = 0; i < ARRAY_SIZE(memory_stats); i++) { in memory_stats_init()
1577 if (memory_stats[i].idx == NR_ANON_THPS) in memory_stats_init()
1578 memory_stats[i].ratio = HPAGE_PMD_SIZE; in memory_stats_init()
1580 VM_BUG_ON(!memory_stats[i].ratio); in memory_stats_init()
1581 VM_BUG_ON(memory_stats[i].idx >= MEMCG_NR_STAT); in memory_stats_init()
1608 for (i = 0; i < ARRAY_SIZE(memory_stats); i++) { in memory_stat_format()
1611 size = memcg_page_state(memcg, memory_stats[i].idx); in memory_stat_format()
1612 size *= memory_stats[i].ratio; in memory_stat_format()
1613 seq_buf_printf(&s, "%s %llu\n", memory_stats[i].name, size); in memory_stat_format()
[all …]