*/
lttng_poll_init(&events);
- if (testpoint(thread_manage_kernel)) {
+ if (testpoint(sessiond_thread_manage_kernel)) {
goto error_testpoint;
}
health_code_update();
- if (testpoint(thread_manage_kernel_before_loop)) {
+ if (testpoint(sessiond_thread_manage_kernel_before_loop)) {
goto error_testpoint;
}
restart:
health_poll_entry();
- if (testpoint(thread_manage_consumer)) {
+ if (testpoint(sessiond_thread_manage_consumer)) {
goto error;
}
health_register(health_sessiond, HEALTH_SESSIOND_TYPE_APP_MANAGE);
- if (testpoint(thread_manage_apps)) {
+ if (testpoint(sessiond_thread_manage_apps)) {
goto error_testpoint;
}
goto error;
}
- if (testpoint(thread_manage_apps_before_loop)) {
+ if (testpoint(sessiond_thread_manage_apps_before_loop)) {
goto error;
}
health_register(health_sessiond, HEALTH_SESSIOND_TYPE_APP_REG);
- if (testpoint(thread_registration_apps)) {
+ if (testpoint(sessiond_thread_registration_apps)) {
goto error_testpoint;
}
health_register(health_sessiond, HEALTH_SESSIOND_TYPE_CMD);
- if (testpoint(thread_manage_clients)) {
+ if (testpoint(sessiond_thread_manage_clients)) {
goto error_testpoint;
}
kill(child_ppid, SIGUSR1);
}
- if (testpoint(thread_manage_clients_before_loop)) {
+ if (testpoint(sessiond_thread_manage_clients_before_loop)) {
goto error;
}
#include <common/testpoint/testpoint.h>
/* Testpoints, internal use only */
-TESTPOINT_DECL(thread_manage_clients);
-TESTPOINT_DECL(thread_manage_clients_before_loop);
-TESTPOINT_DECL(thread_registration_apps);
-TESTPOINT_DECL(thread_manage_apps);
-TESTPOINT_DECL(thread_manage_apps_before_loop);
-TESTPOINT_DECL(thread_manage_kernel);
-TESTPOINT_DECL(thread_manage_kernel_before_loop);
-TESTPOINT_DECL(thread_manage_consumer);
+TESTPOINT_DECL(sessiond_thread_manage_clients);
+TESTPOINT_DECL(sessiond_thread_manage_clients_before_loop);
+TESTPOINT_DECL(sessiond_thread_registration_apps);
+TESTPOINT_DECL(sessiond_thread_manage_apps);
+TESTPOINT_DECL(sessiond_thread_manage_apps_before_loop);
+TESTPOINT_DECL(sessiond_thread_manage_kernel);
+TESTPOINT_DECL(sessiond_thread_manage_kernel_before_loop);
+TESTPOINT_DECL(sessiond_thread_manage_consumer);
#endif /* SESSIOND_TESTPOINT_H */
return 0;
}
-int __testpoint_thread_manage_clients(void)
+int __testpoint_sessiond_thread_manage_clients(void)
{
- const char *var = "LTTNG_THREAD_MANAGE_CLIENTS_EXIT";
+ const char *var = "LTTNG_SESSIOND_THREAD_MANAGE_CLIENTS_EXIT";
if (check_env_var(var)) {
rcu_unregister_thread();
return 0;
}
-int __testpoint_thread_registration_apps(void)
+int __testpoint_sessiond_thread_registration_apps(void)
{
- const char *var = "LTTNG_THREAD_REG_APPS_EXIT";
+ const char *var = "LTTNG_SESSIOND_THREAD_REG_APPS_EXIT";
if (check_env_var(var)) {
pthread_exit(NULL);
return 0;
}
-int __testpoint_thread_manage_apps(void)
+int __testpoint_sessiond_thread_manage_apps(void)
{
- const char *var = "LTTNG_THREAD_MANAGE_APPS_EXIT";
+ const char *var = "LTTNG_SESSIOND_THREAD_MANAGE_APPS_EXIT";
if (check_env_var(var)) {
rcu_unregister_thread();
return 0;
}
-int __testpoint_thread_manage_kernel(void)
+int __testpoint_sessiond_thread_manage_kernel(void)
{
- const char *var = "LTTNG_THREAD_MANAGE_KERNEL_EXIT";
+ const char *var = "LTTNG_SESSIOND_THREAD_MANAGE_KERNEL_EXIT";
if (check_env_var(var)) {
pthread_exit(NULL);
return 0;
}
-int __testpoint_thread_manage_consumer(void)
+int __testpoint_sessiond_thread_manage_consumer(void)
{
- const char *var = "LTTNG_THREAD_MANAGE_CONSUMER_EXIT";
+ const char *var = "LTTNG_SESSIOND_THREAD_MANAGE_CONSUMER_EXIT";
if (check_env_var(var)) {
pthread_exit(NULL);
return 0;
}
-int __testpoint_thread_manage_clients(void)
+int __testpoint_sessiond_thread_manage_clients(void)
{
- const char *var = "LTTNG_THREAD_MANAGE_CLIENTS_TP_FAIL";
+ const char *var = "LTTNG_SESSIOND_THREAD_MANAGE_CLIENTS_TP_FAIL";
if (check_env_var(var)) {
return 1;
return 0;
}
-int __testpoint_thread_manage_apps(void)
+int __testpoint_sessiond_thread_manage_apps(void)
{
- const char *var = "LTTNG_THREAD_MANAGE_APPS_TP_FAIL";
+ const char *var = "LTTNG_SESSIOND_THREAD_MANAGE_APPS_TP_FAIL";
if (check_env_var(var)) {
return 1;
return 0;
}
-int __testpoint_thread_manage_kernel(void)
+int __testpoint_sessiond_thread_manage_kernel(void)
{
- const char *var = "LTTNG_THREAD_MANAGE_KERNEL_TP_FAIL";
+ const char *var = "LTTNG_SESSIOND_THREAD_MANAGE_KERNEL_TP_FAIL";
if (check_env_var(var)) {
return 1;
return 0;
}
-int __testpoint_thread_manage_clients_before_loop(void)
+int __testpoint_sessiond_thread_manage_clients_before_loop(void)
{
- const char *var = "LTTNG_THREAD_MANAGE_CLIENTS_STALL";
+ const char *var = "LTTNG_SESSIOND_THREAD_MANAGE_CLIENTS_STALL";
if (check_env_var(var)) {
unsigned int sleep_time = STALL_TIME;
return 0;
}
-int __testpoint_thread_manage_kernel_before_loop(void)
+int __testpoint_sessiond_thread_manage_kernel_before_loop(void)
{
- const char *var = "LTTNG_THREAD_MANAGE_KERNEL_STALL";
+ const char *var = "LTTNG_SESSIOND_THREAD_MANAGE_KERNEL_STALL";
if (check_env_var(var)) {
unsigned int sleep_time = STALL_TIME;
return 0;
}
-int __testpoint_thread_manage_apps_before_loop(void)
+int __testpoint_sessiond_thread_manage_apps_before_loop(void)
{
- const char *var = "LTTNG_THREAD_MANAGE_APPS_STALL";
+ const char *var = "LTTNG_SESSIOND_THREAD_MANAGE_APPS_STALL";
if (check_env_var(var)) {
unsigned int sleep_time = STALL_TIME;
print_test_banner "$TEST_DESC"
-THREAD=("LTTNG_THREAD_MANAGE_CLIENTS"
- "LTTNG_THREAD_MANAGE_APPS"
- "LTTNG_THREAD_REG_APPS")
+THREAD=("LTTNG_SESSIOND_THREAD_MANAGE_CLIENTS"
+ "LTTNG_SESSIOND_THREAD_MANAGE_APPS"
+ "LTTNG_SESSIOND_THREAD_REG_APPS")
ERROR_STRING=(
"Thread \"Session daemon command\" is not responding in component \"sessiond\"."
isroot=0
fi
-skip $isroot "Root access is needed. Skipping LTTNG_THREAD_MANAGE_KERNEL tests." "3" ||
+skip $isroot "Root access is needed. Skipping LTTNG_SESSIOND_THREAD_MANAGE_KERNEL tests." "3" ||
{
- test_thread_exit "LTTNG_THREAD_MANAGE_KERNEL" "Thread \"Session daemon kernel\" is not responding in component \"sessiond\"."
+ test_thread_exit "LTTNG_SESSIOND_THREAD_MANAGE_KERNEL" "Thread \"Session daemon kernel\" is not responding in component \"sessiond\"."
}
rm -f ${STDOUT_PATH}
rm -f ${STDERR_PATH}
# TODO: Special case manage consumer, need to spawn consumer via commands.
-#"LTTNG_THREAD_MANAGE_CONSUMER"
+#"LTTNG_SESSIOND_THREAD_MANAGE_CONSUMER"
print_test_banner "$TEST_DESC"
-THREAD=("LTTNG_THREAD_MANAGE_CLIENTS"
- "LTTNG_THREAD_MANAGE_APPS"
+THREAD=("LTTNG_SESSIOND_THREAD_MANAGE_CLIENTS"
+ "LTTNG_SESSIOND_THREAD_MANAGE_APPS"
# This thread is a little bit tricky to stall,
# need to send some commands and setup an app.
-# "LTTNG_THREAD_REG_APPS"
+# "LTTNG_SESSIOND_THREAD_REG_APPS"
)
ERROR_STRING=(
isroot=0
fi
-skip $isroot "Root access is needed. Skipping LTTNG_THREAD_MANAGE_KERNEL tests." "4" ||
+skip $isroot "Root access is needed. Skipping LTTNG_SESSIOND_THREAD_MANAGE_KERNEL tests." "4" ||
{
- test_thread_stall "LTTNG_THREAD_MANAGE_KERNEL" "Thread \"Session daemon kernel\" is not responding in component \"sessiond\"."
+ test_thread_stall "LTTNG_SESSIOND_THREAD_MANAGE_KERNEL" "Thread \"Session daemon kernel\" is not responding in component \"sessiond\"."
}
rm -f ${STDOUT_PATH}
print_test_banner "$TEST_DESC"
-THREAD=("LTTNG_THREAD_MANAGE_CLIENTS"
- "LTTNG_THREAD_MANAGE_APPS")
+THREAD=("LTTNG_SESSIOND_THREAD_MANAGE_CLIENTS"
+ "LTTNG_SESSIOND_THREAD_MANAGE_APPS")
ERROR_STRING=(
"Thread \"Session daemon command\" is not responding in component \"sessiond\"."
isroot=0
fi
-skip $isroot "Root access is needed. Skipping LTTNG_THREAD_MANAGE_KERNEL tests." "3" ||
+skip $isroot "Root access is needed. Skipping LTTNG_SESSIOND_THREAD_MANAGE_KERNEL tests." "3" ||
{
- test_tp_fail "LTTNG_THREAD_MANAGE_KERNEL" "Thread \"Session daemon kernel\" is not responding in component \"sessiond\"."
+ test_tp_fail "LTTNG_SESSIOND_THREAD_MANAGE_KERNEL" "Thread \"Session daemon kernel\" is not responding in component \"sessiond\"."
}
rm -f ${STDOUT_PATH}
rm -f ${STDERR_PATH}
# TODO: Special case manage consumer, need to spawn consumer via commands.
-#"LTTNG_THREAD_MANAGE_CONSUMER"
+#"LTTNG_SESSIOND_THREAD_MANAGE_CONSUMER"