Fix: trace-chunk: dereference after NULL check
[lttng-tools.git] / src / bin / lttng-sessiond / agent-thread.h
1 /*
2 * Copyright (C) 2013 David Goulet <dgoulet@efficios.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 */
7
8 #include <stdbool.h>
9
10 #ifndef LTTNG_SESSIOND_AGENT_THREAD_H
11 #define LTTNG_SESSIOND_AGENT_THREAD_H
12
13 #ifdef HAVE_LIBLTTNG_UST_CTL
14
15 bool launch_agent_management_thread(void);
16 bool agent_tracing_is_enabled(void);
17
18 #else /* HAVE_LIBLTTNG_UST_CTL */
19
20 static inline
21 bool launch_agent_management_thread(void)
22 {
23 return true;
24 }
25
26 static inline
27 bool agent_tracing_is_enabled(void)
28 {
29 return false;
30 }
31
32 #endif /* HAVE_LIBLTTNG_UST_CTL */
33
34 #endif /* LTTNG_SESSIOND_AGENT_THREAD_H */
This page took 0.042748 seconds and 5 git commands to generate.