diff options
author | vkalintiris <vasilis@netdata.cloud> | 2022-01-19 08:54:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-19 08:54:37 +0200 |
commit | 37082fcbc150619b54b2a64c3621afc617607adc (patch) | |
tree | c0a5559cd3c5f1abcda0c099de993273bcebaff5 /collectors/freebsd.plugin | |
parent | cc119e9e878959f155d38630c6d8e504d213383e (diff) |
Compute platform-specific list of static_threads at runtime. (#11955)
Compute array of static threads at runtime.
Diffstat (limited to 'collectors/freebsd.plugin')
-rw-r--r-- | collectors/freebsd.plugin/plugin_freebsd.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/collectors/freebsd.plugin/plugin_freebsd.h b/collectors/freebsd.plugin/plugin_freebsd.h index ab46080bed..26f76b6bf8 100644 --- a/collectors/freebsd.plugin/plugin_freebsd.h +++ b/collectors/freebsd.plugin/plugin_freebsd.h @@ -5,20 +5,6 @@ #include "daemon/common.h" -#if (TARGET_OS == OS_FREEBSD) - -#define NETDATA_PLUGIN_HOOK_FREEBSD \ - { \ - .name = "PLUGIN[freebsd]", \ - .config_section = CONFIG_SECTION_PLUGINS, \ - .config_name = "freebsd", \ - .enabled = 1, \ - .thread = NULL, \ - .init_routine = NULL, \ - .start_routine = freebsd_main \ - }, - - #include <sys/sysctl.h> #define KILO_FACTOR 1024 @@ -27,8 +13,6 @@ #define MAX_INT_DIGITS 10 // maximum number of digits for int -void *freebsd_main(void *ptr); - extern int freebsd_plugin_init(); extern int do_vm_loadavg(int update_every, usec_t dt); @@ -65,10 +49,4 @@ extern int do_kstat_zfs_misc_arcstats(int update_every, usec_t dt); extern int do_kstat_zfs_misc_zio_trim(int update_every, usec_t dt); extern int do_ipfw(int update_every, usec_t dt); -#else // (TARGET_OS == OS_FREEBSD) - -#define NETDATA_PLUGIN_HOOK_FREEBSD - -#endif // (TARGET_OS == OS_FREEBSD) - #endif /* NETDATA_PLUGIN_FREEBSD_H */ |