X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Fregression%2Ftools%2Fhealth%2Fhealth_stall.c;h=c88e5742a30b08ec6cac328e0ff5de742986a9c1;hb=HEAD;hp=e89966315446eff2b835d9a4338bef2a955b9088;hpb=4bd69c5f1161cd065f487da0f4c1aa03a73c47e4;p=lttng-tools.git diff --git a/tests/regression/tools/health/health_stall.c b/tests/regression/tools/health/health_stall.c index e89966315..c88e5742a 100644 --- a/tests/regression/tools/health/health_stall.c +++ b/tests/regression/tools/health/health_stall.c @@ -7,9 +7,10 @@ */ #include + +#include #include #include -#include #include #include @@ -19,8 +20,7 @@ * Check if the specified environment variable is set. * Return 1 if set, otherwise 0. */ -static -int check_env_var(const char *env) +static int check_env_var(const char *env) { if (env) { char *env_val = getenv(env); @@ -32,8 +32,7 @@ int check_env_var(const char *env) return 0; } -static -void do_stall(void) +static void do_stall(void) { unsigned int sleep_time = STALL_TIME; @@ -104,18 +103,6 @@ int __testpoint_sessiond_thread_manage_consumer(void) return 0; } -LTTNG_EXPORT int __testpoint_sessiond_thread_ht_cleanup(void); -int __testpoint_sessiond_thread_ht_cleanup(void) -{ - const char *var = "LTTNG_SESSIOND_THREAD_HT_CLEANUP_STALL"; - - if (check_env_var(var)) { - do_stall(); - } - - return 0; -} - LTTNG_EXPORT int __testpoint_sessiond_thread_app_manage_notify(void); int __testpoint_sessiond_thread_app_manage_notify(void) {