Add calibration ioctl
[lttng-modules.git] / lttng-calibrate.c
diff --git a/lttng-calibrate.c b/lttng-calibrate.c
new file mode 100644 (file)
index 0000000..45c01e3
--- /dev/null
@@ -0,0 +1,28 @@
+/*
+ * lttng-calibrate.c
+ *
+ * Copyright 2011 (c) - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ *
+ * LTTng probe calibration.
+ *
+ * Dual LGPL v2.1/GPL v2 license.
+ */
+
+#include "ltt-debugfs-abi.h"
+#include "ltt-events.h"
+
+void lttng_calibrate_kretprobe(void)
+{
+}
+
+int lttng_calibrate(struct lttng_calibrate *calibrate)
+{
+       switch (calibrate->type) {
+       case LTTNG_CALIBRATE_KRETPROBE:
+               calibrate->u.kretprobe.addr = &lttng_calibrate_kretprobe;
+               break;
+       default:
+               return -EINVAL;
+       }
+       return 0;
+}
This page took 0.023324 seconds and 4 git commands to generate.