Fix: load event state (enabled/disabled) correctly
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Fri, 23 Oct 2015 15:32:44 +0000 (11:32 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 20 May 2016 20:41:49 +0000 (16:41 -0400)
commitb2f26ff8607f18abba98718fb6a114ea04142975
tree971f7b06242631ca17d43a2cde7209047d45a79b
parentf4d404d145e884bccaf45754fb2bc5168ed114b9
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 <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/config/config.c
This page took 0.025191 seconds and 4 git commands to generate.