Skip to content

Commit

Permalink
timex is not supported on windows. (netdata#17443)
Browse files Browse the repository at this point in the history
  • Loading branch information
vkalintiris authored Apr 19, 2024
1 parent b14deec commit e96e724
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 11 deletions.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1283,7 +1283,6 @@ set(NETDATA_FILES
${CLAIM_PLUGIN_FILES}
${SPAWN_PLUGIN_FILES}
${ACLK_ALWAYS_BUILD}
${TIMEX_PLUGIN_FILES}
${PROFILE_PLUGIN_FILES}
)

Expand All @@ -1294,6 +1293,7 @@ if(LINUX)
${DISKSPACE_PLUGIN_FILES}
${PROC_PLUGIN_FILES}
${TC_PLUGIN_FILES}
${TIMEX_PLUGIN_FILES}
)

if(ENABLE_SENTRY)
Expand All @@ -1305,11 +1305,13 @@ elseif(MACOS)
list(APPEND NETDATA_FILES
src/daemon/static_threads_macos.c
${MACOS_PLUGIN_FILES}
${TIMEX_PLUGIN_FILES}
)
elseif(FREEBSD)
list(APPEND NETDATA_FILES
src/daemon/static_threads_freebsd.c
${FREEBSD_PLUGIN_FILES}
${TIMEX_PLUGIN_FILES}
)
endif()

Expand Down
10 changes: 0 additions & 10 deletions src/daemon/static_threads.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,12 @@ void *health_main(void *ptr);
void *pluginsd_main(void *ptr);
void *service_main(void *ptr);
void *statsd_main(void *ptr);
void *timex_main(void *ptr);
void *profile_main(void *ptr);
void *replication_thread_main(void *ptr);

extern bool global_statistics_enabled;

const struct netdata_static_thread static_threads_common[] = {
{
.name = "P[timex]",
.config_section = CONFIG_SECTION_PLUGINS,
.config_name = "timex",
.enabled = 1,
.thread = NULL,
.init_routine = NULL,
.start_routine = timex_main
},
{
.name = "P[idlejitter]",
.config_section = CONFIG_SECTION_PLUGINS,
Expand Down
10 changes: 10 additions & 0 deletions src/daemon/static_threads_freebsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "common.h"

extern void *freebsd_main(void *ptr);
extern void *timex_main(void *ptr);

const struct netdata_static_thread static_threads_freebsd[] = {
{
Expand All @@ -14,6 +15,15 @@ const struct netdata_static_thread static_threads_freebsd[] = {
.init_routine = NULL,
.start_routine = freebsd_main
},
{
.name = "P[timex]",
.config_section = CONFIG_SECTION_PLUGINS,
.config_name = "timex",
.enabled = 1,
.thread = NULL,
.init_routine = NULL,
.start_routine = timex_main
},

{NULL, NULL, NULL, 0, NULL, NULL, NULL}
};
Expand Down
9 changes: 9 additions & 0 deletions src/daemon/static_threads_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ const struct netdata_static_thread static_threads_linux[] = {
.init_routine = NULL,
.start_routine = cgroups_main
},
{
.name = "P[timex]",
.config_section = CONFIG_SECTION_PLUGINS,
.config_name = "timex",
.enabled = 1,
.thread = NULL,
.init_routine = NULL,
.start_routine = timex_main
},

// terminator
{
Expand Down
10 changes: 10 additions & 0 deletions src/daemon/static_threads_macos.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,18 @@
#include "common.h"

extern void *macos_main(void *ptr);
extern void *timex_main(void *ptr);

const struct netdata_static_thread static_threads_macos[] = {
{
.name = "P[timex]",
.config_section = CONFIG_SECTION_PLUGINS,
.config_name = "timex",
.enabled = 1,
.thread = NULL,
.init_routine = NULL,
.start_routine = timex_main
},
{
.name = "P[macos]",
.config_section = CONFIG_SECTION_PLUGINS,
Expand Down

0 comments on commit e96e724

Please sign in to comment.