]> granicus.if.org Git - strace/commitdiff
2004-03-01 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@redhat.com>
Mon, 1 Mar 2004 22:10:54 +0000 (22:10 +0000)
committerRoland McGrath <roland@redhat.com>
Mon, 1 Mar 2004 22:10:54 +0000 (22:10 +0000)
* system.c (sysctl_vm): Conditionalize VM_* macro uses, add some more.
From Tim Yamin <plasmaroo@gentoo.org>.

system.c

index 4c1aa59486fb363309f4d304f33841a49d66817d..efa6cd861772cbe29f99001b24c48bc8d75ff2fb 100644 (file)
--- a/system.c
+++ b/system.c
@@ -1626,15 +1626,55 @@ static struct xlat sysctl_kern[] = {
 };
 
 static struct xlat sysctl_vm[] = {
+#ifdef VM_SWAPCTL
        { VM_SWAPCTL, "VM_SWAPCTL" },
+#endif
+#ifdef VM_UNUSED1
+       { VM_UNUSED1, "VM_UNUSED1" },
+#endif
+#ifdef VM_SWAPOUT
        { VM_SWAPOUT, "VM_SWAPOUT" },
+#endif
+#ifdef VM_UNUSED2
+       { VM_UNUSED2, "VM_UNUSED2" },
+#endif
+#ifdef VM_FREEPG
        { VM_FREEPG, "VM_FREEPG" },
+#endif
+#ifdef VM_UNUSED3
+       { VM_UNUSED3, "VM_UNUSED3" },
+#endif
+#ifdef VM_BDFLUSH
        { VM_BDFLUSH, "VM_BDFLUSH" },
+#endif
+#ifdef VM_UNUSED4
+       { VM_UNUSED4, "VM_UNUSED4" },
+#endif
        { VM_OVERCOMMIT_MEMORY, "VM_OVERCOMMIT_MEMORY" },
+#ifdef VM_BUFFERMEM
        { VM_BUFFERMEM, "VM_BUFFERMEM" },
+#endif
+#ifdef VM_UNUSED5
+       { VM_UNUSED5, "VM_UNUSED5" },
+#endif
+#ifdef VM_PAGECACHE
        { VM_PAGECACHE, "VM_PAGECACHE" },
+#endif
+#ifdef VM_UNUSED7
+       { VM_UNUSED7, "VM_UNUSED7" },
+#endif
+#ifdef VM_PAGERDAEMON
        { VM_PAGERDAEMON, "VM_PAGERDAEMON" },
+#endif
+#ifdef VM_UNUSED8
+       { VM_UNUSED8, "VM_UNUSED8" },
+#endif
+#ifdef VM_PGT_CACHE
        { VM_PGT_CACHE, "VM_PGT_CACHE" },
+#endif
+#ifdef VM_UNUSED9
+       { VM_UNUSED9, "VM_UNUSED9" },
+#endif
        { VM_PAGE_CLUSTER, "VM_PAGE_CLUSTER" },
        { 0, NULL },
 };