Fix: build kvm probe on EL 8.4+
[lttng-modules.git] / src / probes / lttng-probe-kvm-x86.c
CommitLineData
b7cdc182 1/* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only)
9f36eaed 2 *
b3c40230
MG
3 * probes/lttng-probe-kvm.c
4 *
5 * LTTng kvm probes.
6 *
7 * Copyright (C) 2010-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
b3c40230
MG
8 */
9
10#include <linux/module.h>
11#include <linux/kvm_host.h>
2df37e95
MD
12#include <lttng/tracer.h>
13#include <lttng/kernel-version.h>
1de8b2e4 14
92e7fc02
KS
15#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,7,0) || \
16 LTTNG_RHEL_KERNEL_RANGE(4,18,0,240,15,1, 4,19,0,0,0,0))
9cc9518e
MD
17#include <kvm_emulate.h>
18#endif
19
1de8b2e4 20#include <kvm/iodev.h>
b3c40230
MG
21
22/*
23 * Create the tracepoint static inlines from the kernel to validate that our
24 * trace event macros match the kernel we run on.
25 */
26#include <trace/events/kvm.h>
27
156a3977 28#include <wrapper/tracepoint.h>
b3c40230
MG
29
30/*
31 * Create LTTng tracepoint probes.
32 */
33#define LTTNG_PACKAGE_BUILD
34#define CREATE_TRACE_POINTS
35
4f47ccf0
MD
36#define TRACE_INCLUDE_PATH instrumentation/events/arch/x86/kvm
37#include <instrumentation/events/arch/x86/kvm/trace.h>
b3c40230
MG
38
39MODULE_LICENSE("GPL and additional rights");
40MODULE_AUTHOR("Mathieu Desnoyers <mathieu.desnoyers@efficios.com>");
41MODULE_DESCRIPTION("LTTng kvm probes");
13ab8b0a
MD
42MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "."
43 __stringify(LTTNG_MODULES_MINOR_VERSION) "."
44 __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION)
45 LTTNG_MODULES_EXTRAVERSION);
This page took 0.0577 seconds and 4 git commands to generate.