2 * Copyright (C) 2012 Christian Babeux <christian.babeux@efficios.com>
3 * Copyright (C) 2014 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
5 * SPDX-License-Identifier: GPL-2.0-only
15 * Check if the specified environment variable is set.
16 * Return 1 if set, otherwise 0.
19 int check_env_var(const char *env
)
22 char *env_val
= getenv(env
);
23 if (env_val
&& (strncmp(env_val
, "1", 1) == 0)) {
33 int __testpoint_sessiond_thread_manage_clients(void);
34 int __testpoint_sessiond_thread_manage_clients(void)
36 const char *var
= "LTTNG_SESSIOND_THREAD_MANAGE_CLIENTS_TP_FAIL";
38 if (check_env_var(var
)) {
45 int __testpoint_sessiond_thread_registration_apps(void);
46 int __testpoint_sessiond_thread_registration_apps(void)
48 const char *var
= "LTTNG_SESSIOND_THREAD_REG_APPS_TP_FAIL";
50 if (check_env_var(var
)) {
57 int __testpoint_sessiond_thread_manage_apps(void);
58 int __testpoint_sessiond_thread_manage_apps(void)
60 const char *var
= "LTTNG_SESSIOND_THREAD_MANAGE_APPS_TP_FAIL";
62 if (check_env_var(var
)) {
69 int __testpoint_sessiond_thread_manage_kernel(void);
70 int __testpoint_sessiond_thread_manage_kernel(void)
72 const char *var
= "LTTNG_SESSIOND_THREAD_MANAGE_KERNEL_TP_FAIL";
74 if (check_env_var(var
)) {
81 int __testpoint_sessiond_thread_manage_consumer(void);
82 int __testpoint_sessiond_thread_manage_consumer(void)
84 const char *var
= "LTTNG_SESSIOND_THREAD_MANAGE_CONSUMER_TP_FAIL";
86 if (check_env_var(var
)) {
93 int __testpoint_sessiond_thread_ht_cleanup(void);
94 int __testpoint_sessiond_thread_ht_cleanup(void)
96 const char *var
= "LTTNG_SESSIOND_THREAD_HT_CLEANUP_TP_FAIL";
98 if (check_env_var(var
)) {
105 int __testpoint_sessiond_thread_app_manage_notify(void);
106 int __testpoint_sessiond_thread_app_manage_notify(void)
108 const char *var
= "LTTNG_SESSIOND_THREAD_APP_MANAGE_NOTIFY_TP_FAIL";
110 if (check_env_var(var
)) {
117 int __testpoint_sessiond_thread_app_reg_dispatch(void);
118 int __testpoint_sessiond_thread_app_reg_dispatch(void)
120 const char *var
= "LTTNG_SESSIOND_THREAD_APP_REG_DISPATCH_TP_FAIL";
122 if (check_env_var(var
)) {
129 /* Consumer daemon */
131 int __testpoint_consumerd_thread_channel(void);
132 int __testpoint_consumerd_thread_channel(void)
134 const char *var
= "LTTNG_CONSUMERD_THREAD_CHANNEL_TP_FAIL";
136 if (check_env_var(var
)) {
143 int __testpoint_consumerd_thread_metadata(void);
144 int __testpoint_consumerd_thread_metadata(void)
146 const char *var
= "LTTNG_CONSUMERD_THREAD_METADATA_TP_FAIL";
148 if (check_env_var(var
)) {
155 int __testpoint_consumerd_thread_data(void);
156 int __testpoint_consumerd_thread_data(void)
158 const char *var
= "LTTNG_CONSUMERD_THREAD_DATA_TP_FAIL";
160 if (check_env_var(var
)) {
167 int __testpoint_consumerd_thread_sessiond(void);
168 int __testpoint_consumerd_thread_sessiond(void)
170 const char *var
= "LTTNG_CONSUMERD_THREAD_SESSIOND_TP_FAIL";
172 if (check_env_var(var
)) {
179 int __testpoint_consumerd_thread_metadata_timer(void);
180 int __testpoint_consumerd_thread_metadata_timer(void)
182 const char *var
= "LTTNG_CONSUMERD_THREAD_METADATA_TIMER_TP_FAIL";
184 if (check_env_var(var
)) {
193 int __testpoint_relayd_thread_dispatcher(void);
194 int __testpoint_relayd_thread_dispatcher(void)
196 const char *var
= "LTTNG_RELAYD_THREAD_DISPATCHER_TP_FAIL";
198 if (check_env_var(var
)) {
205 int __testpoint_relayd_thread_worker(void);
206 int __testpoint_relayd_thread_worker(void)
208 const char *var
= "LTTNG_RELAYD_THREAD_WORKER_TP_FAIL";
210 if (check_env_var(var
)) {
217 int __testpoint_relayd_thread_listener(void);
218 int __testpoint_relayd_thread_listener(void)
220 const char *var
= "LTTNG_RELAYD_THREAD_LISTENER_TP_FAIL";
222 if (check_env_var(var
)) {
229 int __testpoint_relayd_thread_live_dispatcher(void);
230 int __testpoint_relayd_thread_live_dispatcher(void)
232 const char *var
= "LTTNG_RELAYD_THREAD_LIVE_DISPATCHER_TP_FAIL";
234 if (check_env_var(var
)) {
241 int __testpoint_relayd_thread_live_worker(void);
242 int __testpoint_relayd_thread_live_worker(void)
244 const char *var
= "LTTNG_RELAYD_THREAD_LIVE_WORKER_TP_FAIL";
246 if (check_env_var(var
)) {
253 int __testpoint_relayd_thread_live_listener(void);
254 int __testpoint_relayd_thread_live_listener(void)
256 const char *var
= "LTTNG_RELAYD_THREAD_LIVE_LISTENER_TP_FAIL";
258 if (check_env_var(var
)) {
This page took 0.034393 seconds and 4 git commands to generate.