projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tests: Introduce test_ust_constructor
[lttng-tools.git]
/
tests
/
regression
/
tools
/
health
/
health_stall.c
diff --git
a/tests/regression/tools/health/health_stall.c
b/tests/regression/tools/health/health_stall.c
index 4439b736957cc9e46ea47e14ea8742903f3e5d0c..c88e5742a30b08ec6cac328e0ff5de742986a9c1 100644
(file)
--- a/
tests/regression/tools/health/health_stall.c
+++ b/
tests/regression/tools/health/health_stall.c
@@
-6,9
+6,11
@@
*
*/
*
*/
+#include <lttng/lttng-export.h>
+
+#include <pthread.h>
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>
-#include <pthread.h>
#include <unistd.h>
#include <urcu.h>
#include <unistd.h>
#include <urcu.h>
@@
-18,8
+20,7
@@
* Check if the specified environment variable is set.
* Return 1 if set, otherwise 0.
*/
* 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);
{
if (env) {
char *env_val = getenv(env);
@@
-31,8
+32,7
@@
int check_env_var(const char *env)
return 0;
}
return 0;
}
-static
-void do_stall(void)
+static void do_stall(void)
{
unsigned int sleep_time = STALL_TIME;
{
unsigned int sleep_time = STALL_TIME;
@@
-43,6
+43,7
@@
void do_stall(void)
/* Session daemon */
/* Session daemon */
+LTTNG_EXPORT int __testpoint_sessiond_thread_manage_clients(void);
int __testpoint_sessiond_thread_manage_clients(void)
{
const char *var = "LTTNG_SESSIOND_THREAD_MANAGE_CLIENTS_STALL";
int __testpoint_sessiond_thread_manage_clients(void)
{
const char *var = "LTTNG_SESSIOND_THREAD_MANAGE_CLIENTS_STALL";
@@
-54,6
+55,7
@@
int __testpoint_sessiond_thread_manage_clients(void)
return 0;
}
return 0;
}
+LTTNG_EXPORT int __testpoint_sessiond_thread_registration_apps(void);
int __testpoint_sessiond_thread_registration_apps(void)
{
const char *var = "LTTNG_SESSIOND_THREAD_REG_APPS_STALL";
int __testpoint_sessiond_thread_registration_apps(void)
{
const char *var = "LTTNG_SESSIOND_THREAD_REG_APPS_STALL";
@@
-65,6
+67,7
@@
int __testpoint_sessiond_thread_registration_apps(void)
return 0;
}
return 0;
}
+LTTNG_EXPORT int __testpoint_sessiond_thread_manage_apps(void);
int __testpoint_sessiond_thread_manage_apps(void)
{
const char *var = "LTTNG_SESSIOND_THREAD_MANAGE_APPS_STALL";
int __testpoint_sessiond_thread_manage_apps(void)
{
const char *var = "LTTNG_SESSIOND_THREAD_MANAGE_APPS_STALL";
@@
-76,6
+79,7
@@
int __testpoint_sessiond_thread_manage_apps(void)
return 0;
}
return 0;
}
+LTTNG_EXPORT int __testpoint_sessiond_thread_manage_kernel(void);
int __testpoint_sessiond_thread_manage_kernel(void)
{
const char *var = "LTTNG_SESSIOND_THREAD_MANAGE_KERNEL_STALL";
int __testpoint_sessiond_thread_manage_kernel(void)
{
const char *var = "LTTNG_SESSIOND_THREAD_MANAGE_KERNEL_STALL";
@@
-87,6
+91,7
@@
int __testpoint_sessiond_thread_manage_kernel(void)
return 0;
}
return 0;
}
+LTTNG_EXPORT int __testpoint_sessiond_thread_manage_consumer(void);
int __testpoint_sessiond_thread_manage_consumer(void)
{
const char *var = "LTTNG_SESSIOND_THREAD_MANAGE_CONSUMER_STALL";
int __testpoint_sessiond_thread_manage_consumer(void)
{
const char *var = "LTTNG_SESSIOND_THREAD_MANAGE_CONSUMER_STALL";
@@
-98,17
+103,7
@@
int __testpoint_sessiond_thread_manage_consumer(void)
return 0;
}
return 0;
}
-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)
{
const char *var = "LTTNG_SESSIOND_THREAD_APP_MANAGE_NOTIFY_STALL";
int __testpoint_sessiond_thread_app_manage_notify(void)
{
const char *var = "LTTNG_SESSIOND_THREAD_APP_MANAGE_NOTIFY_STALL";
@@
-120,6
+115,7
@@
int __testpoint_sessiond_thread_app_manage_notify(void)
return 0;
}
return 0;
}
+LTTNG_EXPORT int __testpoint_sessiond_thread_app_reg_dispatch(void);
int __testpoint_sessiond_thread_app_reg_dispatch(void)
{
const char *var = "LTTNG_SESSIOND_THREAD_APP_REG_DISPATCH_STALL";
int __testpoint_sessiond_thread_app_reg_dispatch(void)
{
const char *var = "LTTNG_SESSIOND_THREAD_APP_REG_DISPATCH_STALL";
@@
-133,6
+129,7
@@
int __testpoint_sessiond_thread_app_reg_dispatch(void)
/* Consumer daemon */
/* Consumer daemon */
+LTTNG_EXPORT int __testpoint_consumerd_thread_channel(void);
int __testpoint_consumerd_thread_channel(void)
{
const char *var = "LTTNG_CONSUMERD_THREAD_CHANNEL_STALL";
int __testpoint_consumerd_thread_channel(void)
{
const char *var = "LTTNG_CONSUMERD_THREAD_CHANNEL_STALL";
@@
-144,6
+141,7
@@
int __testpoint_consumerd_thread_channel(void)
return 0;
}
return 0;
}
+LTTNG_EXPORT int __testpoint_consumerd_thread_metadata(void);
int __testpoint_consumerd_thread_metadata(void)
{
const char *var = "LTTNG_CONSUMERD_THREAD_METADATA_STALL";
int __testpoint_consumerd_thread_metadata(void)
{
const char *var = "LTTNG_CONSUMERD_THREAD_METADATA_STALL";
@@
-155,6
+153,7
@@
int __testpoint_consumerd_thread_metadata(void)
return 0;
}
return 0;
}
+LTTNG_EXPORT int __testpoint_consumerd_thread_data(void);
int __testpoint_consumerd_thread_data(void)
{
const char *var = "LTTNG_CONSUMERD_THREAD_DATA_STALL";
int __testpoint_consumerd_thread_data(void)
{
const char *var = "LTTNG_CONSUMERD_THREAD_DATA_STALL";
@@
-166,6
+165,7
@@
int __testpoint_consumerd_thread_data(void)
return 0;
}
return 0;
}
+LTTNG_EXPORT int __testpoint_consumerd_thread_sessiond(void);
int __testpoint_consumerd_thread_sessiond(void)
{
const char *var = "LTTNG_CONSUMERD_THREAD_SESSIOND_STALL";
int __testpoint_consumerd_thread_sessiond(void)
{
const char *var = "LTTNG_CONSUMERD_THREAD_SESSIOND_STALL";
@@
-177,6
+177,7
@@
int __testpoint_consumerd_thread_sessiond(void)
return 0;
}
return 0;
}
+LTTNG_EXPORT int __testpoint_consumerd_thread_metadata_timer(void);
int __testpoint_consumerd_thread_metadata_timer(void)
{
const char *var = "LTTNG_CONSUMERD_THREAD_METADATA_TIMER_STALL";
int __testpoint_consumerd_thread_metadata_timer(void)
{
const char *var = "LTTNG_CONSUMERD_THREAD_METADATA_TIMER_STALL";
@@
-190,6
+191,7
@@
int __testpoint_consumerd_thread_metadata_timer(void)
/* Relay daemon */
/* Relay daemon */
+LTTNG_EXPORT int __testpoint_relayd_thread_dispatcher(void);
int __testpoint_relayd_thread_dispatcher(void)
{
const char *var = "LTTNG_RELAYD_THREAD_DISPATCHER_STALL";
int __testpoint_relayd_thread_dispatcher(void)
{
const char *var = "LTTNG_RELAYD_THREAD_DISPATCHER_STALL";
@@
-201,6
+203,7
@@
int __testpoint_relayd_thread_dispatcher(void)
return 0;
}
return 0;
}
+LTTNG_EXPORT int __testpoint_relayd_thread_worker(void);
int __testpoint_relayd_thread_worker(void)
{
const char *var = "LTTNG_RELAYD_THREAD_WORKER_STALL";
int __testpoint_relayd_thread_worker(void)
{
const char *var = "LTTNG_RELAYD_THREAD_WORKER_STALL";
@@
-212,6
+215,7
@@
int __testpoint_relayd_thread_worker(void)
return 0;
}
return 0;
}
+LTTNG_EXPORT int __testpoint_relayd_thread_listener(void);
int __testpoint_relayd_thread_listener(void)
{
const char *var = "LTTNG_RELAYD_THREAD_LISTENER_STALL";
int __testpoint_relayd_thread_listener(void)
{
const char *var = "LTTNG_RELAYD_THREAD_LISTENER_STALL";
@@
-223,6
+227,7
@@
int __testpoint_relayd_thread_listener(void)
return 0;
}
return 0;
}
+LTTNG_EXPORT int __testpoint_relayd_thread_live_dispatcher(void);
int __testpoint_relayd_thread_live_dispatcher(void)
{
const char *var = "LTTNG_RELAYD_THREAD_LIVE_DISPATCHER_STALL";
int __testpoint_relayd_thread_live_dispatcher(void)
{
const char *var = "LTTNG_RELAYD_THREAD_LIVE_DISPATCHER_STALL";
@@
-234,6
+239,7
@@
int __testpoint_relayd_thread_live_dispatcher(void)
return 0;
}
return 0;
}
+LTTNG_EXPORT int __testpoint_relayd_thread_live_worker(void);
int __testpoint_relayd_thread_live_worker(void)
{
const char *var = "LTTNG_RELAYD_THREAD_LIVE_WORKER_STALL";
int __testpoint_relayd_thread_live_worker(void)
{
const char *var = "LTTNG_RELAYD_THREAD_LIVE_WORKER_STALL";
@@
-245,6
+251,7
@@
int __testpoint_relayd_thread_live_worker(void)
return 0;
}
return 0;
}
+LTTNG_EXPORT int __testpoint_relayd_thread_live_listener(void);
int __testpoint_relayd_thread_live_listener(void)
{
const char *var = "LTTNG_RELAYD_THREAD_LIVE_LISTENER_STALL";
int __testpoint_relayd_thread_live_listener(void)
{
const char *var = "LTTNG_RELAYD_THREAD_LIVE_LISTENER_STALL";
This page took
0.025713 seconds
and
4
git commands to generate.