Introduce event type field in common structure
[lttng-ust.git] / liblttng-ust / lttng-events.c
index af06d4908db52dcd2d382a6cdef4b858de6a601b..c74db4551f7db631026f38c4451d6c4a196dabd0 100644 (file)
@@ -780,6 +780,7 @@ int lttng_event_recorder_create(const struct lttng_event_desc *desc,
                goto parent_error;
        }
        event_recorder->parent->struct_size = sizeof(struct lttng_ust_event_common);
+       event_recorder->parent->type = LTTNG_UST_EVENT_TYPE_RECORDER;
 
        event_recorder_priv = zmalloc(sizeof(struct lttng_ust_event_recorder_private));
        if (!event_recorder_priv) {
@@ -873,6 +874,7 @@ int lttng_event_notifier_create(const struct lttng_event_desc *desc,
                goto parent_error;
        }
        event_notifier->parent->struct_size = sizeof(struct lttng_ust_event_common);
+       event_notifier->parent->type = LTTNG_UST_EVENT_TYPE_NOTIFIER;
 
        event_notifier_priv = zmalloc(sizeof(struct lttng_ust_event_notifier_private));
        if (!event_notifier_priv) {
This page took 0.022582 seconds and 4 git commands to generate.