Blame SOURCES/0007-Fix-Add-ShmemHugePages-and-ShmemPmdMapped-to-system_.patch

c88143
From a8f5ed65b745f96f5e5af72bace8e7c63b96fd4e Mon Sep 17 00:00:00 2001
c88143
From: Sanskriti Sharma <sansharm@redhat.com>
c88143
Date: Thu, 13 Sep 2018 10:01:58 -0400
c88143
Subject: [PATCH 7/7] Fix: Add ShmemHugePages and ShmemPmdMapped to
c88143
 system_meminfo[]
c88143
c88143
ShmemHugePages and ShmemPmdMapped were recently added to
c88143
/sys/devices/system/node/node*/meminfo. Adding entries for them in the
c88143
system_meminfo data structure got rid of the error "Token Node not in hash
c88143
table."
c88143
c88143
Signed-off-by: Sanskriti Sharma <sansharm@redhat.com>
c88143
Signed-off-by: Pingfan Liu <piliu@redhat.com>
c88143
---
c88143
 numastat.c | 8 +++++---
c88143
 1 file changed, 5 insertions(+), 3 deletions(-)
c88143
c88143
diff --git a/numastat.c b/numastat.c
c88143
index 92d8496..25874db 100644
c88143
--- a/numastat.c
c88143
+++ b/numastat.c
c88143
@@ -122,9 +122,11 @@ meminfo_t system_meminfo[] = {
c88143
 	{ 27, "SReclaimable", "SReclaimable" },
c88143
 	{ 28, "SUnreclaim", "SUnreclaim" },
c88143
 	{ 29, "AnonHugePages", "AnonHugePages" },
c88143
-	{ 30, "HugePages_Total", "HugePages_Total" },
c88143
-	{ 31, "HugePages_Free", "HugePages_Free" },
c88143
-	{ 32, "HugePages_Surp", "HugePages_Surp" }
c88143
+	{ 30, "ShmemHugePages", "ShmemHugePages" },
c88143
+	{ 31, "ShmemPmdMapped", "ShmemPmdMapped" },
c88143
+	{ 32, "HugePages_Total", "HugePages_Total" },
c88143
+	{ 33, "HugePages_Free", "HugePages_Free" },
c88143
+	{ 34, "HugePages_Surp", "HugePages_Surp" }
c88143
 };
c88143
 
c88143
 #define SYSTEM_MEMINFO_ROWS (sizeof(system_meminfo) / sizeof(system_meminfo[0]))
c88143
-- 
c88143
2.7.4
c88143