summaryrefslogtreecommitdiff
path: root/drivers/staging/lttng/lttng-calibrate.c
blob: 07e3c5b3415366514c5d040cd455b7e26fc54d6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * lttng-calibrate.c
 *
 * Copyright 2011 (c) - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
 *
 * LTTng probe calibration.
 *
 * Dual LGPL v2.1/GPL v2 license.
 */

#include "ltt-debugfs-abi.h"
#include "ltt-events.h"

noinline
void lttng_calibrate_kretprobe(void)
{
	asm volatile ("");
}

int lttng_calibrate(struct lttng_kernel_calibrate *calibrate)
{
	switch (calibrate->type) {
	case LTTNG_KERNEL_CALIBRATE_KRETPROBE:
		lttng_calibrate_kretprobe();
		break;
	default:
		return -EINVAL;
	}
	return 0;
}