From: Mathieu Desnoyers Date: Tue, 26 Dec 2017 14:47:22 +0000 (-0500) Subject: Update kvm instrumentation for 4.15 X-Git-Tag: v2.11.0-rc1~92 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=33630522da97345c2b0c569c04c1d5d33ab7efa6;p=lttng-modules.git Update kvm instrumentation for 4.15 Signed-off-by: Mathieu Desnoyers --- diff --git a/instrumentation/events/lttng-module/kvm.h b/instrumentation/events/lttng-module/kvm.h index a8b3e9a0..c01772ce 100644 --- a/instrumentation/events/lttng-module/kvm.h +++ b/instrumentation/events/lttng-module/kvm.h @@ -84,6 +84,22 @@ 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)) + +LTTNG_TRACEPOINT_EVENT(kvm_mmio, + TP_PROTO(int type, int len, u64 gpa, void *val), + TP_ARGS(type, len, gpa, val), + + TP_FIELDS( + ctf_integer(u32, type, type) + ctf_integer(u32, len, len) + ctf_integer(u64, gpa, gpa) + ctf_sequence_hex(unsigned char, val, val, u32, len) + ) +) + +#else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,15,0)) */ + LTTNG_TRACEPOINT_EVENT(kvm_mmio, TP_PROTO(int type, int len, u64 gpa, u64 val), TP_ARGS(type, len, gpa, val), @@ -96,6 +112,8 @@ LTTNG_TRACEPOINT_EVENT(kvm_mmio, ) ) +#endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,15,0)) */ + #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34)) #define kvm_fpu_load_symbol \