X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fevent-notifier-error-accounting.c;h=61ba6981e7806426a50cb5d287c4cdc4a9d6f208;hb=8dbb86b8a981917165030d3a7fbbc2cb932888ed;hp=9bc433312ad5209ceacc8c21de73637ada425322;hpb=761ffce23895ccf66a7a410b9037fa3f128fb20a;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/event-notifier-error-accounting.c b/src/bin/lttng-sessiond/event-notifier-error-accounting.c index 9bc433312..61ba6981e 100644 --- a/src/bin/lttng-sessiond/event-notifier-error-accounting.c +++ b/src/bin/lttng-sessiond/event-notifier-error-accounting.c @@ -491,6 +491,10 @@ event_notifier_error_accounting_register_app(struct ust_app *app) status = send_counter_data_to_ust(app, new_counter); if (status != EVENT_NOTIFIER_ERROR_ACCOUNTING_STATUS_OK) { + if (status == EVENT_NOTIFIER_ERROR_ACCOUNTING_STATUS_APP_DEAD) { + goto error_send_counter_data; + } + ERR("Failed to send counter data to application tracer: status = %s, application uid = %d, pid = %d, application name = '%s'", error_accounting_status_str(status), (int) app->uid, (int) app->pid, app->name); @@ -525,6 +529,10 @@ event_notifier_error_accounting_register_app(struct ust_app *app) status = send_counter_cpu_data_to_ust(app, new_counter, new_counter_cpu); if (status != EVENT_NOTIFIER_ERROR_ACCOUNTING_STATUS_OK) { + if (status == EVENT_NOTIFIER_ERROR_ACCOUNTING_STATUS_APP_DEAD) { + goto error_send_cpu_counter_data; + } + ERR("Failed to send counter cpu data to application tracer: status = %s, application uid = %d, pid = %d, application name = '%s'", error_accounting_status_str(status), (int) app->uid, (int) app->pid, @@ -1034,6 +1042,7 @@ event_notifier_error_accounting_get_count( return event_notifier_error_accounting_ust_get_count(trigger, count); #else + *count = 0; return EVENT_NOTIFIER_ERROR_ACCOUNTING_STATUS_OK; #endif /* HAVE_LIBLTTNG_UST_CTL */ default: