Version 2.0-pre9
[lttng-tools.git] / libkernelctl / libkernelctl.c
index f51618d1e2e638d7d3ad5591a726378d1f05a20e..78b2563473fd370be92dc116dc57875af59c45e3 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);
@@ -161,3 +166,8 @@ int kernctl_wait_quiescent(int fd)
 {
        return ioctl(fd, LTTNG_KERNEL_WAIT_QUIESCENT);
 }
+
+int kernctl_calibrate(int fd, struct lttng_kernel_calibrate *calibrate)
+{
+       return ioctl(fd, LTTNG_KERNEL_CALIBRATE, calibrate);
+}
This page took 0.024479 seconds and 5 git commands to generate.