[lttng-dev] [PATCH] Fix: RHEL 7.2 kvm instrumentation

Michael Jeanson mjeanson at efficios.com
Mon Jun 27 18:01:29 UTC 2016


Hi,

This patch does not seem to target master or even 2.8 since the 
LTTNG_RHEL_KERNEL_RANGE macro was modified to take 6 arguments per
RHEL kernel version.

We usually only accept patches targeted at master that are then
backported to supported versions.

Regards,

Michael

----- On Jun 27, 2016, at 11:26 AM, mo geb mohamad.gebai at gmail.com wrote:

> Signed-off-by: Mohamad Gebai < mohamad.gebai at gmail.com >
> ---
> instrumentation/events/lttng-module/arch/x86/kvm/trace.h | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
> 
> 
> diff --git a/instrumentation/events/lttng-module/arch/x86/kvm/trace.h
> b/instrumentation/events/lttng-module/arch/x86/kvm/trace.h
> index 1282bea..ef3d8aa 100644
> --- a/instrumentation/events/lttng-module/arch/x86/kvm/trace.h
> +++ b/instrumentation/events/lttng-module/arch/x86/kvm/trace.h
> @@ -429,7 +429,8 @@ LTTNG_TRACEPOINT_EVENT(kvm_emulate_insn,
> ctf_integer(__u8, len, vcpu->arch.emulate_ctxt.decode.eip
> - vcpu->arch.emulate_ctxt.decode.fetch.start)
> ctf_array(__u8, insn, vcpu->arch.emulate_ctxt.decode.fetch.data, 15)
> -#elif (LINUX_VERSION_CODE < KERNEL_VERSION(3,17,0))
> +#elif (LINUX_VERSION_CODE < KERNEL_VERSION(3,17,0) \
> + && !LTTNG_RHEL_KERNEL_RANGE(3,10,0,7,2, 3,11,0,0,0))
> ctf_integer(__u64, rip, vcpu->arch.emulate_ctxt.fetch.start)
> ctf_integer(__u32, csbase, kvm_x86_ops->get_segment_base(vcpu, VCPU_SREG_CS))
> ctf_integer(__u8, len, vcpu->arch.emulate_ctxt._eip
> --
> 2.1.1
> 
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev


More information about the lttng-dev mailing list