[lttng-dev] [PATCH] Fix: timer instrumentation for RHEL 7.6

2018-12-06 Thread Michael Jeanson
Signed-off-by: Michael Jeanson 
---
 instrumentation/events/lttng-module/timer.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/instrumentation/events/lttng-module/timer.h 
b/instrumentation/events/lttng-module/timer.h
index a007fd2..8703ea0 100644
--- a/instrumentation/events/lttng-module/timer.h
+++ b/instrumentation/events/lttng-module/timer.h
@@ -45,7 +45,8 @@ LTTNG_TRACEPOINT_EVENT_INSTANCE(timer_class, timer_init,
TP_ARGS(timer)
 )
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,2,0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,2,0) || \
+   LTTNG_RHEL_KERNEL_RANGE(3,10,0,957,0,0, 3,11,0,0,0,0))
 /**
  * timer_start - called when the timer is started
  * @timer: pointer to struct timer_list
-- 
2.17.1

___
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev


Re: [lttng-dev] [PATCH] Fix: timer instrumentation for RHEL 7.6

2018-12-06 Thread Mathieu Desnoyers
My dear Michael,

Your patch has been merged into lttng-modules master, 2.10, 2.9,

I wish you a wonderful day!

Thanks,

Mathieu

- On Dec 6, 2018, at 11:31 AM, Michael Jeanson mjean...@efficios.com wrote:

> Signed-off-by: Michael Jeanson 
> ---
> instrumentation/events/lttng-module/timer.h | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/instrumentation/events/lttng-module/timer.h
> b/instrumentation/events/lttng-module/timer.h
> index a007fd2..8703ea0 100644
> --- a/instrumentation/events/lttng-module/timer.h
> +++ b/instrumentation/events/lttng-module/timer.h
> @@ -45,7 +45,8 @@ LTTNG_TRACEPOINT_EVENT_INSTANCE(timer_class, timer_init,
>   TP_ARGS(timer)
> )
> 
> -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,2,0))
> +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,2,0) || \
> + LTTNG_RHEL_KERNEL_RANGE(3,10,0,957,0,0, 3,11,0,0,0,0))
> /**
>  * timer_start - called when the timer is started
>  * @timer:pointer to struct timer_list
> --
> 2.17.1

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
___
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev