2 * Copyright (C) 2012 - Christian Babeux <christian.babeux@efficios.com>
3 * Copyright (C) 2014 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License, version 2 only, as
7 * published by the Free Software Foundation.
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 * You should have received a copy of the GNU General Public License along with
15 * this program; if not, write to the Free Software Foundation, Inc., 51
16 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25 * Check if the specified environment variable is set.
26 * Return 1 if set, otherwise 0.
29 int check_env_var(const char *env
)
32 char *env_val
= getenv(env
);
33 if (env_val
&& (strncmp(env_val
, "1", 1) == 0)) {
43 int __testpoint_sessiond_thread_manage_clients(void)
45 const char *var
= "LTTNG_SESSIOND_THREAD_MANAGE_CLIENTS_TP_FAIL";
47 if (check_env_var(var
)) {
54 int __testpoint_sessiond_thread_registration_apps(void)
56 const char *var
= "LTTNG_SESSIOND_THREAD_REG_APPS_TP_FAIL";
58 if (check_env_var(var
)) {
65 int __testpoint_sessiond_thread_manage_apps(void)
67 const char *var
= "LTTNG_SESSIOND_THREAD_MANAGE_APPS_TP_FAIL";
69 if (check_env_var(var
)) {
76 int __testpoint_sessiond_thread_manage_kernel(void)
78 const char *var
= "LTTNG_SESSIOND_THREAD_MANAGE_KERNEL_TP_FAIL";
80 if (check_env_var(var
)) {
87 int __testpoint_sessiond_thread_manage_consumer(void)
89 const char *var
= "LTTNG_SESSIOND_THREAD_MANAGE_CONSUMER_TP_FAIL";
91 if (check_env_var(var
)) {
98 int __testpoint_sessiond_thread_ht_cleanup(void)
100 const char *var
= "LTTNG_SESSIOND_THREAD_HT_CLEANUP_TP_FAIL";
102 if (check_env_var(var
)) {
109 int __testpoint_sessiond_thread_app_manage_notify(void)
111 const char *var
= "LTTNG_SESSIOND_THREAD_APP_MANAGE_NOTIFY_TP_FAIL";
113 if (check_env_var(var
)) {
120 int __testpoint_sessiond_thread_app_reg_dispatch(void)
122 const char *var
= "LTTNG_SESSIOND_THREAD_APP_REG_DISPATCH_TP_FAIL";
124 if (check_env_var(var
)) {
131 /* Consumer daemon */
133 int __testpoint_consumerd_thread_channel(void)
135 const char *var
= "LTTNG_CONSUMERD_THREAD_CHANNEL_TP_FAIL";
137 if (check_env_var(var
)) {
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)
157 const char *var
= "LTTNG_CONSUMERD_THREAD_DATA_TP_FAIL";
159 if (check_env_var(var
)) {
166 int __testpoint_consumerd_thread_sessiond(void)
168 const char *var
= "LTTNG_CONSUMERD_THREAD_SESSIOND_TP_FAIL";
170 if (check_env_var(var
)) {
177 int __testpoint_consumerd_thread_metadata_timer(void)
179 const char *var
= "LTTNG_CONSUMERD_THREAD_METADATA_TIMER_TP_FAIL";
181 if (check_env_var(var
)) {
190 int __testpoint_relayd_thread_dispatcher(void)
192 const char *var
= "LTTNG_RELAYD_THREAD_DISPATCHER_TP_FAIL";
194 if (check_env_var(var
)) {
201 int __testpoint_relayd_thread_worker(void)
203 const char *var
= "LTTNG_RELAYD_THREAD_WORKER_TP_FAIL";
205 if (check_env_var(var
)) {
212 int __testpoint_relayd_thread_listener(void)
214 const char *var
= "LTTNG_RELAYD_THREAD_LISTENER_TP_FAIL";
216 if (check_env_var(var
)) {
223 int __testpoint_relayd_thread_live_dispatcher(void)
225 const char *var
= "LTTNG_RELAYD_THREAD_LIVE_DISPATCHER_TP_FAIL";
227 if (check_env_var(var
)) {
234 int __testpoint_relayd_thread_live_worker(void)
236 const char *var
= "LTTNG_RELAYD_THREAD_LIVE_WORKER_TP_FAIL";
238 if (check_env_var(var
)) {
245 int __testpoint_relayd_thread_live_listener(void)
247 const char *var
= "LTTNG_RELAYD_THREAD_LIVE_LISTENER_TP_FAIL";
249 if (check_env_var(var
)) {
This page took 0.034071 seconds and 4 git commands to generate.