summaryrefslogtreecommitdiff
path: root/src/libvmon/defs/proc_vm.def
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@gnugeneration.com>2016-09-09 14:20:28 -0700
committerGitHub <noreply@github.com>2016-09-09 14:20:28 -0700
commita1aba8e0fe5c94ebf04258b609666c92b756954f (patch)
treefe9792b77766e31728b1d2d04d2461858ef45443 /src/libvmon/defs/proc_vm.def
parente99f5ac1293a0ae1f498bc4c73c4c04e4edb8665 (diff)
parent8ef5fccc1ad2f5acb5530a438de631153e4ad945 (diff)
Merge pull request #6 from vcaputo/clean_house
House cleaning
Diffstat (limited to 'src/libvmon/defs/proc_vm.def')
-rw-r--r--src/libvmon/defs/proc_vm.def19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/libvmon/defs/proc_vm.def b/src/libvmon/defs/proc_vm.def
new file mode 100644
index 0000000..9028272
--- /dev/null
+++ b/src/libvmon/defs/proc_vm.def
@@ -0,0 +1,19 @@
+#include "_begin.def"
+
+ /* member name, symbolic constant, human label, human description (think UI/help) */
+ /* /proc/$pid/statm */
+vmon_datum_ulonglong( size_pages, PROC_VM_SIZE_PAGES, "Size", "Size in pages")
+vmon_omit_run( ' ', PROC_VM_RESIDENT_PAGES_SP)
+vmon_datum_ulonglong( resident_pages, PROC_VM_RESIDENT_PAGES, "Resident", "Resident set size in pages")
+vmon_omit_run( ' ', PROC_VM_SHARED_PAGES_SP)
+vmon_datum_ulonglong( shared_pages, PROC_VM_SHARED_PAGES, "Shared", "Shared size in pages")
+vmon_omit_run( ' ', PROC_VM_TEXT_PAGES_SP)
+vmon_datum_ulonglong( text_pages, PROC_VM_TEXT_PAGES, "Text", "Text segment size in pages")
+vmon_omit_run( ' ', PROC_VM_LIB_PAGES_SP)
+vmon_omit_ulonglong( lib_pages, PROC_VM_LIB_PAGES, "Library", "Library segment size (skipped, unused in 2.6)")
+vmon_omit_run( ' ', PROC_VM_DATA_PAGES_SP)
+vmon_datum_ulonglong( data_pages, PROC_VM_DATA_PAGES, "Data", "Data segment size in pages")
+vmon_omit_run( ' ', PROC_VM_DIRTY_PAGES_SP)
+vmon_omit_ulonglong( dirty_pages, PROC_VM_DIRTY_PAGES, "Dirty", "Dirtied (skipped, unused in 2.6)")
+
+#include "_end.def"
© All Rights Reserved