fix: Move mmutrace.h into the mmu/ sub-directory (v5.9)
[lttng-modules.git] / src / probes / lttng-probe-kvm-x86-mmu.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
MD
14
15#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0))
16#include <kvm/iodev.h>
17#else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0)) */
18#include <../../virt/kvm/iodev.h>
19#endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0)) */
b3c40230
MG
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 */
156a3977 25#include <wrapper/tracepoint.h>
b3c40230 26
30baa3ce
MJ
27#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,9,0))
28#include <../../arch/x86/kvm/mmu/mmutrace.h>
29#else
c035cd50 30#include <../../arch/x86/kvm/mmutrace.h>
30baa3ce 31#endif
c035cd50
MD
32
33#undef TRACE_INCLUDE_PATH
34#undef TRACE_INCLUDE_FILE
35
b3c40230
MG
36/*
37 * Create LTTng tracepoint probes.
38 */
39#define LTTNG_PACKAGE_BUILD
40#define CREATE_TRACE_POINTS
41
4f47ccf0
MD
42#define TRACE_INCLUDE_PATH instrumentation/events/arch/x86/kvm
43#include <instrumentation/events/arch/x86/kvm/mmutrace.h>
b3c40230
MG
44
45MODULE_LICENSE("GPL and additional rights");
46MODULE_AUTHOR("Mathieu Desnoyers <mathieu.desnoyers@efficios.com>");
47MODULE_DESCRIPTION("LTTng kvm mmu probes");
13ab8b0a
MD
48MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "."
49 __stringify(LTTNG_MODULES_MINOR_VERSION) "."
50 __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION)
51 LTTNG_MODULES_EXTRAVERSION);
This page took 0.041914 seconds and 4 git commands to generate.