/*
* 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;
*/
struct agent_app {
/*
- * PID sent during registration of a AGENT application.
+ * PID sent during registration of an agent application.
*/
pid_t pid;
/* Hash table node of the agent domain object. */
struct lttng_ht_node_str node;
- /* Bytecode filter associated with the event . NULL if none. */
+ /* Filter associated with the event. NULL if none. */
struct lttng_filter_bytecode *filter;
+ char *filter_expression;
+ struct lttng_event_exclusion *exclusion;
};
/*
void agent_add(struct agent *agt, struct lttng_ht *ht);
/* Agent event API. */
-struct agent_event *agent_create_event(const char *name,
- struct lttng_filter_bytecode *filter);
+struct agent_event *agent_create_event(const char *name, int loglevel,
+ enum lttng_loglevel_type loglevel_type,
+ struct lttng_filter_bytecode *filter,
+ char *filter_expression);
void agent_add_event(struct agent_event *event, struct agent *agt);
struct agent_event *agent_find_event(const char *name, int loglevel,