From 9560f5ebf55ec70baefe6da3e3d644fc7d497b63 Mon Sep 17 00:00:00 2001 From: Francis Deslauriers Date: Fri, 4 Dec 2020 17:39:37 -0500 Subject: [PATCH] Fix: event-notifier: not propagating error counter indexes Signed-off-by: Francis Deslauriers Signed-off-by: Mathieu Desnoyers Change-Id: Ie2936cd59e81410891c0fa87602d1b24132d1e35 --- liblttng-ust-ctl/ustctl.c | 1 + liblttng-ust/lttng-events.c | 1 + 2 files changed, 2 insertions(+) diff --git a/liblttng-ust-ctl/ustctl.c b/liblttng-ust-ctl/ustctl.c index 650e7290..e7978744 100644 --- a/liblttng-ust-ctl/ustctl.c +++ b/liblttng-ust-ctl/ustctl.c @@ -583,6 +583,7 @@ int ustctl_create_event_notifier(int sock, struct lttng_ust_event_notifier *even lum.u.event_notifier.event.loglevel_type = event_notifier->event.loglevel_type; lum.u.event_notifier.event.loglevel = event_notifier->event.loglevel; lum.u.event_notifier.event.token = event_notifier->event.token; + lum.u.event_notifier.error_counter_index = event_notifier->error_counter_index; ret = ustcomm_send_app_cmd(sock, &lum, &lur); if (ret) { free(event_notifier_data); diff --git a/liblttng-ust/lttng-events.c b/liblttng-ust/lttng-events.c index 4fa675dd..c80ecbfd 100644 --- a/liblttng-ust/lttng-events.c +++ b/liblttng-ust/lttng-events.c @@ -1413,6 +1413,7 @@ struct lttng_event_notifier_enabler *lttng_event_notifier_enabler_create( CDS_INIT_LIST_HEAD(&event_notifier_enabler->base.excluder_head); event_notifier_enabler->user_token = event_notifier_param->event.token; + event_notifier_enabler->error_counter_index = event_notifier_param->error_counter_index; event_notifier_enabler->num_captures = 0; memcpy(&event_notifier_enabler->base.event_param.name, -- 2.34.1