*
* 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);
{
return ioctl(fd, LTTNG_KERNEL_WAIT_QUIESCENT);
}
+
+int kernctl_calibrate(int fd, struct lttng_kernel_calibrate *calibrate)
+{
+ return ioctl(fd, LTTNG_KERNEL_CALIBRATE, calibrate);
+}