{
LTTNG_ASSERT(policy);
- return container_of(policy, struct lttng_rate_policy_every_n, parent);
+ return lttng::utils::container_of(policy, <tng_rate_policy_every_n::parent);
}
static const struct lttng_rate_policy_every_n *
{
LTTNG_ASSERT(policy);
- return container_of(policy, struct lttng_rate_policy_every_n, parent);
+ return lttng::utils::container_of(policy, <tng_rate_policy_every_n::parent);
}
static int lttng_rate_policy_every_n_serialize(
{
LTTNG_ASSERT(policy);
- return container_of(
- policy, struct lttng_rate_policy_once_after_n, parent);
+ return lttng::utils::container_of(
+ policy, <tng_rate_policy_once_after_n::parent);
}
static const struct lttng_rate_policy_once_after_n *
{
LTTNG_ASSERT(policy);
- return container_of(
- policy, struct lttng_rate_policy_once_after_n, parent);
+ return lttng::utils::container_of(
+ policy, <tng_rate_policy_once_after_n::parent);
}
static int lttng_rate_policy_once_after_n_serialize(
struct lttng_rate_policy *policy, struct lttng_payload *payload)