static_threads_linux.c 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. // SPDX-License-Identifier: GPL-3.0-or-later
  2. #include "common.h"
  3. extern void *cgroups_main(void *ptr);
  4. extern void *proc_main(void *ptr);
  5. extern void *diskspace_main(void *ptr);
  6. extern void *tc_main(void *ptr);
  7. extern void *timex_main(void *ptr);
  8. const struct netdata_static_thread static_threads_linux[] = {
  9. {
  10. .name = "PLUGIN[tc]",
  11. .config_section = CONFIG_SECTION_PLUGINS,
  12. .config_name = "tc",
  13. .enabled = 1,
  14. .thread = NULL,
  15. .init_routine = NULL,
  16. .start_routine = tc_main
  17. },
  18. {
  19. .name = "PLUGIN[diskspace]",
  20. .config_section = CONFIG_SECTION_PLUGINS,
  21. .config_name = "diskspace",
  22. .enabled = 1,
  23. .thread = NULL,
  24. .init_routine = NULL,
  25. .start_routine = diskspace_main
  26. },
  27. {
  28. .name = "PLUGIN[proc]",
  29. .config_section = CONFIG_SECTION_PLUGINS,
  30. .config_name = "proc",
  31. .enabled = 1,
  32. .thread = NULL,
  33. .init_routine = NULL,
  34. .start_routine = proc_main
  35. },
  36. {
  37. .name = "PLUGIN[cgroups]",
  38. .config_section = CONFIG_SECTION_PLUGINS,
  39. .config_name = "cgroups",
  40. .enabled = 1,
  41. .thread = NULL,
  42. .init_routine = NULL,
  43. .start_routine = cgroups_main
  44. },
  45. {NULL, NULL, NULL, 0, NULL, NULL, NULL}
  46. };
  47. const struct netdata_static_thread static_threads_freebsd[] = {
  48. {NULL, NULL, NULL, 0, NULL, NULL, NULL}
  49. };
  50. const struct netdata_static_thread static_threads_macos[] = {
  51. {NULL, NULL, NULL, 0, NULL, NULL, NULL}
  52. };
  53. struct netdata_static_thread *static_threads_get() {
  54. return static_threads_concat(static_threads_common, static_threads_linux);
  55. }