Fix: lttng-modules teardown NULL pointer OOPS
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 26 Sep 2014 00:35:59 +0000 (20:35 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 26 Sep 2014 00:44:55 +0000 (20:44 -0400)
commita36580d58f21f305c1f2465acba726c1e9b82ae8
tree175dcbdc59a27aad7f3375ba114ed821af2ffd72
parentde23d59d5992b7354b57a533b4d582809ef8d43c
Fix: lttng-modules teardown NULL pointer OOPS

Accessing the lttng channel and lttng session from the metadata ring
buffer client is a bad idea, because we don't have any reference
ensuring those are valid for the lifetime of the metadata cache.
Therefore, rather than keeping a lttng channel as private data pointer
for the metadata ring buffer channel, keep a pointer to the metadata
cache instead: this will ensure we don't shoot ourself in the foot and
access data we for which coherency is not guaranteed (we don't hold any
reference to it).

Anyway, the only reason why we needed to access the lttng session from
the metadata client in the first place was the UUID of the session. Copy
it into the metadata cache instead.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng-events.c
lttng-events.h
lttng-ring-buffer-metadata-client.h
This page took 0.025824 seconds and 4 git commands to generate.