2 * Copyright (C) 2012 - Christian Babeux <christian.babeux@efficios.com>
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License, version 2 only, as
6 * published by the Free Software Foundation.
8 * This program is distributed in the hope that it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * You should have received a copy of the GNU General Public License along with
14 * this program; if not, write to the Free Software Foundation, Inc., 51
15 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 * Check if the specified environment variable is set.
24 * Return 1 if set, otherwise 0.
26 int check_env_var(const char *env
)
29 char *env_val
= getenv(env
);
30 if (env_val
&& (strncmp(env_val
, "1", 1) == 0)) {
38 void __testpoint_thread_manage_clients(void)
40 const char *var
= "LTTNG_THREAD_MANAGE_CLIENTS_EXIT";
42 if (check_env_var(var
)) {
47 void __testpoint_thread_registration_apps(void)
49 const char *var
= "LTTNG_THREAD_REG_APPS_EXIT";
51 if (check_env_var(var
)) {
56 void __testpoint_thread_manage_apps(void)
58 const char *var
= "LTTNG_THREAD_MANAGE_APPS_EXIT";
60 if (check_env_var(var
)) {
65 void __testpoint_thread_manage_kernel(void)
67 const char *var
= "LTTNG_THREAD_MANAGE_KERNEL_EXIT";
69 if (check_env_var(var
)) {
74 void __testpoint_thread_manage_consumer(void)
76 const char *var
= "LTTNG_THREAD_MANAGE_CONSUMER_EXIT";
78 if (check_env_var(var
)) {
This page took 0.031586 seconds and 4 git commands to generate.