projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Namespace kernel version macros
[lttng-modules.git]
/
src
/
probes
/
lttng-probe-kvm-x86-mmu.c
diff --git
a/src/probes/lttng-probe-kvm-x86-mmu.c
b/src/probes/lttng-probe-kvm-x86-mmu.c
index 9ccc24223b415fa457230a5b9c473716cc78fbb2..37a5aed300c74a15dd09817c4013fe8abf708bfe 100644
(file)
--- a/
src/probes/lttng-probe-kvm-x86-mmu.c
+++ b/
src/probes/lttng-probe-kvm-x86-mmu.c
@@
-12,11
+12,11
@@
#include <lttng/tracer.h>
#include <lttng/kernel-version.h>
#include <lttng/tracer.h>
#include <lttng/kernel-version.h>
-#if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(4,1,0))
+#if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(4,1,0))
#include <kvm/iodev.h>
#include <kvm/iodev.h>
-#else /* #if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(4,1,0)) */
+#else /* #if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(4,1,0)) */
#include <../../virt/kvm/iodev.h>
#include <../../virt/kvm/iodev.h>
-#endif /* #else #if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(4,1,0)) */
+#endif /* #else #if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(4,1,0)) */
/*
* Create the tracepoint static inlines from the kernel to validate that our
/*
* Create the tracepoint static inlines from the kernel to validate that our
@@
-24,7
+24,17
@@
*/
#include <wrapper/tracepoint.h>
*/
#include <wrapper/tracepoint.h>
+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,9,0))
+#include <../../arch/x86/kvm/mmu/mmu_internal.h>
+#include <../../arch/x86/kvm/mmu/mmutrace.h>
+#else
#include <../../arch/x86/kvm/mmutrace.h>
#include <../../arch/x86/kvm/mmutrace.h>
+#endif
+
+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,10,0))
+#include <../arch/x86/kvm/mmu.h>
+#include <../arch/x86/kvm/mmu/spte.h>
+#endif
#undef TRACE_INCLUDE_PATH
#undef TRACE_INCLUDE_FILE
#undef TRACE_INCLUDE_PATH
#undef TRACE_INCLUDE_FILE
This page took
0.028616 seconds
and
4
git commands to generate.