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.
24 * Check if the specified environment variable is set.
25 * Return 1 if set, otherwise 0.
27 int check_env_var(const char *env
)
30 char *env_val
= getenv(env
);
31 if (env_val
&& (strncmp(env_val
, "1", 1) == 0)) {
39 int __testpoint_sessiond_thread_manage_clients(void)
41 const char *var
= "LTTNG_SESSIOND_THREAD_MANAGE_CLIENTS_EXIT";
43 if (check_env_var(var
)) {
44 rcu_unregister_thread();
51 int __testpoint_sessiond_thread_registration_apps(void)
53 const char *var
= "LTTNG_SESSIOND_THREAD_REG_APPS_EXIT";
55 if (check_env_var(var
)) {
62 int __testpoint_sessiond_thread_manage_apps(void)
64 const char *var
= "LTTNG_SESSIOND_THREAD_MANAGE_APPS_EXIT";
66 if (check_env_var(var
)) {
67 rcu_unregister_thread();
74 int __testpoint_sessiond_thread_manage_kernel(void)
76 const char *var
= "LTTNG_SESSIOND_THREAD_MANAGE_KERNEL_EXIT";
78 if (check_env_var(var
)) {
85 int __testpoint_sessiond_thread_manage_consumer(void)
87 const char *var
= "LTTNG_SESSIOND_THREAD_MANAGE_CONSUMER_EXIT";
89 if (check_env_var(var
)) {
This page took 0.030825 seconds and 5 git commands to generate.