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 | ||
14 | void lttng_calibrate_kretprobe(void) | |
15 | { | |
9b4a21cc | 16 | asm volatile (""); |
57105fc2 MD |
17 | } |
18 | ||
19 | int lttng_calibrate(struct lttng_calibrate *calibrate) | |
20 | { | |
21 | switch (calibrate->type) { | |
22 | case LTTNG_CALIBRATE_KRETPROBE: | |
9b4a21cc | 23 | lttng_calibrate_kretprobe(); |
57105fc2 MD |
24 | break; |
25 | default: | |
26 | return -EINVAL; | |
27 | } | |
28 | return 0; | |
29 | } |