struct agent_ht_key {
const char *name;
- int loglevel;
+ int loglevel_value;
+ enum lttng_loglevel_type loglevel_type;
};
/*
*/
struct agent_app {
/*
- * PID sent during registration of a AGENT application.
+ * PID sent during registration of an agent application.
*/
pid_t pid;
struct agent_event {
/* Name of the event. */
char name[LTTNG_SYMBOL_NAME_LEN];
- int loglevel;
+ int loglevel_value;
enum lttng_loglevel_type loglevel_type;
/*
/* Hash table node of the agent domain object. */
struct lttng_ht_node_str node;
- /* Bytecode filter associated with the event . NULL if none. */
- char *filter_expression;
+ /* Filter associated with the event. NULL if none. */
struct lttng_filter_bytecode *filter;
+ char *filter_expression;
+ struct lttng_event_exclusion *exclusion;
};
/*
/* Agent event API. */
struct agent_event *agent_create_event(const char *name,
- struct lttng_filter_bytecode *filter);
+ enum lttng_loglevel_type loglevel_type, int loglevel_value,
+ 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,
- struct agent *agt);
-struct agent_event *agent_find_event_by_name(const char *name,
+struct agent_event *agent_find_event(const char *name,
+ enum lttng_loglevel_type loglevel_type, int loglevel_value,
struct agent *agt);
+void agent_find_events_by_name(const char *name, struct agent *agt,
+ struct lttng_ht_iter* iter);
+void agent_event_next_duplicate(const char *name,
+ struct agent *agt, struct lttng_ht_iter* iter);
void agent_delete_event(struct agent_event *event, struct agent *agt);
void agent_destroy_event(struct agent_event *event);