Fix: lttng: add-trigger: payload capture fields specified as contexts
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 11 Mar 2021 20:26:01 +0000 (15:26 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 11 Mar 2021 20:31:53 +0000 (15:31 -0500)
commit3363a4c34e8283a6c1fccfb21a6658443a415055
tree262e7b91b777f83ffe760b48c3a2ccc5fe655271
parenta3088f1a14942fade23f14d778ca635305fb6e84
Fix: lttng: add-trigger: payload capture fields specified as contexts

ir_op_load_expr_to_event_expr() re-uses the same `load_expr_op` variable
to traverse the IR. A check for the type of the original load expression
is performed after `load_expr_op->next` is assigned to load_expr_op
which is expected to have remained the same.

The original event_expr child type is sampled at the start of the
function and re-used as needed.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I14ebcb9088c5107f3133ff5b43c65c3fc6101077
src/bin/lttng/commands/add_trigger.c
This page took 0.024496 seconds and 4 git commands to generate.