Fix: noargs probes should calculate alignment and event length
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 25 Jul 2014 16:30:43 +0000 (12:30 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 25 Jul 2014 16:33:20 +0000 (12:33 -0400)
commitd3de7f1468be0b18145ff85b3c1a7c7fb1d48c15
tree2b05acf0581cd7a62a780a805d081bacbebbd1de
parent0007344741ef65259bc52dea72259173dfbf96c0
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@efficios.com>
probes/lttng-events.h
This page took 0.033338 seconds and 4 git commands to generate.