From: Jonathan Rajotte Date: Wed, 25 Mar 2020 22:49:32 +0000 (-0400) Subject: notification: add/remove tracer event source X-Git-Tag: v2.13.0-rc1~393 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=d02d7404fac685cd836b53e121afc64af71af140;hp=d02d7404fac685cd836b53e121afc64af71af140 notification: add/remove tracer event source The notification thread will be responsible of consuming the tracer notification event coming from the UST tracers and kernel tracer. On a 'add' operation, the tracer event source (i.e read side of a pipe) is added to the notification poll set. Book-keeping is also done via a list for later lookup. On 'remove', the event source is removed from the pollset and from the list. On cleanup (notification_thread_handle_destroy), it is expected that all added tracer event sources be removed by their respective "adder". No bulk cleanup is performed. Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau Change-Id: I23679922a58849c9bc86f30b2aae17b39fa2e222 ---