Warn and return on fd overflow fdt
[lttng-modules.git] / src / lttng-calibrate.c
... / ...
CommitLineData
1/* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only)
2 *
3 * lttng-calibrate.c
4 *
5 * LTTng probe calibration.
6 *
7 * Copyright (C) 2010-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
8 */
9
10#include <lttng/abi.h>
11#include <lttng/events.h>
12#include <lttng/events-internal.h>
13
14static noinline
15void lttng_calibrate_kretprobe(void)
16{
17 asm volatile ("");
18}
19
20int lttng_calibrate(struct lttng_kernel_abi_calibrate *calibrate)
21{
22 switch (calibrate->type) {
23 case LTTNG_KERNEL_ABI_CALIBRATE_KRETPROBE:
24 lttng_calibrate_kretprobe();
25 break;
26 default:
27 return -EINVAL;
28 }
29 return 0;
30}
This page took 0.024135 seconds and 5 git commands to generate.