f91bd49a8e9209d34d7835841bba68b020469de7
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.
26 * Check if the specified environment variable is set.
27 * 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)) {
41 void __testpoint_thread_manage_clients_before_loop(void)
43 const char *var
= "LTTNG_THREAD_MANAGE_CLIENTS_STALL";
45 if (check_env_var(var
)) {
50 void __testpoint_thread_manage_kernel_before_loop(void)
52 const char *var
= "LTTNG_THREAD_MANAGE_KERNEL_STALL";
54 if (check_env_var(var
)) {
59 void __testpoint_thread_manage_apps_before_loop(void)
61 const char *var
= "LTTNG_THREAD_MANAGE_APPS_STALL";
63 if (check_env_var(var
)) {
This page took 0.030651 seconds and 3 git commands to generate.