Commit | Line | Data |
---|---|---|
57105fc2 MD |
1 | /* |
2 | * lttng-calibrate.c | |
3 | * | |
4 | * Copyright 2011 (c) - Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | |
5 | * | |
6 | * LTTng probe calibration. | |
7 | * | |
8 | * Dual LGPL v2.1/GPL v2 license. | |
9 | */ | |
10 | ||
11 | #include "ltt-debugfs-abi.h" | |
12 | #include "ltt-events.h" | |
13 | ||
950f5c99 | 14 | noinline |
57105fc2 MD |
15 | void lttng_calibrate_kretprobe(void) |
16 | { | |
9b4a21cc | 17 | asm volatile (""); |
57105fc2 MD |
18 | } |
19 | ||
3db41b2c | 20 | int lttng_calibrate(struct lttng_kernel_calibrate *calibrate) |
57105fc2 MD |
21 | { |
22 | switch (calibrate->type) { | |
3db41b2c | 23 | case LTTNG_KERNEL_CALIBRATE_KRETPROBE: |
9b4a21cc | 24 | lttng_calibrate_kretprobe(); |
57105fc2 MD |
25 | break; |
26 | default: | |
27 | return -EINVAL; | |
28 | } | |
29 | return 0; | |
30 | } |