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