File fix-kvm-instrumentation-for-4.15.patch of Package lttng-modules.7724

From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Date:   Wed Dec 27 09:07:30 2017 -0500
Subject: Fix: kvm instrumentation for 4.15
Git-commit: d9f561bcd7376b2c26586b7229b670ca394bc4e4
References: none
Signed-off-by: Tony Jones <tonyj@suse.de>

    [adjust for SLE]
    Fix: kvm instrumentation for 4.15
    
    Incorrect version range.
    
    Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>

diff --git a/instrumentation/events/lttng-module/kvm.h b/instrumentation/events/lttng-module/kvm.h
index c01772c..ec74bdd 100644
--- a/instrumentation/events/lttng-module/kvm.h
+++ b/instrumentation/events/lttng-module/kvm.h
@@ -84,7 +84,7 @@ LTTNG_TRACEPOINT_EVENT(kvm_ack_irq,
 	{ KVM_TRACE_MMIO_READ, "read" }, \
 	{ KVM_TRACE_MMIO_WRITE, "write" }
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,15,0) || defined(CONFIG_SUSE_KERNEL))
 
 LTTNG_TRACEPOINT_EVENT(kvm_mmio,
 	TP_PROTO(int type, int len, u64 gpa, void *val),
openSUSE Build Service is sponsored by