X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Flttng-calibrate.c;fp=src%2Flttng-calibrate.c;h=38863194672aafbc6c88d2b1f6d67758fe5e54bb;hb=cfa6cc1d0f01c2cfcc1a679abf3a6572d411c309;hp=0000000000000000000000000000000000000000;hpb=cd4486798c2b046ea93b89439cd705e93c40b349;p=lttng-modules.git diff --git a/src/lttng-calibrate.c b/src/lttng-calibrate.c new file mode 100644 index 00000000..38863194 --- /dev/null +++ b/src/lttng-calibrate.c @@ -0,0 +1,29 @@ +/* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only) + * + * lttng-calibrate.c + * + * LTTng probe calibration. + * + * Copyright (C) 2010-2012 Mathieu Desnoyers + */ + +#include +#include + +noinline +void lttng_calibrate_kretprobe(void) +{ + asm volatile (""); +} + +int lttng_calibrate(struct lttng_kernel_calibrate *calibrate) +{ + switch (calibrate->type) { + case LTTNG_KERNEL_CALIBRATE_KRETPROBE: + lttng_calibrate_kretprobe(); + break; + default: + return -EINVAL; + } + return 0; +}