2994694fda1be8d2c818fc3c653ef617eebb0170
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
9 #include <lttng/lttng-export.h>
17 * Check if the specified environment variable is set.
18 * Return 1 if set, otherwise 0.
20 static int check_env_var(const char *env
)
23 char *env_val
= getenv(env
);
24 if (env_val
&& (strncmp(env_val
, "1", 1) == 0)) {
34 LTTNG_EXPORT
int __testpoint_sessiond_thread_manage_clients(void);
35 int __testpoint_sessiond_thread_manage_clients(void)
37 const char *var
= "LTTNG_SESSIOND_THREAD_MANAGE_CLIENTS_TP_FAIL";
39 if (check_env_var(var
)) {
46 LTTNG_EXPORT
int __testpoint_sessiond_thread_registration_apps(void);
47 int __testpoint_sessiond_thread_registration_apps(void)
49 const char *var
= "LTTNG_SESSIOND_THREAD_REG_APPS_TP_FAIL";
51 if (check_env_var(var
)) {
58 LTTNG_EXPORT
int __testpoint_sessiond_thread_manage_apps(void);
59 int __testpoint_sessiond_thread_manage_apps(void)
61 const char *var
= "LTTNG_SESSIOND_THREAD_MANAGE_APPS_TP_FAIL";
63 if (check_env_var(var
)) {
70 LTTNG_EXPORT
int __testpoint_sessiond_thread_manage_kernel(void);
71 int __testpoint_sessiond_thread_manage_kernel(void)
73 const char *var
= "LTTNG_SESSIOND_THREAD_MANAGE_KERNEL_TP_FAIL";
75 if (check_env_var(var
)) {
82 LTTNG_EXPORT
int __testpoint_sessiond_thread_manage_consumer(void);
83 int __testpoint_sessiond_thread_manage_consumer(void)
85 const char *var
= "LTTNG_SESSIOND_THREAD_MANAGE_CONSUMER_TP_FAIL";
87 if (check_env_var(var
)) {
94 LTTNG_EXPORT
int __testpoint_sessiond_thread_app_manage_notify(void);
95 int __testpoint_sessiond_thread_app_manage_notify(void)
97 const char *var
= "LTTNG_SESSIOND_THREAD_APP_MANAGE_NOTIFY_TP_FAIL";
99 if (check_env_var(var
)) {
106 LTTNG_EXPORT
int __testpoint_sessiond_thread_app_reg_dispatch(void);
107 int __testpoint_sessiond_thread_app_reg_dispatch(void)
109 const char *var
= "LTTNG_SESSIOND_THREAD_APP_REG_DISPATCH_TP_FAIL";
111 if (check_env_var(var
)) {
118 /* Consumer daemon */
120 LTTNG_EXPORT
int __testpoint_consumerd_thread_channel(void);
121 int __testpoint_consumerd_thread_channel(void)
123 const char *var
= "LTTNG_CONSUMERD_THREAD_CHANNEL_TP_FAIL";
125 if (check_env_var(var
)) {
132 LTTNG_EXPORT
int __testpoint_consumerd_thread_metadata(void);
133 int __testpoint_consumerd_thread_metadata(void)
135 const char *var
= "LTTNG_CONSUMERD_THREAD_METADATA_TP_FAIL";
137 if (check_env_var(var
)) {
144 LTTNG_EXPORT
int __testpoint_consumerd_thread_data(void);
145 int __testpoint_consumerd_thread_data(void)
147 const char *var
= "LTTNG_CONSUMERD_THREAD_DATA_TP_FAIL";
149 if (check_env_var(var
)) {
156 LTTNG_EXPORT
int __testpoint_consumerd_thread_sessiond(void);
157 int __testpoint_consumerd_thread_sessiond(void)
159 const char *var
= "LTTNG_CONSUMERD_THREAD_SESSIOND_TP_FAIL";
161 if (check_env_var(var
)) {
168 LTTNG_EXPORT
int __testpoint_consumerd_thread_metadata_timer(void);
169 int __testpoint_consumerd_thread_metadata_timer(void)
171 const char *var
= "LTTNG_CONSUMERD_THREAD_METADATA_TIMER_TP_FAIL";
173 if (check_env_var(var
)) {
182 LTTNG_EXPORT
int __testpoint_relayd_thread_dispatcher(void);
183 int __testpoint_relayd_thread_dispatcher(void)
185 const char *var
= "LTTNG_RELAYD_THREAD_DISPATCHER_TP_FAIL";
187 if (check_env_var(var
)) {
194 LTTNG_EXPORT
int __testpoint_relayd_thread_worker(void);
195 int __testpoint_relayd_thread_worker(void)
197 const char *var
= "LTTNG_RELAYD_THREAD_WORKER_TP_FAIL";
199 if (check_env_var(var
)) {
206 LTTNG_EXPORT
int __testpoint_relayd_thread_listener(void);
207 int __testpoint_relayd_thread_listener(void)
209 const char *var
= "LTTNG_RELAYD_THREAD_LISTENER_TP_FAIL";
211 if (check_env_var(var
)) {
218 LTTNG_EXPORT
int __testpoint_relayd_thread_live_dispatcher(void);
219 int __testpoint_relayd_thread_live_dispatcher(void)
221 const char *var
= "LTTNG_RELAYD_THREAD_LIVE_DISPATCHER_TP_FAIL";
223 if (check_env_var(var
)) {
230 LTTNG_EXPORT
int __testpoint_relayd_thread_live_worker(void);
231 int __testpoint_relayd_thread_live_worker(void)
233 const char *var
= "LTTNG_RELAYD_THREAD_LIVE_WORKER_TP_FAIL";
235 if (check_env_var(var
)) {
242 LTTNG_EXPORT
int __testpoint_relayd_thread_live_listener(void);
243 int __testpoint_relayd_thread_live_listener(void)
245 const char *var
= "LTTNG_RELAYD_THREAD_LIVE_LISTENER_TP_FAIL";
247 if (check_env_var(var
)) {
This page took 0.033967 seconds and 4 git commands to generate.