Fix mm_vmscan_lru_isolate tracepoint for RHEL 9.4 kernel
[lttng-modules.git] / src / lttng-calibrate.c
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
14 static noinline
15 void lttng_calibrate_kretprobe(void)
16 {
17 asm volatile ("");
18 }
19
20 int 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.030967 seconds and 5 git commands to generate.