author: SeongJae Park <sjpark@amazon.de> 2021-09-07 19:56:48 -0700
committer: Linus Torvalds <torvalds@linux-foundation.org> 2021-09-08 11:50:24 -0700
commit: 2fcb93629ad8911c846cdc44521c746e53cc4e6d
parent: 3f49584b262cf8f42b25f4c1ad9f5bfd3bdc1bca
Commit Summary:
Diffstat:
1 file changed, 6 insertions, 1 deletion
diff --git a/mm/damon/core.c b/mm/damon/core.c
index 28a2c78914fa..ee24d64e8019 100644
--- a/mm/damon/core.c
+++ b/mm/damon/core.c
@@ -13,6 +13,9 @@
#include <linux/random.h>
#include <linux/slab.h>
+#define CREATE_TRACE_POINTS
+#include <trace/events/damon.h>
+
/* Get a random number in [l, r) */
#define damon_rand(l, r) (l + prandom_u32_max(r - l))
@@ -387,8 +390,10 @@ static void kdamond_reset_aggregated(struct damon_ctx *c)
damon_for_each_target(t, c) {
struct damon_region *r;
- damon_for_each_region(r, t)
+ damon_for_each_region(r, t) {
+ trace_damon_aggregated(t, r, damon_nr_regions(t));
r->nr_accesses = 0;
+ }
}
}