notification: transmit originating trigger as part of evaluation
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 7 Apr 2021 00:41:25 +0000 (20:41 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 7 Apr 2021 02:06:54 +0000 (22:06 -0400)
commit52d55cf94968516273d6c67f2db428908def55ac
tree6a5e9326f3a2371dbbc30f601072560eea0880b7
parent367a3bba666f7790d0deb4b183e6950509f9445d
notification: transmit originating trigger as part of evaluation

Transmit the full trigger object instead of its condition when sending a
notification to a client. This allows clients to reliably filter on
triggers as, currently, only the name of a trigger is made available to
clients as part of the "on_event" evaluation object (the owner uid is
needed to perform a correct comparison for filtering).

This will also make the trigger accessible for all condition types.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I61d587436177eb34744487a1d3c486d87fe2e1f1
include/lttng/notification/notification-internal.h
src/bin/lttng-sessiond/action-executor.c
src/bin/lttng-sessiond/notification-thread-events.c
src/bin/lttng-sessiond/notification-thread-internal.h
src/common/notification.c
This page took 0.036667 seconds and 4 git commands to generate.