Add calibration ioctl
[lttng-modules.git] / lttng-calibrate.c
CommitLineData
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
14void lttng_calibrate_kretprobe(void)
15{
16}
17
18int lttng_calibrate(struct lttng_calibrate *calibrate)
19{
20 switch (calibrate->type) {
21 case LTTNG_CALIBRATE_KRETPROBE:
22 calibrate->u.kretprobe.addr = &lttng_calibrate_kretprobe;
23 break;
24 default:
25 return -EINVAL;
26 }
27 return 0;
28}
This page took 0.023574 seconds and 4 git commands to generate.