timex is not supported on windows. (#17443)
vkalintiris committed
Apr 19, 2024 at 11:26 UTC
e96e724aaf87d74c6379a428c1ddd31cb345de26
5 files changed
+32
-11
CMakeLists.txt
+3
-1
@@ -1283,7 +1283,6 @@ set(NETDATA_FILES
1283
${CLAIM_PLUGIN_FILES}
1284
${SPAWN_PLUGIN_FILES}
1285
${ACLK_ALWAYS_BUILD}
1286
- ${TIMEX_PLUGIN_FILES}
1286
${PROFILE_PLUGIN_FILES}
1287
)
1288
@@ -1294,6 +1293,7 @@ if(LINUX)
1293
${DISKSPACE_PLUGIN_FILES}
1294
${PROC_PLUGIN_FILES}
1295
${TC_PLUGIN_FILES}
1296
+ ${TIMEX_PLUGIN_FILES}
1297
)
1298
1299
if(ENABLE_SENTRY)
@@ -1305,11 +1305,13 @@ elseif(MACOS)
1305
list(APPEND NETDATA_FILES
1306
src/daemon/static_threads_macos.c
1307
${MACOS_PLUGIN_FILES}
1308
+ ${TIMEX_PLUGIN_FILES}
1309
)
1310
elseif(FREEBSD)
1311
list(APPEND NETDATA_FILES
1312
src/daemon/static_threads_freebsd.c
1313
${FREEBSD_PLUGIN_FILES}
1314
+ ${TIMEX_PLUGIN_FILES}
1315
)
1316
endif()
1317
src/daemon/static_threads.c
-10
@@ -12,22 +12,12 @@ void *health_main(void *ptr);
12
void *pluginsd_main(void *ptr);
13
void *service_main(void *ptr);
14
void *statsd_main(void *ptr);
15
-void *timex_main(void *ptr);
15
void *profile_main(void *ptr);
16
void *replication_thread_main(void *ptr);
17
18
extern bool global_statistics_enabled;
19
20
const struct netdata_static_thread static_threads_common[] = {
22
- {
23
- .name = "P[timex]",
24
- .config_section = CONFIG_SECTION_PLUGINS,
25
- .config_name = "timex",
26
- .enabled = 1,
27
- .thread = NULL,
28
- .init_routine = NULL,
29
- .start_routine = timex_main
30
- },
21
{
22
.name = "P[idlejitter]",
23
.config_section = CONFIG_SECTION_PLUGINS,
src/daemon/static_threads_freebsd.c
+10
@@ -3,6 +3,7 @@
3
#include "common.h"
4
5
extern void *freebsd_main(void *ptr);
6
+extern void *timex_main(void *ptr);
7
8
const struct netdata_static_thread static_threads_freebsd[] = {
9
{
@@ -14,6 +15,15 @@ const struct netdata_static_thread static_threads_freebsd[] = {
15
.init_routine = NULL,
16
.start_routine = freebsd_main
17
},
18
+ {
19
+ .name = "P[timex]",
20
+ .config_section = CONFIG_SECTION_PLUGINS,
21
+ .config_name = "timex",
22
+ .enabled = 1,
23
+ .thread = NULL,
24
+ .init_routine = NULL,
25
+ .start_routine = timex_main
26
+ },
27
28
{NULL, NULL, NULL, 0, NULL, NULL, NULL}
29
};
src/daemon/static_threads_linux.c
+9
@@ -45,6 +45,15 @@ const struct netdata_static_thread static_threads_linux[] = {
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
{
src/daemon/static_threads_macos.c
+10
@@ -3,8 +3,18 @@
3
#include "common.h"
4
5
extern void *macos_main(void *ptr);
6
+extern void *timex_main(void *ptr);
7
8
const struct netdata_static_thread static_threads_macos[] = {
9
+ {
10
+ .name = "P[timex]",
11
+ .config_section = CONFIG_SECTION_PLUGINS,
12
+ .config_name = "timex",
13
+ .enabled = 1,
14
+ .thread = NULL,
15
+ .init_routine = NULL,
16
+ .start_routine = timex_main
17
+ },
18
{
19
.name = "P[macos]",
20
.config_section = CONFIG_SECTION_PLUGINS,