Refactoring: type description structures
[lttng-modules.git] / src / lttng-abi.c
index 88c92d91e0fd4d336c59ecdc371be25c1843d205..13d737d95679a57636d26f7b6e5c7bf2efa043b3 100644 (file)
@@ -42,6 +42,7 @@
 #include <lttng/abi.h>
 #include <lttng/abi-old.h>
 #include <lttng/events.h>
+#include <lttng/events-internal.h>
 #include <lttng/tracer.h>
 #include <lttng/tp-mempool.h>
 #include <ringbuffer/frontend_types.h>
@@ -257,7 +258,7 @@ void lttng_abi_tracer_abi_version(struct lttng_kernel_tracer_abi_version *v)
 static
 long lttng_abi_add_context(struct file *file,
        struct lttng_kernel_context *context_param,
-       struct lttng_ctx **ctx, struct lttng_session *session)
+       struct lttng_kernel_ctx **ctx, struct lttng_session *session)
 {
 
        if (session->been_active)
@@ -2042,6 +2043,10 @@ int lttng_abi_create_event_notifier(struct file *event_notifier_group_file,
                goto refcount_error;
        }
 
+       ret = lttng_abi_validate_event_param(&event_notifier_param->event);
+       if (ret)
+               goto event_notifier_error;
+
        switch (event_notifier_param->event.instrumentation) {
        case LTTNG_KERNEL_TRACEPOINT:           /* Fall-through */
        case LTTNG_KERNEL_SYSCALL:
This page took 0.023967 seconds and 4 git commands to generate.