projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: reuse code in accept() and accept4() instrumentation
[lttng-modules.git]
/
probes
/
lttng-probe-kvm-x86-mmu.c
diff --git
a/probes/lttng-probe-kvm-x86-mmu.c
b/probes/lttng-probe-kvm-x86-mmu.c
index 1710cfc4c28c23cb2f0a91ec14cbc4d9ca92a38a..ca5444ac33ff92c1fbdb3aefb6976ce09e7b8946 100644
(file)
--- a/
probes/lttng-probe-kvm-x86-mmu.c
+++ b/
probes/lttng-probe-kvm-x86-mmu.c
@@
-22,8
+22,8
@@
#include <linux/module.h>
#include <linux/kvm_host.h>
#include <linux/module.h>
#include <linux/kvm_host.h>
-#include
"../lttng-tracer.h"
-#include
"../lttng-kernel-version.h"
+#include
<lttng-tracer.h>
+#include
<lttng-kernel-version.h>
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0))
#include <kvm/iodev.h>
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0))
#include <kvm/iodev.h>
@@
-35,7
+35,12
@@
* Create the tracepoint static inlines from the kernel to validate that our
* trace event macros match the kernel we run on.
*/
* Create the tracepoint static inlines from the kernel to validate that our
* trace event macros match the kernel we run on.
*/
-#include "../wrapper/tracepoint.h"
+#include <wrapper/tracepoint.h>
+
+#include <../../arch/x86/kvm/mmutrace.h>
+
+#undef TRACE_INCLUDE_PATH
+#undef TRACE_INCLUDE_FILE
/*
* Create LTTng tracepoint probes.
/*
* Create LTTng tracepoint probes.
@@
-43,8
+48,8
@@
#define LTTNG_PACKAGE_BUILD
#define CREATE_TRACE_POINTS
#define LTTNG_PACKAGE_BUILD
#define CREATE_TRACE_POINTS
-#define TRACE_INCLUDE_PATH
../
instrumentation/events/lttng-module/arch/x86/kvm
-#include
"../instrumentation/events/lttng-module/arch/x86/kvm/mmutrace.h"
+#define TRACE_INCLUDE_PATH instrumentation/events/lttng-module/arch/x86/kvm
+#include
<instrumentation/events/lttng-module/arch/x86/kvm/mmutrace.h>
MODULE_LICENSE("GPL and additional rights");
MODULE_AUTHOR("Mathieu Desnoyers <mathieu.desnoyers@efficios.com>");
MODULE_LICENSE("GPL and additional rights");
MODULE_AUTHOR("Mathieu Desnoyers <mathieu.desnoyers@efficios.com>");
This page took
0.023509 seconds
and
4
git commands to generate.