[lttng-dev] [PATCH lttng-modules 1/2] Fix compilation for 3.0 branch (>= 3.0.39).

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Fri Nov 23 18:12:04 EST 2012


* Simon Marchi (simon.marchi at polymtl.ca) wrote:
> The isolate_mode_t type that appeared in 3.2 was backported to 3.0.39 so
> the version check must be fixed. It was not backported to the 3.1 branch
> though, so it must be excluded.

Merged, thanks!

Mathieu

> 
> Signed-off-by: Simon Marchi <simon.marchi at polymtl.ca>
> ---
>  probes/lttng-probe-vmscan.c |    5 ++++-
>  1 files changed, 4 insertions(+), 1 deletions(-)
> 
> diff --git a/probes/lttng-probe-vmscan.c b/probes/lttng-probe-vmscan.c
> index 2abd0e4..0205c7e 100644
> --- a/probes/lttng-probe-vmscan.c
> +++ b/probes/lttng-probe-vmscan.c
> @@ -30,6 +30,8 @@
>   */
>  #include <trace/events/vmscan.h>
>  
> +#include "../lttng-kernel-version.h"
> +
>  /*
>   * Create LTTng tracepoint probes.
>   */
> @@ -37,7 +39,8 @@
>  #define CREATE_TRACE_POINTS
>  #define TRACE_INCLUDE_PATH ../instrumentation/events/lttng-module
>  
> -#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,2,0))
> +#if (LINUX_VERSION_CODE <= KERNEL_VERSION(3,0,38)) || \
> +	LTTNG_KERNEL_RANGE(3,1,0, 3,1,10)
>  typedef int isolate_mode_t;
>  #endif
>  
> -- 
> 1.7.1
> 
> 
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

-- 
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com



More information about the lttng-dev mailing list