struct lttng_event_exclusion *exclusion;
};
+struct ust_app_event_notifier_rule {
+ int enabled;
+ int handle;
+ struct lttng_ust_object_data *obj;
+ /* Holds a strong reference. */
+ struct lttng_event_rule *event_rule;
+ /* Unique ID returned by the tracer to identify this event notifier. */
+ uint64_t token;
+ struct lttng_ht_node_u64 node;
+ /* The event_rule object owns the filter. */
+ const struct lttng_filter_bytecode *filter;
+ /* Owned by this. */
+ struct lttng_event_exclusion *exclusion;
+ /* For delayed reclaim. */
+ struct rcu_head rcu_head;
+};
+
struct ust_app_stream {
int handle;
char pathname[PATH_MAX];
* Used for path creation
*/
time_t registration_time;
+ /*
+ * Event notifier
+ */
+ struct {
+ /*
+ * Handle to the lttng_ust object representing the event
+ * notifier group.
+ */
+ struct lttng_ust_object_data *object;
+ struct lttng_pipe *event_pipe;
+ } event_notifier_group;
+ /*
+ * Hashtable indexing the application's event notifier rule's
+ * (ust_app_event_notifier_rule) by their token's value.
+ */
+ struct lttng_ht *token_to_event_notifier_rule_ht;
};
#ifdef HAVE_LIBLTTNG_UST_CTL
struct ltt_ust_channel *uchan, struct ltt_ust_context *uctx);
void ust_app_global_update(struct ltt_ust_session *usess, struct ust_app *app);
void ust_app_global_update_all(struct ltt_ust_session *usess);
+void ust_app_global_update_event_notifier_rules(struct ust_app *app);
+void ust_app_global_update_all_event_notifier_rules(void);
void ust_app_clean_list(void);
int ust_app_ht_alloc(void);
enum lttng_error_code ust_app_clear_session(struct ltt_session *session);
enum lttng_error_code ust_app_open_packets(struct ltt_session *session);
+int ust_app_setup_event_notifier_group(struct ust_app *app);
+
static inline
int ust_app_supported(void)
{
void ust_app_global_update(struct ltt_ust_session *usess, struct ust_app *app)
{}
static inline
+void ust_app_global_update_event_notifier_rules(struct ust_app *app)
+{}
+static inline
+void ust_app_global_update_all_event_notifier_rules(void)
+{}
+static inline
+int ust_app_setup_event_notifier_group(struct ust_app *app)
+{
+ return 0;
+}
+static inline
int ust_app_disable_channel_glb(struct ltt_ust_session *usess,
struct ltt_ust_channel *uchan)
{