X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=include%2Flttng%2Faction%2Frate-policy.h;fp=include%2Flttng%2Faction%2Frate-policy.h;h=229e14c0da4ecf4876b144b395deb0a24f471340;hp=1cd0126e3dd52b6eeeaac3fccb94cf82d6a20dcd;hb=28f23191dcbf047429d51950a337a57d7a3f866a;hpb=f250b40e2179eccdb83766bf4abef5a35036c47b diff --git a/include/lttng/action/rate-policy.h b/include/lttng/action/rate-policy.h index 1cd0126e3..229e14c0d 100644 --- a/include/lttng/action/rate-policy.h +++ b/include/lttng/action/rate-policy.h @@ -8,8 +8,9 @@ #ifndef LTTNG_RATE_POLICY_H #define LTTNG_RATE_POLICY_H -#include #include + +#include #include struct lttng_rate_policy; @@ -37,8 +38,8 @@ enum lttng_rate_policy_type { /* * Get the type of a rate policy. */ -LTTNG_EXPORT extern enum lttng_rate_policy_type lttng_rate_policy_get_type( - const struct lttng_rate_policy *policy); +LTTNG_EXPORT extern enum lttng_rate_policy_type +lttng_rate_policy_get_type(const struct lttng_rate_policy *policy); /* * Create a rate_policy of type `every n`. @@ -50,8 +51,7 @@ LTTNG_EXPORT extern enum lttng_rate_policy_type lttng_rate_policy_get_type( * rate_policy objects must be destroyed using the lttng_rate_policy_destroy() * function. */ -LTTNG_EXPORT extern struct lttng_rate_policy *lttng_rate_policy_every_n_create( - uint64_t interval); +LTTNG_EXPORT extern struct lttng_rate_policy *lttng_rate_policy_every_n_create(uint64_t interval); /* * Get the interval of a every N rate policy. @@ -60,8 +60,8 @@ LTTNG_EXPORT extern struct lttng_rate_policy *lttng_rate_policy_every_n_create( * on success, LTTNG_RATE_FIRING_POLICY_STATUS_INVALID if an invalid * parameter is passed. */ -LTTNG_EXPORT extern enum lttng_rate_policy_status lttng_rate_policy_every_n_get_interval( - const struct lttng_rate_policy *policy, uint64_t *interval); +LTTNG_EXPORT extern enum lttng_rate_policy_status +lttng_rate_policy_every_n_get_interval(const struct lttng_rate_policy *policy, uint64_t *interval); /* * Create a rate_policy of type `once after N`. @@ -74,8 +74,8 @@ LTTNG_EXPORT extern enum lttng_rate_policy_status lttng_rate_policy_every_n_get_ * rate_policy objects must be destroyed using the lttng_rate_policy_destroy() * function. */ -LTTNG_EXPORT extern struct lttng_rate_policy *lttng_rate_policy_once_after_n_create( - uint64_t threshold); +LTTNG_EXPORT extern struct lttng_rate_policy * +lttng_rate_policy_once_after_n_create(uint64_t threshold); /* * Get the threshold of a once after N rate policy. @@ -85,8 +85,8 @@ LTTNG_EXPORT extern struct lttng_rate_policy *lttng_rate_policy_once_after_n_cre * parameter is passed. */ LTTNG_EXPORT extern enum lttng_rate_policy_status -lttng_rate_policy_once_after_n_get_threshold( - const struct lttng_rate_policy *policy, uint64_t *threshold); +lttng_rate_policy_once_after_n_get_threshold(const struct lttng_rate_policy *policy, + uint64_t *threshold); /* * Destroy (frees) a rate policy object.