#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>
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)
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: