Lines Matching refs:damon_ctx
257 struct damon_ctx;
305 void (*init)(struct damon_ctx *context);
306 void (*update)(struct damon_ctx *context);
307 void (*prepare_access_checks)(struct damon_ctx *context);
308 unsigned int (*check_accesses)(struct damon_ctx *context);
309 void (*reset_aggregated)(struct damon_ctx *context);
310 int (*get_scheme_score)(struct damon_ctx *context,
313 unsigned long (*apply_scheme)(struct damon_ctx *context,
317 void (*cleanup)(struct damon_ctx *context);
345 int (*before_start)(struct damon_ctx *context);
346 int (*after_sampling)(struct damon_ctx *context);
347 int (*after_aggregation)(struct damon_ctx *context);
348 void (*before_terminate)(struct damon_ctx *context);
396 struct damon_ctx { struct
475 void damon_add_scheme(struct damon_ctx *ctx, struct damos *s);
479 void damon_add_target(struct damon_ctx *ctx, struct damon_target *t);
480 bool damon_targets_empty(struct damon_ctx *ctx);
485 struct damon_ctx *damon_new_ctx(void);
486 void damon_destroy_ctx(struct damon_ctx *ctx);
487 int damon_set_targets(struct damon_ctx *ctx,
489 int damon_set_attrs(struct damon_ctx *ctx, unsigned long sample_int,
492 int damon_set_schemes(struct damon_ctx *ctx,
496 int damon_start(struct damon_ctx **ctxs, int nr_ctxs);
497 int damon_stop(struct damon_ctx **ctxs, int nr_ctxs);
503 void damon_va_set_primitives(struct damon_ctx *ctx);
508 void damon_pa_set_primitives(struct damon_ctx *ctx);