From 27a4c019194d1fa23e23ba8026383b2ac186a597 Mon Sep 17 00:00:00 2001 From: Andris Zeila Date: Fri, 7 Aug 2015 11:00:24 +0000 Subject: ...G...... [ZBXNEXT-494] optimized proc.cpu.util code by reducing the number of times the procfs is scanned --- include/sysinfo.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/sysinfo.h') 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 -- cgit v1.2.3