actions: introduce action group
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 2 Dec 2019 21:41:52 +0000 (16:41 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 12 Jun 2020 22:12:05 +0000 (18:12 -0400)
commit0c51e8f329cdd907761e34c3e4394200a56c6812
tree1f859b49cbef28e449b4f9cc5a95f4366d1c2a49
parentc852ce4e1d4ab0028ecee333a3ffc83de32f44bf
actions: introduce action group

This patch introduces action groups as a new kind of action.

When creating a trigger, it is only possible to attach a single action.
Action groups allow users to attach more than one action.

A group is created using lttng_action_group_create.  Actions are added
to it using lttng_action_group_add_action.  The group can then be used
in a trigger, like any other action.

The operations required to be implemented by actions (serialize,
create_from_buffer, validate) are implemented by executing the operation
on all elements.

Current limitations are:

- To avoid any cycle, it is not possible to add a group inside a group.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Change-Id: I2ae6aed21d9a6b45510d37a435773b1bd7d76528
include/Makefile.am
include/lttng/action/action.h
include/lttng/action/group-internal.h [new file with mode: 0644]
include/lttng/action/group.h [new file with mode: 0644]
include/lttng/lttng.h
src/common/Makefile.am
src/common/actions/action.c
src/common/actions/group.c [new file with mode: 0644]
src/common/actions/snapshot-session.c
This page took 0.034344 seconds and 4 git commands to generate.