-/*
- * lttng-calibrate.c
+/* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only)
*
- * Copyright 2011 (c) - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ * lttng-calibrate.c
*
* LTTng probe calibration.
*
- * Dual LGPL v2.1/GPL v2 license.
+ * Copyright (C) 2010-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*/
-#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 = <tng_calibrate_kretprobe;
+ case LTTNG_KERNEL_CALIBRATE_KRETPROBE:
+ lttng_calibrate_kretprobe();
break;
default:
return -EINVAL;