Searched refs:damon_ctx (Results 1 – 16 of 16) sorted by relevance
/linux-6.6.21/include/linux/ |
D | damon.h | 353 struct damon_ctx; 405 void (*init)(struct damon_ctx *context); 406 void (*update)(struct damon_ctx *context); 407 void (*prepare_access_checks)(struct damon_ctx *context); 408 unsigned int (*check_accesses)(struct damon_ctx *context); 409 void (*reset_aggregated)(struct damon_ctx *context); 410 int (*get_scheme_score)(struct damon_ctx *context, 413 unsigned long (*apply_scheme)(struct damon_ctx *context, 417 void (*cleanup)(struct damon_ctx *context); 452 int (*before_start)(struct damon_ctx *context); [all …]
|
/linux-6.6.21/mm/damon/ |
D | sysfs-common.h | 41 int damon_sysfs_set_schemes(struct damon_ctx *ctx, 46 struct damon_ctx *ctx); 50 struct damon_ctx *ctx, bool total_bytes_only); 52 int damon_sysfs_schemes_update_regions_stop(struct damon_ctx *ctx); 56 struct damon_ctx *ctx);
|
D | sysfs.c | 942 struct damon_ctx *damon_ctx; member 977 static bool damon_sysfs_ctx_running(struct damon_ctx *ctx) in damon_sysfs_ctx_running() 1058 struct damon_ctx *ctx = kdamond->damon_ctx; in state_show() 1071 static int damon_sysfs_set_attrs(struct damon_ctx *ctx, in damon_sysfs_set_attrs() 1087 static void damon_sysfs_destroy_targets(struct damon_ctx *ctx) in damon_sysfs_destroy_targets() 1130 struct damon_ctx *ctx) in damon_sysfs_add_target() 1172 struct damon_ctx *ctx, in damon_sysfs_update_target() 1194 static int damon_sysfs_set_targets(struct damon_ctx *ctx, in damon_sysfs_set_targets() 1230 static void damon_sysfs_before_terminate(struct damon_ctx *ctx) in damon_sysfs_before_terminate() 1239 if (kdamond && ctx == kdamond->damon_ctx && in damon_sysfs_before_terminate() [all …]
|
D | core.c | 99 int damon_select_ops(struct damon_ctx *ctx, enum damon_ops_id id) in damon_select_ops() 337 void damon_add_scheme(struct damon_ctx *ctx, struct damos *s) in damon_add_scheme() 383 void damon_add_target(struct damon_ctx *ctx, struct damon_target *t) in damon_add_target() 388 bool damon_targets_empty(struct damon_ctx *ctx) in damon_targets_empty() 418 struct damon_ctx *damon_new_ctx(void) in damon_new_ctx() 420 struct damon_ctx *ctx; in damon_new_ctx() 448 static void damon_destroy_targets(struct damon_ctx *ctx) in damon_destroy_targets() 461 void damon_destroy_ctx(struct damon_ctx *ctx) in damon_destroy_ctx() 518 static void damon_update_monitoring_results(struct damon_ctx *ctx, in damon_update_monitoring_results() 547 int damon_set_attrs(struct damon_ctx *ctx, struct damon_attrs *attrs) in damon_set_attrs() [all …]
|
D | dbgfs.c | 18 static struct damon_ctx **dbgfs_ctxs; 60 struct damon_ctx *ctx = file->private_data; in dbgfs_attrs_read() 77 struct damon_ctx *ctx = file->private_data; in dbgfs_attrs_write() 136 static ssize_t sprint_schemes(struct damon_ctx *c, char *buf, ssize_t len) in sprint_schemes() 173 struct damon_ctx *ctx = file->private_data; in dbgfs_schemes_read() 297 struct damon_ctx *ctx = file->private_data; in dbgfs_schemes_write() 330 static ssize_t sprint_target_ids(struct damon_ctx *ctx, char *buf, ssize_t len) in sprint_target_ids() 359 struct damon_ctx *ctx = file->private_data; in dbgfs_target_ids_read() 458 static int dbgfs_set_targets(struct damon_ctx *ctx, ssize_t nr_targets, in dbgfs_set_targets() 490 struct damon_ctx *ctx = file->private_data; in dbgfs_target_ids_write() [all …]
|
D | ops-common.h | 15 int damon_cold_score(struct damon_ctx *c, struct damon_region *r, 17 int damon_hot_score(struct damon_ctx *c, struct damon_region *r,
|
D | modules-common.c | 17 int damon_modules_new_paddr_ctx_target(struct damon_ctx **ctxp, in damon_modules_new_paddr_ctx_target() 20 struct damon_ctx *ctx; in damon_modules_new_paddr_ctx_target()
|
D | core-test.h | 39 static unsigned int nr_damon_targets(struct damon_ctx *ctx) in nr_damon_targets() 52 struct damon_ctx *c = damon_new_ctx(); in damon_test_target() 79 struct damon_ctx *ctx = damon_new_ctx(); in damon_test_aggregate() 122 struct damon_ctx *c = damon_new_ctx(); in damon_test_split_at() 215 struct damon_ctx *c = damon_new_ctx(); in damon_test_split_regions_of() 237 struct damon_ctx *c = damon_new_ctx(); in damon_test_ops_registration() 323 struct damon_ctx *c = damon_new_ctx(); in damon_test_set_attrs()
|
D | reclaim.c | 123 static struct damon_ctx *ctx; 267 static int damon_reclaim_after_aggregation(struct damon_ctx *c) in damon_reclaim_after_aggregation() 278 static int damon_reclaim_after_wmarks_check(struct damon_ctx *c) in damon_reclaim_after_wmarks_check()
|
D | vaddr.c | 233 static void __damon_va_init_regions(struct damon_ctx *ctx, in __damon_va_init_regions() 274 static void damon_va_init(struct damon_ctx *ctx) in damon_va_init() 288 static void damon_va_update(struct damon_ctx *ctx) in damon_va_update() 415 static void damon_va_prepare_access_checks(struct damon_ctx *ctx) in damon_va_prepare_access_checks() 582 static unsigned int damon_va_check_accesses(struct damon_ctx *ctx) in damon_va_check_accesses() 649 static unsigned long damon_va_apply_scheme(struct damon_ctx *ctx, in damon_va_apply_scheme() 683 static int damon_va_scheme_score(struct damon_ctx *context, in damon_va_scheme_score()
|
D | paddr.c | 71 static void damon_pa_prepare_access_checks(struct damon_ctx *ctx) in damon_pa_prepare_access_checks() 172 static unsigned int damon_pa_check_accesses(struct damon_ctx *ctx) in damon_pa_check_accesses() 295 static unsigned long damon_pa_apply_scheme(struct damon_ctx *ctx, in damon_pa_apply_scheme() 315 static int damon_pa_scheme_score(struct damon_ctx *context, in damon_pa_scheme_score()
|
D | ops-common.c | 73 int damon_hot_score(struct damon_ctx *c, struct damon_region *r, in damon_hot_score() 114 int damon_cold_score(struct damon_ctx *c, struct damon_region *r, in damon_cold_score()
|
D | lru_sort.c | 145 static struct damon_ctx *ctx; 313 static int damon_lru_sort_after_aggregation(struct damon_ctx *c) in damon_lru_sort_after_aggregation() 328 static int damon_lru_sort_after_wmarks_check(struct damon_ctx *c) in damon_lru_sort_after_wmarks_check()
|
D | dbgfs-test.h | 73 struct damon_ctx *ctx = dbgfs_new_ctx(); in damon_dbgfs_test_set_targets() 96 struct damon_ctx *ctx = damon_new_ctx(); in damon_dbgfs_test_set_init_regions()
|
D | modules-common.h | 48 int damon_modules_new_paddr_ctx_target(struct damon_ctx **ctxp,
|
D | sysfs-schemes.c | 1666 int damon_sysfs_set_schemes(struct damon_ctx *ctx, in damon_sysfs_set_schemes() 1697 struct damon_ctx *ctx) in damon_sysfs_schemes_update_stats() 1731 static int damon_sysfs_before_damos_apply(struct damon_ctx *ctx, in damon_sysfs_before_damos_apply() 1774 struct damon_ctx *ctx) in damon_sysfs_schemes_clear_regions() 1797 struct damon_ctx *ctx, bool total_bytes_only) in damon_sysfs_schemes_update_regions_start() 1811 int damon_sysfs_schemes_update_regions_stop(struct damon_ctx *ctx) in damon_sysfs_schemes_update_regions_stop()
|