struct lttng_session;
struct lttng_ust_lib_ring_buffer_ctx;
struct lttng_event_field;
-struct lttng_event_notifier;
struct lttng_event_notifier_group;
/*
struct lttng_ust_event_notifier_private;
-struct lttng_event_notifier {
+struct lttng_ust_event_notifier {
uint32_t struct_size; /* Size of this structure. */
struct lttng_ust_event_common *parent;
struct lttng_ust_event_notifier_private *priv; /* Private event notifier interface */
- void (*notification_send)(struct lttng_event_notifier *event_notifier,
+ void (*notification_send)(struct lttng_ust_event_notifier *event_notifier,
const char *stack_data);
struct cds_list_head capture_bytecode_runtime_head;
};
static \
void __event_notifier_probe__##_provider##___##_name(_TP_ARGS_DATA_PROTO(_args)) \
{ \
- struct lttng_event_notifier *__event_notifier = (struct lttng_event_notifier *) __tp_data; \
+ struct lttng_ust_event_notifier *__event_notifier = (struct lttng_ust_event_notifier *) __tp_data; \
const size_t __num_fields = _TP_ARRAY_SIZE(__event_fields___##_provider##___##_name) - 1;\
union { \
size_t __dynamic_len[__num_fields]; \
static
void notification_init(struct lttng_event_notifier_notification *notif,
- struct lttng_event_notifier *event_notifier)
+ struct lttng_ust_event_notifier *event_notifier)
{
struct lttng_msgpack_writer *writer = ¬if->writer;
lttng_msgpack_write_nil(¬if->writer);
}
-static void record_error(struct lttng_event_notifier *event_notifier)
+static void record_error(struct lttng_ust_event_notifier *event_notifier)
{
struct lttng_event_notifier_group *event_notifier_group =
event_notifier->priv->group;
static
void notification_send(struct lttng_event_notifier_notification *notif,
- struct lttng_event_notifier *event_notifier)
+ struct lttng_ust_event_notifier *event_notifier)
{
ssize_t ret;
size_t content_len;
}
void lttng_event_notifier_notification_send(
- struct lttng_event_notifier *event_notifier,
+ struct lttng_ust_event_notifier *event_notifier,
const char *stack_data)
{
/*
}
void lttng_free_event_notifier_filter_runtime(
- struct lttng_event_notifier *event_notifier)
+ struct lttng_ust_event_notifier *event_notifier)
{
free_filter_runtime(&event_notifier->parent->filter_bytecode_runtime_head);
}
static void _lttng_event_recorder_destroy(struct lttng_ust_event_recorder *event_recorder);
static void _lttng_event_notifier_destroy(
- struct lttng_event_notifier *event_notifier);
+ struct lttng_ust_event_notifier *event_notifier);
static void _lttng_enum_destroy(struct lttng_enum *_enum);
static
}
static
-void register_event_notifier(struct lttng_event_notifier *event_notifier)
+void register_event_notifier(struct lttng_ust_event_notifier *event_notifier)
{
int ret;
const struct lttng_event_desc *desc;
}
static
-void unregister_event_notifier(struct lttng_event_notifier *event_notifier)
+void unregister_event_notifier(struct lttng_ust_event_notifier *event_notifier)
{
int ret;
const struct lttng_event_desc *desc;
* Only used internally at session destruction.
*/
static
-void _lttng_event_notifier_unregister(struct lttng_event_notifier *event_notifier)
+void _lttng_event_notifier_unregister(struct lttng_ust_event_notifier *event_notifier)
{
if (event_notifier->parent->priv->registered)
unregister_event_notifier(event_notifier);
uint64_t token, uint64_t error_counter_index,
struct lttng_event_notifier_group *event_notifier_group)
{
- struct lttng_event_notifier *event_notifier;
+ struct lttng_ust_event_notifier *event_notifier;
struct lttng_ust_event_notifier_private *event_notifier_priv;
struct cds_hlist_head *head;
int ret = 0;
event_notifier_group->event_notifiers_ht.table,
LTTNG_UST_EVENT_NOTIFIER_HT_SIZE, desc);
- event_notifier = zmalloc(sizeof(struct lttng_event_notifier));
+ event_notifier = zmalloc(sizeof(struct lttng_ust_event_notifier));
if (!event_notifier) {
ret = -ENOMEM;
goto error;
}
- event_notifier->struct_size = sizeof(struct lttng_event_notifier);
+ event_notifier->struct_size = sizeof(struct lttng_ust_event_notifier);
event_notifier->parent = zmalloc(sizeof(struct lttng_ust_event_common));
if (!event_notifier->parent) {
}
static
-void _lttng_event_notifier_destroy(struct lttng_event_notifier *event_notifier)
+void _lttng_event_notifier_destroy(struct lttng_ust_event_notifier *event_notifier)
{
struct lttng_enabler_ref *enabler_ref, *tmp_enabler_ref;
static
int lttng_event_notifier_enabler_match_event_notifier(
struct lttng_event_notifier_enabler *event_notifier_enabler,
- struct lttng_event_notifier *event_notifier)
+ struct lttng_ust_event_notifier *event_notifier)
{
int desc_matches = lttng_desc_match_enabler(event_notifier->priv->parent.desc,
lttng_event_notifier_enabler_as_enabler(event_notifier_enabler));
void probe_provider_event_for_each(struct lttng_probe_desc *provider_desc,
void (*event_func)(struct lttng_session *session,
struct lttng_ust_event_recorder *event_recorder),
- void (*event_notifier_func)(struct lttng_event_notifier *event_notifier))
+ void (*event_notifier_func)(struct lttng_ust_event_notifier *event_notifier))
{
struct cds_hlist_node *node, *tmp_node;
struct cds_list_head *sessionsp;
struct lttng_ctx_field;
struct lttng_ust_lib_ring_buffer_ctx;
struct lttng_ctx_value;
-struct lttng_event_notifier;
+struct lttng_ust_event_notifier;
LTTNG_HIDDEN
int ust_lock(void) __attribute__ ((warn_unused_result));
LTTNG_HIDDEN
void lttng_event_notifier_notification_send(
- struct lttng_event_notifier *event_notifier,
+ struct lttng_ust_event_notifier *event_notifier,
const char *stack_data);
LTTNG_HIDDEN
struct lttng_ust_event_notifier_private {
struct lttng_ust_event_common_private parent;
- struct lttng_event_notifier *pub; /* Public event notifier interface */
+ struct lttng_ust_event_notifier *pub; /* Public event notifier interface */
struct cds_hlist_node hlist; /* hashtable of event_notifiers */
struct cds_list_head node; /* event_notifier list in session */
struct lttng_event_notifier_group *group; /* weak ref */
LTTNG_HIDDEN
void lttng_free_event_notifier_filter_runtime(
- struct lttng_event_notifier *event_notifier);
+ struct lttng_ust_event_notifier *event_notifier);
/*
* Connect the probe on all enablers matching this event description.