Fix: event-notifier: not propagating error counter indexes
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Fri, 4 Dec 2020 22:39:37 +0000 (17:39 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 5 Dec 2020 01:05:44 +0000 (20:05 -0500)
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Ie2936cd59e81410891c0fa87602d1b24132d1e35

liblttng-ust-ctl/ustctl.c
liblttng-ust/lttng-events.c

index 650e7290db331d62b75d8fe5a7b567502e7f8563..e7978744be681894d9cad7b769855597c09af0f1 100644 (file)
@@ -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);
index 4fa675ddfec454e32d2ffec16a6a2ce3958457cc..c80ecbfdadc92a94be63e0c541d38e02d1a330e2 100644 (file)
@@ -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,
This page took 0.027119 seconds and 4 git commands to generate.