Lines Matching refs:primitive
243 if (ctx->primitive.cleanup) { in damon_destroy_targets()
244 ctx->primitive.cleanup(ctx); in damon_destroy_targets()
565 if (!ret || !s->quota.esz || !c->primitive.get_scheme_score) in damos_valid_target()
568 return c->primitive.get_scheme_score(c, t, r, s) >= s->quota.min_score; in damos_valid_target()
624 if (c->primitive.apply_scheme) { in damon_do_apply_schemes()
634 c->primitive.apply_scheme(c, t, r, s); in damon_do_apply_schemes()
703 if (!c->primitive.get_scheme_score) in kdamond_apply_schemes()
712 score = c->primitive.get_scheme_score( in kdamond_apply_schemes()
915 if (!ctx->primitive.target_valid) in kdamond_need_stop()
919 if (ctx->primitive.target_valid(t)) in kdamond_need_stop()
1018 if (ctx->primitive.init) in kdamond_fn()
1019 ctx->primitive.init(ctx); in kdamond_fn()
1029 if (ctx->primitive.prepare_access_checks) in kdamond_fn()
1030 ctx->primitive.prepare_access_checks(ctx); in kdamond_fn()
1037 if (ctx->primitive.check_accesses) in kdamond_fn()
1038 max_nr_accesses = ctx->primitive.check_accesses(ctx); in kdamond_fn()
1050 if (ctx->primitive.reset_aggregated) in kdamond_fn()
1051 ctx->primitive.reset_aggregated(ctx); in kdamond_fn()
1055 if (ctx->primitive.update) in kdamond_fn()
1056 ctx->primitive.update(ctx); in kdamond_fn()
1067 if (ctx->primitive.cleanup) in kdamond_fn()
1068 ctx->primitive.cleanup(ctx); in kdamond_fn()