Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndris Zeila <andris.zeila@zabbix.com>2015-08-07 14:00:24 +0300
committerAndris Zeila <andris.zeila@zabbix.com>2015-08-07 14:00:24 +0300
commit27a4c019194d1fa23e23ba8026383b2ac186a597 (patch)
tree6b14b3b9004e378b93dd44288a437f81e465c672 /include/sysinfo.h
parent32b6e9f6e40c7d91eb81cf67e7c7dd0022991246 (diff)
...G...... [ZBXNEXT-494] optimized proc.cpu.util code by reducing the number of times the procfs is scanned
Diffstat (limited to 'include/sysinfo.h')
-rw-r--r--include/sysinfo.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/sysinfo.h b/include/sysinfo.h
index 0d805422aac..7175d8a580d 100644
--- a/include/sysinfo.h
+++ b/include/sysinfo.h
@@ -276,4 +276,11 @@ typedef struct
}
MODE_FUNCTION;
+/* the fields used by proc queries */
+#define ZBX_SYSINFO_PROC_NONE 0x0000
+#define ZBX_SYSINFO_PROC_PID 0x0001
+#define ZBX_SYSINFO_PROC_NAME 0x0002
+#define ZBX_SYSINFO_PROC_CMDLINE 0x0004
+#define ZBX_SYSINFO_PROC_USER 0x0008
+
#endif