Commit | Line | Data |
---|---|---|
b7cdc182 | 1 | /* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only) |
9f36eaed | 2 | * |
57105fc2 MD |
3 | * lttng-calibrate.c |
4 | * | |
57105fc2 MD |
5 | * LTTng probe calibration. |
6 | * | |
886d51a3 | 7 | * Copyright (C) 2010-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> |
57105fc2 MD |
8 | */ |
9 | ||
2df37e95 MD |
10 | #include <lttng/abi.h> |
11 | #include <lttng/events.h> | |
57105fc2 | 12 | |
950f5c99 | 13 | noinline |
57105fc2 MD |
14 | void lttng_calibrate_kretprobe(void) |
15 | { | |
9b4a21cc | 16 | asm volatile (""); |
57105fc2 MD |
17 | } |
18 | ||
606828e4 | 19 | int lttng_calibrate(struct lttng_kernel_abi_calibrate *calibrate) |
57105fc2 MD |
20 | { |
21 | switch (calibrate->type) { | |
606828e4 | 22 | case LTTNG_KERNEL_ABI_CALIBRATE_KRETPROBE: |
9b4a21cc | 23 | lttng_calibrate_kretprobe(); |
57105fc2 MD |
24 | break; |
25 | default: | |
26 | return -EINVAL; | |
27 | } | |
28 | return 0; | |
29 | } |