if (ctx->ops.check_accesses)
max_nr_accesses = ctx->ops.check_accesses(ctx);
- if (ctx->passed_sample_intervals >= next_aggregation_sis) {
+ if (time_after_eq(ctx->passed_sample_intervals,
+ next_aggregation_sis)) {
kdamond_merge_regions(ctx,
max_nr_accesses / 10,
sz_limit);
sample_interval = ctx->attrs.sample_interval ?
ctx->attrs.sample_interval : 1;
- if (ctx->passed_sample_intervals >= next_aggregation_sis) {
+ if (time_after_eq(ctx->passed_sample_intervals,
+ next_aggregation_sis)) {
if (ctx->attrs.intervals_goal.aggrs &&
- ctx->passed_sample_intervals >=
- ctx->next_intervals_tune_sis) {
+ time_after_eq(
+ ctx->passed_sample_intervals,
+ ctx->next_intervals_tune_sis)) {
/*
* ctx->next_aggregation_sis might be updated
* from kdamond_call(). In the case,
kdamond_split_regions(ctx);
}
- if (ctx->passed_sample_intervals >= next_ops_update_sis) {
+ if (time_after_eq(ctx->passed_sample_intervals,
+ next_ops_update_sis)) {
ctx->next_ops_update_sis = next_ops_update_sis +
ctx->attrs.ops_update_interval /
sample_interval;