Skip to content

Commit 3a619fd

Browse files
sjp38torvalds
authored andcommitted
mm/damon/dbgfs: support all DAMOS stats
Currently, DAMON debugfs interface is not supporting DAMON-based Operation Schemes (DAMOS) stats for schemes successfully applied regions and time/space quota limit exceeds. This adds the support. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: SeongJae Park <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 81f0895 commit 3a619fd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mm/damon/dbgfs.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ static ssize_t sprint_schemes(struct damon_ctx *c, char *buf, ssize_t len)
105105

106106
damon_for_each_scheme(s, c) {
107107
rc = scnprintf(&buf[written], len - written,
108-
"%lu %lu %u %u %u %u %d %lu %lu %lu %u %u %u %d %lu %lu %lu %lu %lu %lu\n",
108+
"%lu %lu %u %u %u %u %d %lu %lu %lu %u %u %u %d %lu %lu %lu %lu %lu %lu %lu %lu %lu\n",
109109
s->min_sz_region, s->max_sz_region,
110110
s->min_nr_accesses, s->max_nr_accesses,
111111
s->min_age_region, s->max_age_region,
@@ -117,7 +117,9 @@ static ssize_t sprint_schemes(struct damon_ctx *c, char *buf, ssize_t len)
117117
s->quota.weight_age,
118118
s->wmarks.metric, s->wmarks.interval,
119119
s->wmarks.high, s->wmarks.mid, s->wmarks.low,
120-
s->stat.nr_tried, s->stat.sz_tried);
120+
s->stat.nr_tried, s->stat.sz_tried,
121+
s->stat.nr_applied, s->stat.sz_applied,
122+
s->stat.qt_exceeds);
121123
if (!rc)
122124
return -ENOMEM;
123125

0 commit comments

Comments
 (0)