X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=src%2Flttng-abi.c;h=be8bfe1e5027e23ec42acd8cccba99813b517a32;hb=d644d1df290531d8c2be54d6cf4485cc5ebeefde;hp=fbbdbabf15600bb00c0986022cf6c89db4e00a70;hpb=cff6938b5405c9125a5149f03e504d7b1cc4b8a4;p=lttng-modules.git diff --git a/src/lttng-abi.c b/src/lttng-abi.c index fbbdbabf..be8bfe1e 100644 --- a/src/lttng-abi.c +++ b/src/lttng-abi.c @@ -1748,7 +1748,8 @@ long lttng_event_notifier_ioctl(struct file *file, unsigned int cmd, unsigned lo 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); @@ -1826,11 +1827,12 @@ int lttng_abi_create_event_notifier(struct file *event_notifier_group_file, 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; @@ -2300,7 +2302,8 @@ long lttng_event_ioctl(struct file *file, unsigned int cmd, unsigned long arg) 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: