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 | { | |
16 | } | |
17 | ||
18 | int lttng_calibrate(struct lttng_calibrate *calibrate) | |
19 | { | |
20 | switch (calibrate->type) { | |
21 | case LTTNG_CALIBRATE_KRETPROBE: | |
22 | calibrate->u.kretprobe.addr = <tng_calibrate_kretprobe; | |
23 | break; | |
24 | default: | |
25 | return -EINVAL; | |
26 | } | |
27 | return 0; | |
28 | } |