[lttng-dev] [PATCH lttng-modules 2/2] Fix: SCSI instrumentation for SLES12 SP2

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Wed Dec 7 01:38:29 UTC 2016


----- On Dec 6, 2016, at 6:05 PM, Michael Jeanson mjeanson at efficios.com wrote:

> Signed-off-by: Michael Jeanson <mjeanson at efficios.com>
> ---
> instrumentation/events/lttng-module/scsi.h | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/instrumentation/events/lttng-module/scsi.h
> b/instrumentation/events/lttng-module/scsi.h
> index 02e3353..7c6ecf1 100644
> --- a/instrumentation/events/lttng-module/scsi.h
> +++ b/instrumentation/events/lttng-module/scsi.h
> @@ -15,7 +15,8 @@
> 
> #define scsi_opcode_name(opcode)	{ opcode, #opcode }
> 
> -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,7,0))
> +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,7,0) \
> +	|| LTTNG_SLE_KERNEL_RANGE(4,4,9,36,0,0 ,4,5,0,0,0,0))

I typically do:

LTTNG_SLE_KERNEL_RANGE(4,4,9,36,0,0, 4,5,0,0,0,0)

(spacing and comma layout)

Thanks,

Mathieu

> 
> #define show_opcode_name(val)					\
> 	__print_symbolic(val,					\
> --
> 2.7.4

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com


More information about the lttng-dev mailing list