summaryrefslogtreecommitdiff
path: root/src/libvmon/defs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libvmon/defs')
-rw-r--r--src/libvmon/defs/proc_stat.def2
-rw-r--r--src/libvmon/defs/proc_wants.def8
2 files changed, 7 insertions, 3 deletions
diff --git a/src/libvmon/defs/proc_stat.def b/src/libvmon/defs/proc_stat.def
index db704e9..61d3338 100644
--- a/src/libvmon/defs/proc_stat.def
+++ b/src/libvmon/defs/proc_stat.def
@@ -60,7 +60,7 @@ vmon_datum_ulonglong( start, PROC_STAT_START, "StartTime", "start time relativ
vmon_omit_run( ' ', PROC_STAT_VSIZE_SP)
vmon_datum_ulonglong( vsize, PROC_STAT_VSIZE, "VirtSize", "virtual memory size (bytes)")
vmon_omit_run( ' ', PROC_STAT_RSS_SP)
-vmon_datum_ulonglong( rss, PROC_STAT_RSS, "ResSize", "resident set size (bytes)")
+vmon_datum_ulonglong( rss, PROC_STAT_RSS, "ResSize", "resident set size (pages)")
vmon_omit_run( ' ', PROC_STAT_RSSLIM_SP)
vmon_datum_ulonglong( rsslim, PROC_STAT_RSSLIM, "ResSizeLimit", "resident set size ulimit")
vmon_omit_run( ' ', PROC_STAT_STARTCODE_SP)
diff --git a/src/libvmon/defs/proc_wants.def b/src/libvmon/defs/proc_wants.def
index 7f02602..a3c3cd7 100644
--- a/src/libvmon/defs/proc_wants.def
+++ b/src/libvmon/defs/proc_wants.def
@@ -1,7 +1,11 @@
#include "_begin.def"
-/* the available per-process wants, the order here matters, put wants which affect the sampling heirarchy first */
-/* otherwise they will change the heirarchy after samples have been collected, leaving newly introduced nodes with uninitialized sample stores after return from vmon_sample() */
+/* the available per-process wants, the order here matters, put wants which affect the sampling hierarchy first */
+/* otherwise they will change the hierarchy after samples have been collected, leaving newly introduced nodes with uninitialized sample stores after return from vmon_sample() */
+/* also PROC_FOLLOW_THREADS must be the last thing before the sampling wants, because those get skipped
+ * if VMON_FLAG_NEGLECT_THREADS is set even when following threaads, and that's done by skipping wants
+ * greater than VMON_FLAG_NEGLECT_THREADS for threads at sample time.
+ */
/* sym, name, internal fulfilllment function */
vmon_want(PROC_FOLLOW_CHILDREN, proc_follow_children, proc_follow_children)
© All Rights Reserved