* [PATCH] lttng-module: sched.h: Fix compilation on 3.9 kernel
@ 2013-03-22 12:58 maxin.john
0 siblings, 0 replies; 2+ messages in thread
From: maxin.john @ 2013-03-22 12:58 UTC (permalink / raw)
To: mathieu.desnoyers; +Cc: lttng-dev, Maxin B. John
From: "Maxin B. John" <maxin.john@enea.com>
With commit 8bd75c77b7c6a3954140dd2e20346aef3efe4a35
included in 3.9-rc1 kernel, rt specific bits in "linux/sched.h"
were moved into new header file "linux/sched/rt.h".
Fixes this compilation error:
CC [M] /home/majo/lttng/lttng-modules/probes/lttng-probe-sched.o
...
/home/majo/lttng/lttng-modules/probes/../instrumentation/events/lttng-module
/../../../probes/../instrumentation/events/lttng-module/sched.h:
In function '__event_probe__sched_switch':
/home/majo/lttng/lttng-modules/probes/../instrumentation/events/lttng-module
/../../../probes/../instrumentation/events/lttng-module/sched.h:164:1:
error: 'MAX_RT_PRIO' undeclared (first use in this function)
...
Signed-off-by: Maxin B. John <maxin.john@enea.com>
---
instrumentation/events/lttng-module/sched.h | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/instrumentation/events/lttng-module/sched.h b/instrumentation/events/lttng-module/sched.h
index e42acd2..25faad0 100644
--- a/instrumentation/events/lttng-module/sched.h
+++ b/instrumentation/events/lttng-module/sched.h
@@ -8,6 +8,9 @@
#include <linux/tracepoint.h>
#include <linux/binfmts.h>
#include <linux/version.h>
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,9,0))
+#include <linux/sched/rt.h>
+#endif
#ifndef _TRACE_SCHED_DEF_
#define _TRACE_SCHED_DEF_
--
1.7.5.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] lttng-module: sched.h: Fix compilation on 3.9 kernel
[not found] <1363957095-54785-1-git-send-email-maxin.john@enea.com>
@ 2013-03-22 14:00 ` Mathieu Desnoyers
0 siblings, 0 replies; 2+ messages in thread
From: Mathieu Desnoyers @ 2013-03-22 14:00 UTC (permalink / raw)
To: maxin.john; +Cc: lttng-dev
* maxin.john@enea.com (maxin.john@enea.com) wrote:
> From: "Maxin B. John" <maxin.john@enea.com>
>
> With commit 8bd75c77b7c6a3954140dd2e20346aef3efe4a35
> included in 3.9-rc1 kernel, rt specific bits in "linux/sched.h"
> were moved into new header file "linux/sched/rt.h".
merged into both master and stable-2.1 branches, thanks!
Mathieu
>
> Fixes this compilation error:
> CC [M] /home/majo/lttng/lttng-modules/probes/lttng-probe-sched.o
> ...
> /home/majo/lttng/lttng-modules/probes/../instrumentation/events/lttng-module
> /../../../probes/../instrumentation/events/lttng-module/sched.h:
> In function '__event_probe__sched_switch':
> /home/majo/lttng/lttng-modules/probes/../instrumentation/events/lttng-module
> /../../../probes/../instrumentation/events/lttng-module/sched.h:164:1:
> error: 'MAX_RT_PRIO' undeclared (first use in this function)
> ...
>
> Signed-off-by: Maxin B. John <maxin.john@enea.com>
> ---
> instrumentation/events/lttng-module/sched.h | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/instrumentation/events/lttng-module/sched.h b/instrumentation/events/lttng-module/sched.h
> index e42acd2..25faad0 100644
> --- a/instrumentation/events/lttng-module/sched.h
> +++ b/instrumentation/events/lttng-module/sched.h
> @@ -8,6 +8,9 @@
> #include <linux/tracepoint.h>
> #include <linux/binfmts.h>
> #include <linux/version.h>
> +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,9,0))
> +#include <linux/sched/rt.h>
> +#endif
>
> #ifndef _TRACE_SCHED_DEF_
> #define _TRACE_SCHED_DEF_
> --
> 1.7.5.4
>
--
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-22 14:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-22 12:58 [PATCH] lttng-module: sched.h: Fix compilation on 3.9 kernel maxin.john
[not found] <1363957095-54785-1-git-send-email-maxin.john@enea.com>
2013-03-22 14:00 ` Mathieu Desnoyers
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.