action executor: execute action only if the associated trigger is registered
[lttng-tools.git] / src / bin / lttng-sessiond / agent-thread.h
CommitLineData
4d076222 1/*
ab5be9fa 2 * Copyright (C) 2013 David Goulet <dgoulet@efficios.com>
4d076222 3 *
ab5be9fa 4 * SPDX-License-Identifier: GPL-2.0-only
4d076222 5 *
4d076222
DG
6 */
7
f28f9e44
JG
8#include <stdbool.h>
9
022d91ba
DG
10#ifndef LTTNG_SESSIOND_AGENT_THREAD_H
11#define LTTNG_SESSIOND_AGENT_THREAD_H
4d076222
DG
12
13#ifdef HAVE_LIBLTTNG_UST_CTL
14
8a7e4590 15bool launch_agent_management_thread(void);
f28f9e44 16bool agent_tracing_is_enabled(void);
4d076222
DG
17
18#else /* HAVE_LIBLTTNG_UST_CTL */
19
95b1d17c 20static inline
8a7e4590 21bool launch_agent_management_thread(void)
4d076222 22{
8a7e4590 23 return true;
4d076222 24}
8a7e4590 25
f28f9e44
JG
26static inline
27bool agent_tracing_is_enabled(void)
28{
29 return false;
30}
4d076222
DG
31
32#endif /* HAVE_LIBLTTNG_UST_CTL */
33
022d91ba 34#endif /* LTTNG_SESSIOND_AGENT_THREAD_H */
This page took 0.053416 seconds and 4 git commands to generate.