return -EINVAL;
}
switch (event_param->u.syscall.match) {
- case LTTNG_SYSCALL_MATCH_NAME:
+ case LTTNG_KERNEL_SYSCALL_MATCH_NAME:
break;
default:
return -EINVAL;
return -EINVAL;
case LTTNG_TYPE_ENABLER:
event_notifier_enabler = file->private_data;
- return lttng_event_notifier_enabler_attach_bytecode(event_notifier_enabler,
+ return lttng_event_notifier_enabler_attach_filter_bytecode(
+ event_notifier_enabler,
(struct lttng_kernel_filter_bytecode __user *) arg);
default:
WARN_ON_ONCE(1);
case LTTNG_KERNEL_KPROBE:
event_notifier_param->event.u.kprobe.symbol_name[LTTNG_KERNEL_SYM_NAME_LEN - 1] = '\0';
break;
+ case LTTNG_KERNEL_SYSCALL:
+ break;
case LTTNG_KERNEL_KRETPROBE:
/* Placing an event notifier on kretprobe is not supported. */
case LTTNG_KERNEL_FUNCTION:
case LTTNG_KERNEL_NOOP:
- case LTTNG_KERNEL_SYSCALL:
default:
ret = -EINVAL;
goto inval_instr;
case LTTNG_TYPE_ENABLER:
{
event_enabler = file->private_data;
- return lttng_event_enabler_attach_bytecode(event_enabler,
+ return lttng_event_enabler_attach_filter_bytecode(
+ event_enabler,
(struct lttng_kernel_filter_bytecode __user *) arg);
}
default: