Fix enable-event for UST events
authorDavid Goulet <david.goulet@polymtl.ca>
Tue, 29 Nov 2011 22:09:27 +0000 (17:09 -0500)
committerDavid Goulet <david.goulet@polymtl.ca>
Tue, 29 Nov 2011 22:09:27 +0000 (17:09 -0500)
commitedb6738816b442fb81f12ea0079260c96c3a5759
treee84d37ad2997df54daa9221c0d20dfea12874451
parent3b25d04d4b29a50147e9b42b475153d7b80d1dff
Fix enable-event for UST events

When enabling an existing event, a new event creation occured which was
simply the bad thing to do. This patch fix that by adding the
enable_ust_event call for the case.

Also fixes a segfault where any UST object could be release with the
data pointer being set to NULL.

This patch introduce also assert() in the UST app code for
create/enable/disable event. The purpose is to catch, in dev, the bad
code execution flow and fix it.

Signed-off-by: David Goulet <david.goulet@polymtl.ca>
lttng-sessiond/event.c
lttng-sessiond/event.h
lttng-sessiond/main.c
lttng-sessiond/ust-app.c
lttng-sessiond/ust-app.h
This page took 0.032531 seconds and 4 git commands to generate.