/*
* Hash table that contains the agent app created upon registration indexed by
- * socket.
+ * socket. Global to the session daemon.
*/
-struct lttng_ht *agent_apps_ht_by_sock;
+extern struct lttng_ht *agent_apps_ht_by_sock;
struct agent_ht_key {
const char *name;
#include "lttng-sessiond.h"
#include "utils.h"
#include "syscall.h"
+#include "agent.h"
#include "cmd.h"
#include "ust-app.h"
#include "trace-kernel.h"
#include "trace-ust.h"
+#include "agent.h"
/*
* Add unique UST event based on the event name, filter bytecode and loglevel.
#ifndef _LTT_EVENT_H
#define _LTT_EVENT_H
-#include "agent.h"
#include "trace-kernel.h"
+struct agent;
+
int event_kernel_disable_event(struct ltt_kernel_channel *kchan,
char *event_name);
int event_kernel_disable_event_type(struct ltt_kernel_channel *kchan,
#include "save.h"
#include "load-session-thread.h"
#include "syscall.h"
+#include "agent.h"
#define CONSUMERD_FILE "lttng-consumerd"
/* Load session thread information to operate. */
struct load_session_thread_data *load_info;
+/* Global hash tables */
+struct lttng_ht *agent_apps_ht_by_sock = NULL;
+
/*
* Whether sessiond is ready for commands/health check requests.
* NR_LTTNG_SESSIOND_READY must match the number of calls to
#include "trace-ust.h"
#include "utils.h"
#include "ust-app.h"
+#include "agent.h"
/*
* Match function for the events hash table lookup.
#include <common/defaults.h>
#include "consumer.h"
-#include "agent.h"
#include "ust-ctl.h"
+struct agent;
+
struct ltt_ust_ht_key {
const char *name;
const struct lttng_filter_bytecode *filter;
#include <common/compat/uuid.h>
-#include "agent.h"
#include "trace-ust.h"
#include "ust-registry.h"
int ust_consumerd32_fd;
int ust_consumerd64_fd;
+/* Global variable required by sessiond objects being linked-in */
+struct lttng_ht *agent_apps_ht_by_sock;
+
static const char alphanum[] =
"0123456789"
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"