Home
last modified time | relevance | path

Searched refs:damon_ctx (Results 1 – 7 of 7) sorted by relevance

/Linux-v5.15/include/linux/
Ddamon.h62 struct damon_ctx;
102 void (*init)(struct damon_ctx *context);
103 void (*update)(struct damon_ctx *context);
104 void (*prepare_access_checks)(struct damon_ctx *context);
105 unsigned int (*check_accesses)(struct damon_ctx *context);
106 void (*reset_aggregated)(struct damon_ctx *context);
108 void (*cleanup)(struct damon_ctx *context);
136 int (*before_start)(struct damon_ctx *context);
137 int (*after_sampling)(struct damon_ctx *context);
138 int (*after_aggregation)(struct damon_ctx *context);
[all …]
/Linux-v5.15/mm/damon/
Dcore.c105 void damon_add_target(struct damon_ctx *ctx, struct damon_target *t) in damon_add_target()
135 struct damon_ctx *damon_new_ctx(void) in damon_new_ctx()
137 struct damon_ctx *ctx; in damon_new_ctx()
160 static void damon_destroy_targets(struct damon_ctx *ctx) in damon_destroy_targets()
173 void damon_destroy_ctx(struct damon_ctx *ctx) in damon_destroy_ctx()
189 int damon_set_targets(struct damon_ctx *ctx, in damon_set_targets()
226 int damon_set_attrs(struct damon_ctx *ctx, unsigned long sample_int, in damon_set_attrs()
265 static unsigned long damon_region_sz_limit(struct damon_ctx *ctx) in damon_region_sz_limit()
284 static bool damon_kdamond_running(struct damon_ctx *ctx) in damon_kdamond_running()
305 static int __damon_start(struct damon_ctx *ctx) in __damon_start()
[all …]
Ddbgfs.c18 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()
101 static inline bool targetid_is_pid(const struct damon_ctx *ctx) in targetid_is_pid()
106 static ssize_t sprint_target_ids(struct damon_ctx *ctx, char *buf, ssize_t len) in sprint_target_ids()
133 struct damon_ctx *ctx = file->private_data; in dbgfs_target_ids_read()
187 struct damon_ctx *ctx = file->private_data; in dbgfs_target_ids_write()
246 struct damon_ctx *ctx = file->private_data; in dbgfs_kdamond_pid_read()
293 static void dbgfs_fill_ctx_dir(struct dentry *dir, struct damon_ctx *ctx) in dbgfs_fill_ctx_dir()
305 static int dbgfs_before_terminate(struct damon_ctx *ctx) in dbgfs_before_terminate()
[all …]
Dcore-test.h39 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()
80 struct damon_ctx *ctx = damon_new_ctx(); in damon_test_aggregate()
121 struct damon_ctx *c = damon_new_ctx(); in damon_test_split_at()
214 struct damon_ctx *c = damon_new_ctx(); in damon_test_split_regions_of()
Dvaddr.c244 static void __damon_va_init_regions(struct damon_ctx *ctx, in __damon_va_init_regions()
279 void damon_va_init(struct damon_ctx *ctx) in damon_va_init()
363 void damon_va_update(struct damon_ctx *ctx) in damon_va_update()
493 static void damon_va_prepare_access_check(struct damon_ctx *ctx, in damon_va_prepare_access_check()
501 void damon_va_prepare_access_checks(struct damon_ctx *ctx) in damon_va_prepare_access_checks()
598 static void damon_va_check_access(struct damon_ctx *ctx, in damon_va_check_access()
622 unsigned int damon_va_check_accesses(struct damon_ctx *ctx) in damon_va_check_accesses()
661 void damon_va_set_primitives(struct damon_ctx *ctx) in damon_va_set_primitives()
Dvaddr-test.h138 struct damon_ctx *ctx = damon_new_ctx(); in damon_do_test_apply_three_regions()
257 struct damon_ctx *c = damon_new_ctx(); in damon_test_split_evenly()
Ddbgfs-test.h81 struct damon_ctx *ctx = dbgfs_new_ctx(); in damon_dbgfs_test_set_targets()