- switch (*evtype) {
- case LTTNG_TYPE_EVENT:
- event_notifier = file->private_data;
- if (event_notifier)
- fput(event_notifier->group->file);
- break;
- case LTTNG_TYPE_ENABLER:
- event_notifier_enabler = file->private_data;
- if (event_notifier_enabler)
- fput(event_notifier_enabler->group->file);
- break;
+ switch (cmd) {
+ case LTTNG_KERNEL_ABI_ENABLE:
+ return lttng_event_notifier_enabler_enable(event_notifier_enabler);
+ case LTTNG_KERNEL_ABI_DISABLE:
+ return lttng_event_notifier_enabler_disable(event_notifier_enabler);
+ case LTTNG_KERNEL_ABI_FILTER:
+ return lttng_event_notifier_enabler_attach_filter_bytecode(
+ event_notifier_enabler,
+ (struct lttng_kernel_abi_filter_bytecode __user *) arg);
+ case LTTNG_KERNEL_ABI_CAPTURE:
+ return lttng_event_notifier_enabler_attach_capture_bytecode(
+ event_notifier_enabler,
+ (struct lttng_kernel_abi_capture_bytecode __user *) arg);
+ case LTTNG_KERNEL_ABI_ADD_CALLSITE:
+ return -EINVAL;