struct lttng_ust_event_common_private;
+enum lttng_ust_event_type {
+ LTTNG_UST_EVENT_TYPE_RECORDER = 0,
+ LTTNG_UST_EVENT_TYPE_NOTIFIER = 1,
+};
+
struct lttng_ust_event_common {
uint32_t struct_size; /* Size of this structure. */
struct lttng_ust_event_common_private *priv; /* Private event interface */
+ enum lttng_ust_event_type type;
int enabled;
int has_enablers_without_bytecode;
/* list of struct lttng_bytecode_runtime, sorted by seqnum */
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) {
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) {