From: Francis Deslauriers Date: Wed, 14 Apr 2021 14:50:28 +0000 (-0400) Subject: Fix: ust-app: error counter index never set X-Git-Tag: v2.13.0-rc1~69 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=46e9a5fb8c7241e9515a53b25bd5c9c4f463a86d;p=lttng-tools.git Fix: ust-app: error counter index never set Issue ===== The `struct ust_app_event_notifier_rule::error_counter_index` field is currently never set so all error counting is done in bucket index 0. Fix === Set the error counter index. Signed-off-by: Francis Deslauriers Signed-off-by: Jérémie Galarneau Change-Id: I951095dee5586111699b0ea0e3bc26c0fb4a535d --- diff --git a/src/bin/lttng-sessiond/ust-app.c b/src/bin/lttng-sessiond/ust-app.c index 54cd14ee3..a49600ec6 100644 --- a/src/bin/lttng-sessiond/ust-app.c +++ b/src/bin/lttng-sessiond/ust-app.c @@ -1271,6 +1271,8 @@ static struct ust_app_event_notifier_rule *alloc_ust_app_event_notifier_rule( assert(LTTNG_CONDITION_STATUS_OK == lttng_condition_on_event_get_rule(condition, &event_rule)); assert(event_rule); + ua_event_notifier_rule->error_counter_index = + lttng_condition_on_event_get_error_counter_index(condition); /* Acquire the event notifier's reference to the trigger. */ lttng_trigger_get(trigger);