summaryrefslogtreecommitdiff
path: root/src/libvmon/defs/proc_io.def
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@gnugeneration.com>2016-08-28 00:36:53 -0700
committerVito Caputo <vcaputo@gnugeneration.com>2016-09-09 14:14:31 -0700
commit4642216f70dd98134a79f9299b7ca4bc876649c7 (patch)
treebdf9fd892bc54a2f2a678a9828c6af9d9fc8bed2 /src/libvmon/defs/proc_io.def
parente99f5ac1293a0ae1f498bc4c73c4c04e4edb8665 (diff)
*: refactor all the things
Long overdue house cleaning. The addition of compositing/monitoring overlays in vwm3 pushed vwm well past what is a reasonable size for a simple thousand line file. This is a first step towards restoring sanity in the code, but no behavioral differences are intended, this is mostly just shuffling around and organizing code. I expect some performance regressions initially, follow-on commits will make more improvements to that end as the dust settles.
Diffstat (limited to 'src/libvmon/defs/proc_io.def')
-rw-r--r--src/libvmon/defs/proc_io.def33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/libvmon/defs/proc_io.def b/src/libvmon/defs/proc_io.def
new file mode 100644
index 0000000..0e1776d
--- /dev/null
+++ b/src/libvmon/defs/proc_io.def
@@ -0,0 +1,33 @@
+#include "_begin.def"
+
+ /* member name, symbolic constant, human label, human description (think UI/help) */
+ /* /proc/$pid/io */
+vmon_omit_literal("rchar: ", PROC_IO_RCHAR_LABEL)
+vmon_datum_ulonglong( rchars, PROC_IO_RCHAR, "CharsRead", "Characters read (all)")
+vmon_omit_literal("\n", PROC_IO_RCHAR_NL)
+
+vmon_omit_literal("wchar: ", PROC_IO_WCHAR_LABEL)
+vmon_datum_ulonglong( wchars, PROC_IO_WCHAR, "CharsWritten", "Characters written (all)")
+vmon_omit_literal("\n", PROC_IO_WCHAR_NL)
+
+vmon_omit_literal("syscr: ", PROC_IO_SYSCR_LABEL)
+vmon_datum_ulonglong( syscr, PROC_IO_SYSCR, "SysReads", "Read system calls")
+vmon_omit_literal("\n", PROC_IO_SYSCR_NL)
+
+vmon_omit_literal("syscw: ", PROC_IO_SYSCW_LABEL)
+vmon_datum_ulonglong( syscw, PROC_IO_SYSCW, "SysWrites", "Write system calls")
+vmon_omit_literal("\n", PROC_IO_SYSCW_NL)
+
+vmon_omit_literal("read_bytes: ", PROC_IO_READBYTES_LABEL)
+vmon_datum_ulonglong( read_bytes, PROC_IO_READBYTES, "BytesReadIO", "Bytes read from storage")
+vmon_omit_literal("\n", PROC_IO_READBYTES_NL)
+
+vmon_omit_literal("write_bytes: ", PROC_IO_WRITEBYTES_LABEL)
+vmon_datum_ulonglong( write_bytes, PROC_IO_WRITEBYTES, "BytesWrittenIO", "Bytes written to storage")
+vmon_omit_literal("\n", PROC_IO_WRITEBYTES_NL)
+
+vmon_omit_literal("cancelled_write_bytes: ", PROC_IO_CANCELLED_WRITEBYTES_LABEL)
+vmon_datum_ulonglong( cancelled_write_bytes, PROC_IO_CANCELLED_WRITEBYTES, "CancelledWriteBytes", "Bytes written but canceled before reaching storage (truncate)")
+vmon_omit_literal("\n", PROC_IO_CANCELLED_WRITEBYTES_NL)
+
+#include "_end.def"
© All Rights Reserved