[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20250629201443.52569-7-sj@kernel.org>
Date: Sun, 29 Jun 2025 13:14:43 -0700
From: SeongJae Park <sj@...nel.org>
To:
Cc: SeongJae Park <sj@...nel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
damon@...ts.linux.dev,
kernel-team@...a.com,
linux-kernel@...r.kernel.org,
linux-mm@...ck.org
Subject: [RFC PATCH 6/6] mm/damon: add write field to damon_access_report
This commit is for showing the first part of the idea for implementing
write-only access monitoring.
Signed-off-by: SeongJae Park <sj@...nel.org>
---
include/linux/damon.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/linux/damon.h b/include/linux/damon.h
index 29223fea710f..bd5e3287f6f2 100644
--- a/include/linux/damon.h
+++ b/include/linux/damon.h
@@ -112,6 +112,7 @@ struct damon_target {
* @size: The size of the reporting region.
* @nr_accesses: Number of detected accesses to the region.
* @node_id: NUMA node that made the access.
+ * @write: Whether the access is write.
*
* @pid could be stale, and hence shouldn't be de-referenced.
*/
@@ -121,6 +122,7 @@ struct damon_access_report {
unsigned long size;
int nr_accesses;
int node_id;
+ bool write;
/* private: */
unsigned long report_jiffies; /* when this report is made */
};
--
2.39.5
Powered by blists - more mailing lists