Implement filtering infrastructure
[lttng-modules.git] / lttng-abi.c
index ede2ae79bd7b15c45ec4ef3864a048cc85f2e006..beaad907d072ca5db410d8fc2a23e1feb0d17a25 100644 (file)
@@ -1323,6 +1323,18 @@ long lttng_event_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
                        WARN_ON_ONCE(1);
                        return -ENOSYS;
                }
+       case LTTNG_KERNEL_FILTER:
+               switch (*evtype) {
+               case LTTNG_TYPE_EVENT:
+                       return -EINVAL;
+               case LTTNG_TYPE_ENABLER:
+               {
+                       enabler = file->private_data;
+                       return lttng_enabler_attach_bytecode(enabler,
+                               (struct lttng_kernel_filter_bytecode __user *) arg);
+               }
+
+               }
        default:
                return -ENOIOCTLCMD;
        }
This page took 0.022175 seconds and 4 git commands to generate.