X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;ds=inline;f=src%2Fbin%2Flttng-sessiond%2Fevent-notifier-error-accounting.cpp;h=138d51b4df2fd2823979f32f3eec7c2ad08e74eb;hb=30eb3927304cbe2bf744604cd997a6e75b674945;hp=c99c39338fbe1fbcf6c5237d75fd28fb1fde4b16;hpb=7966af5763c4aaca39df9bbfa9277ff15715c720;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/event-notifier-error-accounting.cpp b/src/bin/lttng-sessiond/event-notifier-error-accounting.cpp index c99c39338..138d51b4d 100644 --- a/src/bin/lttng-sessiond/event-notifier-error-accounting.cpp +++ b/src/bin/lttng-sessiond/event-notifier-error-accounting.cpp @@ -369,7 +369,7 @@ struct ust_error_accounting_entry *ust_error_accounting_entry_find( */ static struct ust_error_accounting_entry *ust_error_accounting_entry_create( - struct lttng_ht *uid_ht, const struct ust_app *app) + const struct ust_app *app) { int i, ret, *cpu_counter_fds = NULL; struct lttng_ust_ctl_daemon_counter *daemon_counter; @@ -611,8 +611,7 @@ event_notifier_error_accounting_register_app(struct ust_app *app) */ pthread_mutex_lock(&the_event_notifier_counter.lock); - entry = ust_error_accounting_entry_create(error_counter_uid_ht, - app); + entry = ust_error_accounting_entry_create(app); if (!entry) { status = EVENT_NOTIFIER_ERROR_ACCOUNTING_STATUS_ERR; pthread_mutex_unlock(&the_event_notifier_counter.lock); @@ -982,6 +981,9 @@ event_notifier_error_accounting_register_kernel( LTTNG_KERNEL_ABI_COUNTER_BITNESS_64, .number_dimensions = 1, .global_sum_step = 0, + .dimensions = {}, + .coalesce_hits = 0, + .padding = {}, }; error_counter_conf.dimensions[0].size = kernel_state.number_indices; error_counter_conf.dimensions[0].has_underflow = false; @@ -1119,8 +1121,8 @@ event_notifier_error_accounting_register_event_notifier( trigger_name, trigger_owner_uid); goto end; } - /* fall-through. */ } + /* fall-through. */ case EVENT_NOTIFIER_ERROR_ACCOUNTING_STATUS_OK: *error_counter_index = local_error_counter_index; status = EVENT_NOTIFIER_ERROR_ACCOUNTING_STATUS_OK;