diff options
Diffstat (limited to 'src/libs/zbxsysinfo/aix/cpu.c')
-rw-r--r-- | src/libs/zbxsysinfo/aix/cpu.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/libs/zbxsysinfo/aix/cpu.c b/src/libs/zbxsysinfo/aix/cpu.c index 940313474de..5383bb8ab91 100644 --- a/src/libs/zbxsysinfo/aix/cpu.c +++ b/src/libs/zbxsysinfo/aix/cpu.c @@ -18,6 +18,7 @@ **/ #include "zbxsysinfo.h" +#include "../sysinfo.h" #include "log.h" #include "zbxnum.h" @@ -25,7 +26,7 @@ #include <sys/dr.h> #include "stats.h" -int SYSTEM_CPU_NUM(AGENT_REQUEST *request, AGENT_RESULT *result) +int system_cpu_num(AGENT_REQUEST *request, AGENT_RESULT *result) { #ifdef HAVE_LIBPERFSTAT char *tmp; @@ -62,7 +63,7 @@ int SYSTEM_CPU_NUM(AGENT_REQUEST *request, AGENT_RESULT *result) #endif } -int SYSTEM_CPU_UTIL(AGENT_REQUEST *request, AGENT_RESULT *result) +int system_cpu_util(AGENT_REQUEST *request, AGENT_RESULT *result) { char *tmp; int cpu_num, state, mode, res; @@ -140,7 +141,7 @@ int SYSTEM_CPU_UTIL(AGENT_REQUEST *request, AGENT_RESULT *result) return SYSINFO_RET_OK; } -int SYSTEM_CPU_LOAD(AGENT_REQUEST *request, AGENT_RESULT *result) +int system_cpu_load(AGENT_REQUEST *request, AGENT_RESULT *result) { #ifdef HAVE_LIBPERFSTAT #if !defined(SBITS) @@ -209,7 +210,7 @@ int SYSTEM_CPU_LOAD(AGENT_REQUEST *request, AGENT_RESULT *result) #endif } -int SYSTEM_CPU_SWITCHES(AGENT_REQUEST *request, AGENT_RESULT *result) +int system_cpu_switches(AGENT_REQUEST *request, AGENT_RESULT *result) { #ifdef HAVE_LIBPERFSTAT perfstat_cpu_total_t ps_cpu_total; @@ -234,7 +235,7 @@ int SYSTEM_CPU_SWITCHES(AGENT_REQUEST *request, AGENT_RESULT *result) #endif } -int SYSTEM_CPU_INTR(AGENT_REQUEST *request, AGENT_RESULT *result) +int system_cpu_intr(AGENT_REQUEST *request, AGENT_RESULT *result) { ZBX_UNUSED(request); #ifdef HAVE_LIBPERFSTAT |