| 1 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 2 | |
| 3 | #include "common.h" |
| 4 | |
| 5 | void cgroups_main(void *ptr); |
| 6 | void proc_main(void *ptr); |
| 7 | void diskspace_main(void *ptr); |
| 8 | void tc_main(void *ptr); |
| 9 | void timex_main(void *ptr); |
| 10 | |
| 11 | static const struct netdata_static_thread static_threads_linux[] = { |
| 12 | { |
| 13 | .name = "P[tc]", |
| 14 | .config_section = CONFIG_SECTION_PLUGINS, |
| 15 | .config_name = "tc", |
| 16 | .enabled = 1, |
| 17 | .thread = NULL, |
| 18 | .init_routine = NULL, |
| 19 | .start_routine = tc_main |
| 20 | }, |
| 21 | { |
| 22 | .name = "P[diskspace]", |
| 23 | .config_section = CONFIG_SECTION_PLUGINS, |
| 24 | .config_name = "diskspace", |
| 25 | .enabled = 1, |
| 26 | .thread = NULL, |
| 27 | .init_routine = NULL, |
| 28 | .start_routine = diskspace_main |
| 29 | }, |
| 30 | { |
| 31 | .name = "P[proc]", |
| 32 | .config_section = CONFIG_SECTION_PLUGINS, |
| 33 | .config_name = "proc", |
| 34 | .enabled = 1, |
| 35 | .thread = NULL, |
| 36 | .init_routine = NULL, |
| 37 | .start_routine = proc_main |
| 38 | }, |
| 39 | { |
| 40 | .name = "P[cgroups]", |
| 41 | .config_section = CONFIG_SECTION_PLUGINS, |
| 42 | .config_name = "cgroups", |
| 43 | .enabled = 1, |
| 44 | .thread = NULL, |
| 45 | .init_routine = NULL, |
| 46 | .start_routine = cgroups_main |
| 47 | }, |
| 48 | { |
| 49 | .name = "P[timex]", |
| 50 | .config_section = CONFIG_SECTION_PLUGINS, |
| 51 | .config_name = "timex", |
| 52 | .enabled = 1, |
| 53 | .thread = NULL, |
| 54 | .init_routine = NULL, |
| 55 | .start_routine = timex_main |
| 56 | }, |
| 57 | |
| 58 | // terminator |
| 59 | { |
| 60 | .name = NULL, |
| 61 | .config_section = NULL, |
| 62 | .config_name = NULL, |
| 63 | .env_name = NULL, |
| 64 | .enabled = 0, |
| 65 | .thread = NULL, |
| 66 | .init_routine = NULL, |
| 67 | .start_routine = NULL |
| 68 | } |
| 69 | }; |
| 70 | |
| 71 | struct netdata_static_thread *static_threads_get() { |
| 72 | return static_threads_concat(static_threads_common, static_threads_linux); |
| 73 | } |