[OE-core] [PATCH 2/7] lttng-modules: fix compilation for 3.17-rcX

Burton, Ross ross.burton at intel.com
Tue Sep 9 11:40:37 UTC 2014


On 8 September 2014 20:55, Bruce Ashfield <bruce.ashfield at windriver.com> wrote:
> +++ b/meta/recipes-kernel/lttng/lttng-modules/Fix-noargs-probes-should-calculate-alignment-and-eve.patch
> @@ -0,0 +1,127 @@
> +From d3de7f1468be0b18145ff85b3c1a7c7fb1d48c15 Mon Sep 17 00:00:00 2001
> +From: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>
> +Date: Fri, 25 Jul 2014 12:30:43 -0400
> +Subject: [PATCH 1/3] Fix: noargs probes should calculate alignment and event
> + length
> +
> +A noargs probe could have event fields. noargs just means that the probe
> +does not receive any argument as parameter. However, it could very well
> +serialize data into fields (global variables, constants, etc).
> +
> +It just happens that LTTng does not serialize any data in noargs events
> +at the moment, but this may very well change.
> +
> +The if (0) with (void) variable access strategy to stop compiler from
> +complaining from unused variables does not seem to work as expected with
> +gcc 4.9.1. Use "unused" attribute instead.
> +
> +Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>

These patches need Upstream-Status: Backport and your s-o-b.

Ross



More information about the Openembedded-core mailing list