Skip to content

Commit

Permalink
numastat: Add SecPageTables to list of known fields in meminfo
Browse files Browse the repository at this point in the history
Linux kernel added this new field in August 2020 with commit:

  ebc97a52b5d6c("mm: add NR_SECONDARY_PAGETABLE to count secondary page table uses.")

Add it to numastat too.
  • Loading branch information
Chunsheng Luo authored and andikleen committed Dec 14, 2022
1 parent 8b6cb5e commit 767f2ed
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions numastat.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,21 +115,22 @@ static meminfo_t system_meminfo[] = {
{ 21, "KernelStack", "KernelStack" },
{ 22, "ShadowCallStack", "ShadowCallStack" },
{ 23, "PageTables", "PageTables" },
{ 24, "NFS_Unstable", "NFS_Unstable" },
{ 25, "Bounce", "Bounce" },
{ 26, "WritebackTmp", "WritebackTmp" },
{ 27, "Slab", "Slab" },
{ 28, "SReclaimable", "SReclaimable" },
{ 29, "SUnreclaim", "SUnreclaim" },
{ 30, "AnonHugePages", "AnonHugePages" },
{ 31, "ShmemHugePages", "ShmemHugePages" },
{ 32, "ShmemPmdMapped", "ShmemPmdMapped" },
{ 33, "FileHugePages", "FileHugePages" },
{ 34, "FilePmdMapped", "FilePmdMapped" },
{ 35, "HugePages_Total", "HugePages_Total" },
{ 36, "HugePages_Free", "HugePages_Free" },
{ 37, "HugePages_Surp", "HugePages_Surp" },
{ 38, "KReclaimable", "KReclaimable" }
{ 24, "SecPageTables", "SecPageTables" },
{ 25, "NFS_Unstable", "NFS_Unstable" },
{ 26, "Bounce", "Bounce" },
{ 27, "WritebackTmp", "WritebackTmp" },
{ 28, "Slab", "Slab" },
{ 29, "SReclaimable", "SReclaimable" },
{ 30, "SUnreclaim", "SUnreclaim" },
{ 31, "AnonHugePages", "AnonHugePages" },
{ 32, "ShmemHugePages", "ShmemHugePages" },
{ 33, "ShmemPmdMapped", "ShmemPmdMapped" },
{ 34, "FileHugePages", "FileHugePages" },
{ 35, "FilePmdMapped", "FilePmdMapped" },
{ 36, "HugePages_Total", "HugePages_Total" },
{ 37, "HugePages_Free", "HugePages_Free" },
{ 38, "HugePages_Surp", "HugePages_Surp" },
{ 39, "KReclaimable", "KReclaimable" }
};

#define SYSTEM_MEMINFO_ROWS (sizeof(system_meminfo) / sizeof(system_meminfo[0]))
Expand Down

0 comments on commit 767f2ed

Please sign in to comment.