X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=lttng-abi.c;h=beaad907d072ca5db410d8fc2a23e1feb0d17a25;hb=07dfc1d0e4b093ad02682499a702dc11e54e8302;hp=ede2ae79bd7b15c45ec4ef3864a048cc85f2e006;hpb=4ecb5ad551c82311205afbcda492739a08d6b132;p=lttng-modules.git diff --git a/lttng-abi.c b/lttng-abi.c index ede2ae79..beaad907 100644 --- a/lttng-abi.c +++ b/lttng-abi.c @@ -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; }