};
static int ps_pagefaults_ds_num = 2;
+#if HAVE_THREAD_INFO | KERNEL_LINUX
static char *config_keys[] =
{
"Process",
NULL
};
static int config_keys_num = 1;
+#endif
typedef struct procstat_entry_s
{
struct procstat_entry_s *instances;
} procstat_t;
+#if HAVE_THREAD_INFO | KERNEL_LINUX
static procstat_t *list_head_g = NULL;
+#endif
#if HAVE_THREAD_INFO
static mach_port_t port_host_self;
} /* while (pse != NULL) */
} /* for (ps = list_head_g; ps != NULL; ps = ps->next) */
}
-#endif /* HAVE_THREAD_INFO | KERNEL_LINUX */
static int ps_config (char *key, char *value)
{
return (0);
}
+#endif /* HAVE_THREAD_INFO | KERNEL_LINUX */
static void ps_init (void)
{
plugin_register ("ps_cputime", NULL, NULL, ps_cputime_write);
plugin_register ("ps_count", NULL, NULL, ps_count_write);
plugin_register ("ps_pagefaults", NULL, NULL, ps_pagefaults_write);
+#if HAVE_THREAD_INFO | KERNEL_LINUX
cf_register (MODULE_NAME, ps_config, config_keys, config_keys_num);
+#endif
}
#undef BUFSIZE