statedump: Use old macro name for kernel 2.6.38
[lttng-modules.git] / lttng-calibrate.c
index 45c01e32f73d3c028d5fb632f0cda3a0206bfbab..f2362fb25ef17798a7b98988e8a0ceb9b27e2158 100644 (file)
@@ -8,18 +8,20 @@
  * Dual LGPL v2.1/GPL v2 license.
  */
 
-#include "ltt-debugfs-abi.h"
-#include "ltt-events.h"
+#include "lttng-abi.h"
+#include "lttng-events.h"
 
+noinline
 void lttng_calibrate_kretprobe(void)
 {
+       asm volatile ("");
 }
 
-int lttng_calibrate(struct lttng_calibrate *calibrate)
+int lttng_calibrate(struct lttng_kernel_calibrate *calibrate)
 {
        switch (calibrate->type) {
-       case LTTNG_CALIBRATE_KRETPROBE:
-               calibrate->u.kretprobe.addr = &lttng_calibrate_kretprobe;
+       case LTTNG_KERNEL_CALIBRATE_KRETPROBE:
+               lttng_calibrate_kretprobe();
                break;
        default:
                return -EINVAL;
This page took 0.040073 seconds and 4 git commands to generate.