Add condition-targeting error query
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 9 Jun 2021 21:58:45 +0000 (17:58 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 16 Jun 2021 15:40:25 +0000 (11:40 -0400)
commit63dd3d7b5b0979c4b11a6bb8d0e4155120482977
treefd025fd1120009c9714a614e8651511f6bece784
parenta8940c5eb1046e84c10bb0cf72c0f2575a8c9e4e
Add condition-targeting error query

Notifications discarded by the tracers are reported at the level of a
trigger. As those errors are specific to triggers with an "event-rule
matches" condition, they should be reported through a condition-specific
error query.

Note that a condition error query is created from a trigger: there is no
ambiguity since, unlike actions, conditions cannot be nested.

Given the proximity of the final 2.13 release, the code which populated
trigger error query results is simply used to populate the condition
error query results when the condition is of type "event-rule matches".

No trigger-scope errors can be reported for the moment. However, such
error reports will be added in the future.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Ie1ac3668142041beb6fd61574ccef506707c55b2
include/lttng/error-query-internal.h
include/lttng/error-query.h
include/lttng/trigger/trigger-internal.h
src/bin/lttng-sessiond/cmd.c
src/bin/lttng-sessiond/trigger-error-query.c
src/bin/lttng/commands/list_triggers.c
src/common/error-query.c
tests/regression/tools/notification/test_notification_notifier_discarded_count
tests/regression/tools/trigger/test_list_triggers_cli
tests/regression/tools/trigger/test_remove_trigger_cli
tests/regression/ust/python-logging/test_python_logging.in
This page took 0.028982 seconds and 4 git commands to generate.