From: Michael Jeanson Date: Thu, 8 Nov 2018 20:51:14 +0000 (-0500) Subject: Drop support for kernels < 3.0 from kvm instrumentation X-Git-Tag: v2.12.0-pre~83 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=55dac15aef598fdebea37418435212ba9ef32701;p=lttng-modules.git Drop support for kernels < 3.0 from kvm instrumentation Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- diff --git a/instrumentation/events/lttng-module/kvm.h b/instrumentation/events/lttng-module/kvm.h index 62030fcc..4868d894 100644 --- a/instrumentation/events/lttng-module/kvm.h +++ b/instrumentation/events/lttng-module/kvm.h @@ -8,8 +8,6 @@ #undef TRACE_SYSTEM #define TRACE_SYSTEM kvm -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38)) - LTTNG_TRACEPOINT_EVENT(kvm_userspace_exit, TP_PROTO(__u32 reason, int errno), TP_ARGS(reason, errno), @@ -19,7 +17,6 @@ LTTNG_TRACEPOINT_EVENT(kvm_userspace_exit, ctf_integer(int, errno, errno) ) ) -#endif #if (LINUX_VERSION_CODE < KERNEL_VERSION(3,6,0)) #if defined(__KVM_HAVE_IOAPIC) @@ -142,8 +139,6 @@ LTTNG_TRACEPOINT_EVENT(kvm_mmio, #endif -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34)) - #define kvm_fpu_load_symbol \ {0, "unload"}, \ {1, "load"} @@ -187,9 +182,6 @@ LTTNG_TRACEPOINT_EVENT(kvm_age_page, ) ) #endif -#endif - -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38)) #ifdef CONFIG_KVM_ASYNC_PF LTTNG_TRACEPOINT_EVENT_CLASS(kvm_async_get_page_class, @@ -276,8 +268,6 @@ LTTNG_TRACEPOINT_EVENT( #endif -#endif - #endif /* LTTNG_TRACE_KVM_MAIN_H */ /* This part must be outside protection */