Fix: bump stable kernel version ranges for clock work-around
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 13 Oct 2016 13:50:21 +0000 (15:50 +0200)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 13 Oct 2016 13:57:38 +0000 (15:57 +0200)
Linux commit 27727df240c7 ("Avoid taking lock in NMI path with
CONFIG_DEBUG_TIMEKEEPING"), changed the logic to open-code
the timekeeping_get_ns() function, but forgot to include
the unit conversion from cycles to nanoseconds, breaking the
function's output, which impacts LTTng.

We expected Linux commit 58bfea9532 "timekeeping: Fix
__ktime_get_fast_ns() regression" to make its way into stable
kernels promptly, but it appears new stable kernel releases were
done before the fix was cherry-picked from the master branch.

We therefore need to bump the version ranges for the work-around
in lttng-modules.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
CC: John Stultz <john.stultz@linaro.org>
wrapper/trace-clock.h

index 05472dc1cebcb341970e2f659ca64f1cefc058fa..9d80c45f6c7604f5f87d155775bc2aa8b7d79495 100644 (file)
  * CONFIG_DEBUG_TIMEKEEPING") introduces a buggy ktime_get_mono_fast_ns().
  * This is fixed by patch "timekeeping: Fix __ktime_get_fast_ns() regression".
  */
-#if (LTTNG_KERNEL_RANGE(4,8,0, 4,8,1) \
-       || LTTNG_KERNEL_RANGE(4,7,4, 4,7,7) \
-       || LTTNG_KERNEL_RANGE(4,4,20, 4,4,24) \
-       || LTTNG_KERNEL_RANGE(4,1,32, 4,1,34))
+#if (LTTNG_KERNEL_RANGE(4,8,0, 4,8,2) \
+       || LTTNG_KERNEL_RANGE(4,7,4, 4,7,8) \
+       || LTTNG_KERNEL_RANGE(4,4,20, 4,4,25) \
+       || LTTNG_KERNEL_RANGE(4,1,32, 4,1,35))
 #define LTTNG_CLOCK_NMI_SAFE_BROKEN
 #endif
 
This page took 0.026498 seconds and 4 git commands to generate.