diff options
Diffstat (limited to 'fs/proc/meminfo.c')
-rw-r--r-- | fs/proc/meminfo.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/fs/proc/meminfo.c b/fs/proc/meminfo.c index d5c410d47fae..c7bff4f603ff 100644 --- a/fs/proc/meminfo.c +++ b/fs/proc/meminfo.c | |||
@@ -81,9 +81,11 @@ static int meminfo_proc_show(struct seq_file *m, void *v) | |||
81 | "Writeback: %8lu kB\n" | 81 | "Writeback: %8lu kB\n" |
82 | "AnonPages: %8lu kB\n" | 82 | "AnonPages: %8lu kB\n" |
83 | "Mapped: %8lu kB\n" | 83 | "Mapped: %8lu kB\n" |
84 | "Shmem: %8lu kB\n" | ||
84 | "Slab: %8lu kB\n" | 85 | "Slab: %8lu kB\n" |
85 | "SReclaimable: %8lu kB\n" | 86 | "SReclaimable: %8lu kB\n" |
86 | "SUnreclaim: %8lu kB\n" | 87 | "SUnreclaim: %8lu kB\n" |
88 | "KernelStack: %8lu kB\n" | ||
87 | "PageTables: %8lu kB\n" | 89 | "PageTables: %8lu kB\n" |
88 | #ifdef CONFIG_QUICKLIST | 90 | #ifdef CONFIG_QUICKLIST |
89 | "Quicklists: %8lu kB\n" | 91 | "Quicklists: %8lu kB\n" |
@@ -95,7 +97,11 @@ static int meminfo_proc_show(struct seq_file *m, void *v) | |||
95 | "Committed_AS: %8lu kB\n" | 97 | "Committed_AS: %8lu kB\n" |
96 | "VmallocTotal: %8lu kB\n" | 98 | "VmallocTotal: %8lu kB\n" |
97 | "VmallocUsed: %8lu kB\n" | 99 | "VmallocUsed: %8lu kB\n" |
98 | "VmallocChunk: %8lu kB\n", | 100 | "VmallocChunk: %8lu kB\n" |
101 | #ifdef CONFIG_MEMORY_FAILURE | ||
102 | "HardwareCorrupted: %8lu kB\n" | ||
103 | #endif | ||
104 | , | ||
99 | K(i.totalram), | 105 | K(i.totalram), |
100 | K(i.freeram), | 106 | K(i.freeram), |
101 | K(i.bufferram), | 107 | K(i.bufferram), |
@@ -124,10 +130,12 @@ static int meminfo_proc_show(struct seq_file *m, void *v) | |||
124 | K(global_page_state(NR_WRITEBACK)), | 130 | K(global_page_state(NR_WRITEBACK)), |
125 | K(global_page_state(NR_ANON_PAGES)), | 131 | K(global_page_state(NR_ANON_PAGES)), |
126 | K(global_page_state(NR_FILE_MAPPED)), | 132 | K(global_page_state(NR_FILE_MAPPED)), |
133 | K(global_page_state(NR_SHMEM)), | ||
127 | K(global_page_state(NR_SLAB_RECLAIMABLE) + | 134 | K(global_page_state(NR_SLAB_RECLAIMABLE) + |
128 | global_page_state(NR_SLAB_UNRECLAIMABLE)), | 135 | global_page_state(NR_SLAB_UNRECLAIMABLE)), |
129 | K(global_page_state(NR_SLAB_RECLAIMABLE)), | 136 | K(global_page_state(NR_SLAB_RECLAIMABLE)), |
130 | K(global_page_state(NR_SLAB_UNRECLAIMABLE)), | 137 | K(global_page_state(NR_SLAB_UNRECLAIMABLE)), |
138 | global_page_state(NR_KERNEL_STACK) * THREAD_SIZE / 1024, | ||
131 | K(global_page_state(NR_PAGETABLE)), | 139 | K(global_page_state(NR_PAGETABLE)), |
132 | #ifdef CONFIG_QUICKLIST | 140 | #ifdef CONFIG_QUICKLIST |
133 | K(quicklist_total_size()), | 141 | K(quicklist_total_size()), |
@@ -140,6 +148,9 @@ static int meminfo_proc_show(struct seq_file *m, void *v) | |||
140 | (unsigned long)VMALLOC_TOTAL >> 10, | 148 | (unsigned long)VMALLOC_TOTAL >> 10, |
141 | vmi.used >> 10, | 149 | vmi.used >> 10, |
142 | vmi.largest_chunk >> 10 | 150 | vmi.largest_chunk >> 10 |
151 | #ifdef CONFIG_MEMORY_FAILURE | ||
152 | ,atomic_long_read(&mce_bad_pages) << (PAGE_SHIFT - 10) | ||
153 | #endif | ||
143 | ); | 154 | ); |
144 | 155 | ||
145 | hugetlb_report_meminfo(m); | 156 | hugetlb_report_meminfo(m); |