*
*/
-#include <assert.h>
#include <common/buffer-view.h>
#include <common/dynamic-buffer.h>
#include <common/error.h>
goto end;
}
- assert(*firing_policy);
+ LTTNG_ASSERT(*firing_policy);
consumed_len = sizeof(struct lttng_firing_policy_comm) +
specific_firing_policy_consumed_len;
goto end;
}
- assert(a->equal);
+ LTTNG_ASSERT(a->equal);
is_equal = a->equal(a, b);
end:
return is_equal;
firing_policy_every_n_from_firing_policy_const(
const struct lttng_firing_policy *policy)
{
- assert(policy);
+ LTTNG_ASSERT(policy);
return container_of(policy, const struct lttng_firing_policy_every_n,
parent);
const struct lttng_firing_policy_every_n *every_n_policy;
struct lttng_firing_policy_every_n_comm comm = {};
- assert(policy);
- assert(payload);
+ LTTNG_ASSERT(policy);
+ LTTNG_ASSERT(payload);
every_n_policy = firing_policy_every_n_from_firing_policy_const(policy);
comm.interval = every_n_policy->interval;
const struct lttng_firing_policy *policy, uint64_t counter)
{
const struct lttng_firing_policy_every_n *every_n_policy;
- assert(policy);
+ LTTNG_ASSERT(policy);
bool execute = false;
every_n_policy = firing_policy_every_n_from_firing_policy_const(policy);
firing_policy_once_after_n_from_firing_policy_const(
const struct lttng_firing_policy *policy)
{
- assert(policy);
+ LTTNG_ASSERT(policy);
return container_of(policy, struct lttng_firing_policy_once_after_n,
parent);
const struct lttng_firing_policy_once_after_n *once_after_n_policy;
struct lttng_firing_policy_once_after_n_comm comm = {};
- assert(policy);
- assert(payload);
+ LTTNG_ASSERT(policy);
+ LTTNG_ASSERT(payload);
once_after_n_policy =
firing_policy_once_after_n_from_firing_policy_const(
struct lttng_firing_policy *lttng_firing_policy_copy(
const struct lttng_firing_policy *source)
{
- assert(source->copy);
+ LTTNG_ASSERT(source->copy);
return source->copy(source);
}
{
const struct lttng_firing_policy_once_after_n *once_after_n_policy;
bool execute = false;
- assert(policy);
+ LTTNG_ASSERT(policy);
once_after_n_policy =
firing_policy_once_after_n_from_firing_policy_const(