diff options
author | Andris Zeila <andris.zeila@zabbix.com> | 2015-08-07 14:00:24 +0300 |
---|---|---|
committer | Andris Zeila <andris.zeila@zabbix.com> | 2015-08-07 14:00:24 +0300 |
commit | 27a4c019194d1fa23e23ba8026383b2ac186a597 (patch) | |
tree | 6b14b3b9004e378b93dd44288a437f81e465c672 /include | |
parent | 32b6e9f6e40c7d91eb81cf67e7c7dd0022991246 (diff) |
...G...... [ZBXNEXT-494] optimized proc.cpu.util code by reducing the number of times the procfs is scanned
Diffstat (limited to 'include')
-rw-r--r-- | include/sysinfo.h | 7 |
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 |