From: Jonathan Rajotte Date: Fri, 23 Oct 2015 15:32:44 +0000 (-0400) Subject: Fix: load event state (enabled/disabled) correctly X-Git-Tag: v2.9.0-rc1~240 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=d7b645e2c77977a8a83362f27094bf6d126f6fb8;hp=d7b645e2c77977a8a83362f27094bf6d126f6fb8;p=lttng-tools.git Fix: load event state (enabled/disabled) correctly This bug fix is a workaround due to limitations of lttng_disable_event_ext regarding the disabling of events with similar name but different characteristics. Although lttng_disable_event_ext provides support for disabling by name and filter string it does not support exclusion. The loading of events is cut in 3 phases. 1 - Create all events regardless of their state. 2 - Disable all events. 3 - Enable only the events with the 'enabled' state. Fixes #959 Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau ---