X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-calibrate.c;h=f2362fb25ef17798a7b98988e8a0ceb9b27e2158;hb=bbda3a00431e819ecfbe0056eaa598100c848e0c;hp=45c01e32f73d3c028d5fb632f0cda3a0206bfbab;hpb=57105fc258cabb75b3a579aaba53b2024fd340e0;p=lttng-modules.git diff --git a/lttng-calibrate.c b/lttng-calibrate.c index 45c01e32..f2362fb2 100644 --- a/lttng-calibrate.c +++ b/lttng-calibrate.c @@ -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 = <tng_calibrate_kretprobe; + case LTTNG_KERNEL_CALIBRATE_KRETPROBE: + lttng_calibrate_kretprobe(); break; default: return -EINVAL;