From: David Goulet Date: Tue, 29 Nov 2011 22:09:27 +0000 (-0500) Subject: Fix enable-event for UST events X-Git-Tag: v2.0-pre15~64 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=edb6738816b442fb81f12ea0079260c96c3a5759;hp=edb6738816b442fb81f12ea0079260c96c3a5759 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 ---