CLI: make list-triggers command print capture expressions
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 21 May 2020 02:42:00 +0000 (22:42 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 16 Mar 2021 20:40:01 +0000 (16:40 -0400)
commitb203b4b06b6d895d6745f3c45b83b2a36ae6a989
tree1d6ef388306a7ce4054c8945335fd21a5668ac91
parentbbd6675c857ad9bf95e59446476cab19d1f6736e
CLI: make list-triggers command print capture expressions

When printing an event rule condition, in the `list-triggers` command,
print the capture expressions associated with that condition.

The result looks like:

    - id: T1
      condition: event rule hit
        rule: allo (type: tracepoint, domain: ust)
        captures:
          - $ctx.foo
      actions:
        notify
    - id: T2
      condition: event rule hit
        rule: allo (type: tracepoint, domain: ust)
        captures:
          - $app.iga:active_clients
      actions:
        notify

Change-Id: Iaa902369a2df3edf2928a935f7565a7c21acb861
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Depends-on: lttng-ust: I8423c510bf6af2f9bf85256e8d6f931d36f7054b
src/bin/lttng/commands/list_triggers.c
tests/regression/tools/trigger/test_list_triggers_cli
This page took 0.039088 seconds and 4 git commands to generate.