Cleanup: Move lttng-modules instrumentation headers
[lttng-modules.git] / 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
9cc9518e
MD
15#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,7,0))
16#include <kvm_emulate.h>
17#endif
18
1de8b2e4
MD
19#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0))
20#include <kvm/iodev.h>
21#else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0)) */
22#include <../../virt/kvm/iodev.h>
23#endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0)) */
b3c40230
MG
24
25/*
26 * Create the tracepoint static inlines from the kernel to validate that our
27 * trace event macros match the kernel we run on.
28 */
29#include <trace/events/kvm.h>
30
156a3977 31#include <wrapper/tracepoint.h>
b3c40230
MG
32
33/*
34 * Create LTTng tracepoint probes.
35 */
36#define LTTNG_PACKAGE_BUILD
37#define CREATE_TRACE_POINTS
38
4f47ccf0
MD
39#define TRACE_INCLUDE_PATH instrumentation/events/arch/x86/kvm
40#include <instrumentation/events/arch/x86/kvm/trace.h>
b3c40230
MG
41
42MODULE_LICENSE("GPL and additional rights");
43MODULE_AUTHOR("Mathieu Desnoyers <mathieu.desnoyers@efficios.com>");
44MODULE_DESCRIPTION("LTTng kvm probes");
13ab8b0a
MD
45MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "."
46 __stringify(LTTNG_MODULES_MINOR_VERSION) "."
47 __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION)
48 LTTNG_MODULES_EXTRAVERSION);
This page took 0.036468 seconds and 4 git commands to generate.