lttng enable-channel memsets lttng_channel to -1
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 8 Mar 2016 03:35:23 +0000 (22:35 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 8 Mar 2016 03:35:23 +0000 (22:35 -0500)
commit394ff38e77d4510a4ff806eb187bf739e84561c6
tree5bad08b2d44e1f79ff84b8091233e1a76503e4a3
parent4829ae55233bf50132357078912ce369e660ba18
lttng enable-channel memsets lttng_channel to -1

The lttng enable-channel command uses a global
struct lttng_channel which it initializes to contain all "-1".

This is a hack used to set tag all attributes as "unset" which
has the unfortunate consequence of setting the extended pointer
to a non-sensical value. This workaround explicitly sets the
extended pointer to NULL, but this command should be refactored so
it is no longer necessary.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng/commands/enable_channels.c
This page took 0.026524 seconds and 5 git commands to generate.