X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fevent-notifier-error-accounting.hpp;h=e1d445333ea97a3de8559425013ab0cd700656c9;hb=28f23191dcbf047429d51950a337a57d7a3f866a;hp=89466bd441605bf9b1336e289b92ac10b2105843;hpb=f250b40e2179eccdb83766bf4abef5a35036c47b;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/event-notifier-error-accounting.hpp b/src/bin/lttng-sessiond/event-notifier-error-accounting.hpp index 89466bd44..e1d445333 100644 --- a/src/bin/lttng-sessiond/event-notifier-error-accounting.hpp +++ b/src/bin/lttng-sessiond/event-notifier-error-accounting.hpp @@ -8,11 +8,11 @@ #ifndef _EVENT_NOTIFIER_ERROR_ACCOUNTING_H #define _EVENT_NOTIFIER_ERROR_ACCOUNTING_H -#include +#include "ust-app.hpp" #include -#include "ust-app.hpp" +#include enum event_notifier_error_accounting_status { EVENT_NOTIFIER_ERROR_ACCOUNTING_STATUS_OK, @@ -30,16 +30,14 @@ enum event_notifier_error_accounting_status { * to be allocated for each domain. */ enum event_notifier_error_accounting_status -event_notifier_error_accounting_init(uint64_t buffer_size_kernel, - uint64_t buffer_size_ust); +event_notifier_error_accounting_init(uint64_t buffer_size_kernel, uint64_t buffer_size_ust); /* * Register the kernel event notifier group. * This allocates the counter object on the kernel side. */ enum event_notifier_error_accounting_status -event_notifier_error_accounting_register_kernel( - int kernel_event_notifier_group_fd); +event_notifier_error_accounting_register_kernel(int kernel_event_notifier_group_fd); #ifdef HAVE_LIBLTTNG_UST_CTL @@ -59,18 +57,14 @@ event_notifier_error_accounting_unregister_app(struct ust_app *app); #else /* HAVE_LIBLTTNG_UST_CTL */ -static inline -enum event_notifier_error_accounting_status -event_notifier_error_accounting_register_app( - struct ust_app *app __attribute__((unused))) +static inline enum event_notifier_error_accounting_status +event_notifier_error_accounting_register_app(struct ust_app *app __attribute__((unused))) { return EVENT_NOTIFIER_ERROR_ACCOUNTING_STATUS_OK; } -static inline -enum event_notifier_error_accounting_status -event_notifier_error_accounting_unregister_app( - struct ust_app *app __attribute__((unused))) +static inline enum event_notifier_error_accounting_status +event_notifier_error_accounting_unregister_app(struct ust_app *app __attribute__((unused))) { return EVENT_NOTIFIER_ERROR_ACCOUNTING_STATUS_OK; } @@ -80,17 +74,13 @@ event_notifier_error_accounting_unregister_app( * Allocates, reserves and returns the error counter index for that trigger. */ enum event_notifier_error_accounting_status -event_notifier_error_accounting_register_event_notifier( - const struct lttng_trigger *trigger, - uint64_t *error_counter_index); +event_notifier_error_accounting_register_event_notifier(const struct lttng_trigger *trigger, + uint64_t *error_counter_index); enum event_notifier_error_accounting_status -event_notifier_error_accounting_get_count( - const struct lttng_trigger *trigger, - uint64_t *count); +event_notifier_error_accounting_get_count(const struct lttng_trigger *trigger, uint64_t *count); -void event_notifier_error_accounting_unregister_event_notifier( - const struct lttng_trigger *trigger); +void event_notifier_error_accounting_unregister_event_notifier(const struct lttng_trigger *trigger); void event_notifier_error_accounting_fini(void);