Fix build system for valid make dist
[lttng-tools.git] / libkernelctl / libkernelctl.c
index f51618d1e2e638d7d3ad5591a726378d1f05a20e..1f30c77c0bb42e9502d6899557dae183362ddf36 100644 (file)
@@ -4,8 +4,8 @@
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
+ * as published by the Free Software Foundation; only version 2
+ * of the License.
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 #include "kernel-ioctl.h"
 #include "libkernelctl.h"
 
+int kernctl_add_context(int fd, struct lttng_kernel_context *ctx)
+{
+       return ioctl(fd, LTTNG_KERNEL_CONTEXT, ctx);
+}
+
 int kernctl_buffer_flush(int fd)
 {
        return ioctl(fd, RING_BUFFER_FLUSH);
This page took 0.023133 seconds and 4 git commands to generate.