Searched refs:damon_ctx (Results 1 – 12 of 12) sorted by relevance
/linux-6.1.9/include/linux/ |
D | damon.h | 286 struct damon_ctx; 338 void (*init)(struct damon_ctx *context); 339 void (*update)(struct damon_ctx *context); 340 void (*prepare_access_checks)(struct damon_ctx *context); 341 unsigned int (*check_accesses)(struct damon_ctx *context); 342 void (*reset_aggregated)(struct damon_ctx *context); 343 int (*get_scheme_score)(struct damon_ctx *context, 346 unsigned long (*apply_scheme)(struct damon_ctx *context, 350 void (*cleanup)(struct damon_ctx *context); 384 int (*before_start)(struct damon_ctx *context); [all …]
|
/linux-6.1.9/mm/damon/ |
D | core.c | 99 int damon_select_ops(struct damon_ctx *ctx, enum damon_ops_id id) in damon_select_ops() 301 void damon_add_scheme(struct damon_ctx *ctx, struct damos *s) in damon_add_scheme() 343 void damon_add_target(struct damon_ctx *ctx, struct damon_target *t) in damon_add_target() 348 bool damon_targets_empty(struct damon_ctx *ctx) in damon_targets_empty() 378 struct damon_ctx *damon_new_ctx(void) in damon_new_ctx() 380 struct damon_ctx *ctx; in damon_new_ctx() 404 static void damon_destroy_targets(struct damon_ctx *ctx) in damon_destroy_targets() 417 void damon_destroy_ctx(struct damon_ctx *ctx) in damon_destroy_ctx() 439 int damon_set_attrs(struct damon_ctx *ctx, struct damon_attrs *attrs) in damon_set_attrs() 459 void damon_set_schemes(struct damon_ctx *ctx, struct damos **schemes, in damon_set_schemes() [all …]
|
D | dbgfs.c | 18 static struct damon_ctx **dbgfs_ctxs; 52 struct damon_ctx *ctx = file->private_data; in dbgfs_attrs_read() 69 struct damon_ctx *ctx = file->private_data; in dbgfs_attrs_write() 128 static ssize_t sprint_schemes(struct damon_ctx *c, char *buf, ssize_t len) in sprint_schemes() 165 struct damon_ctx *ctx = file->private_data; in dbgfs_schemes_read() 289 struct damon_ctx *ctx = file->private_data; in dbgfs_schemes_write() 322 static ssize_t sprint_target_ids(struct damon_ctx *ctx, char *buf, ssize_t len) in sprint_target_ids() 351 struct damon_ctx *ctx = file->private_data; in dbgfs_target_ids_read() 450 static int dbgfs_set_targets(struct damon_ctx *ctx, ssize_t nr_targets, in dbgfs_set_targets() 482 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 | 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()
|
D | sysfs.c | 1998 struct damon_ctx *damon_ctx; member 2033 static bool damon_sysfs_ctx_running(struct damon_ctx *ctx) in damon_sysfs_ctx_running() 2096 struct damon_ctx *ctx = kdamond->damon_ctx; in state_show() 2109 static int damon_sysfs_set_attrs(struct damon_ctx *ctx, in damon_sysfs_set_attrs() 2125 static void damon_sysfs_destroy_targets(struct damon_ctx *ctx) in damon_sysfs_destroy_targets() 2168 struct damon_ctx *ctx) in damon_sysfs_add_target() 2198 struct damon_sysfs_target *sys_target, struct damon_ctx *ctx) in damon_sysfs_existing_target() 2224 static int damon_sysfs_set_targets(struct damon_ctx *ctx, in damon_sysfs_set_targets() 2318 static int damon_sysfs_set_schemes(struct damon_ctx *ctx, in damon_sysfs_set_schemes() 2347 static void damon_sysfs_before_terminate(struct damon_ctx *ctx) in damon_sysfs_before_terminate() [all …]
|
D | reclaim.c | 116 static struct damon_ctx *ctx; 241 static int damon_reclaim_after_aggregation(struct damon_ctx *c) in damon_reclaim_after_aggregation() 252 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() 408 static void damon_va_prepare_access_checks(struct damon_ctx *ctx) in damon_va_prepare_access_checks() 568 static unsigned int damon_va_check_accesses(struct damon_ctx *ctx) in damon_va_check_accesses() 635 static unsigned long damon_va_apply_scheme(struct damon_ctx *ctx, in damon_va_apply_scheme() 669 static int damon_va_scheme_score(struct damon_ctx *context, in damon_va_scheme_score()
|
D | paddr.c | 73 static void damon_pa_prepare_access_checks(struct damon_ctx *ctx) in damon_pa_prepare_access_checks() 189 static unsigned int damon_pa_check_accesses(struct damon_ctx *ctx) in damon_pa_check_accesses() 264 static unsigned long damon_pa_apply_scheme(struct damon_ctx *ctx, in damon_pa_apply_scheme() 284 static int damon_pa_scheme_score(struct damon_ctx *context, in damon_pa_scheme_score()
|
D | lru_sort.c | 147 static struct damon_ctx *ctx; 295 static int damon_lru_sort_after_aggregation(struct damon_ctx *c) in damon_lru_sort_after_aggregation() 310 static int damon_lru_sort_after_wmarks_check(struct damon_ctx *c) in damon_lru_sort_after_wmarks_check()
|
D | ops-common.c | 91 int damon_hot_score(struct damon_ctx *c, struct damon_region *r, in damon_hot_score() 133 int damon_cold_score(struct damon_ctx *c, struct damon_region *r, in damon_cold_score()
|
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()
|