File update-kvm-instrumentation-for-4.15.patch of Package lttng-modules
48
1
From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
2
Date: Tue Dec 26 09:47:22 2017 -0500
3
Subject: Update kvm instrumentation for 4.15
4
Git-commit: 33630522da97345c2b0c569c04c1d5d33ab7efa6
5
References: none
6
Signed-off-by: Tony Jones <tonyj@suse.de>
7
8
Update kvm instrumentation for 4.15
9
10
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11
12
diff --git a/instrumentation/events/lttng-module/kvm.h b/instrumentation/events/lttng-module/kvm.h
13
index a8b3e9a..c01772c 100644
14
--- a/instrumentation/events/lttng-module/kvm.h
15
+++ b/instrumentation/events/lttng-module/kvm.h
16
17
{ KVM_TRACE_MMIO_READ, "read" }, \
18
{ KVM_TRACE_MMIO_WRITE, "write" }
19
20
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34))
21
+
22
+LTTNG_TRACEPOINT_EVENT(kvm_mmio,
23
+ TP_PROTO(int type, int len, u64 gpa, void *val),
24
+ TP_ARGS(type, len, gpa, val),
25
+
26
+ TP_FIELDS(
27
+ ctf_integer(u32, type, type)
28
+ ctf_integer(u32, len, len)
29
+ ctf_integer(u64, gpa, gpa)
30
+ ctf_sequence_hex(unsigned char, val, val, u32, len)
31
+ )
32
+)
33
+
34
+#else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,15,0)) */
35
+
36
LTTNG_TRACEPOINT_EVENT(kvm_mmio,
37
TP_PROTO(int type, int len, u64 gpa, u64 val),
38
TP_ARGS(type, len, gpa, val),
39
40
)
41
)
42
43
+#endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,15,0)) */
44
+
45
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34))
46
47
#define kvm_fpu_load_symbol \
48