[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251208062943.68824-35-sj@kernel.org>
Date: Sun, 7 Dec 2025 22:29:38 -0800
From: SeongJae Park <sj@...nel.org>
To:
Cc: SeongJae Park <sj@...nel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
damon@...ts.linux.dev,
linux-kernel@...r.kernel.org,
linux-mm@...ck.org
Subject: [RFC PATCH v3 34/37] mm/damon/core: report whether the page fault was for writing
The page fault event reporting function can know if the access was for
writing or reading. Add the information to the report.
Signed-off-by: SeongJae Park <sj@...nel.org>
---
mm/damon/core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/mm/damon/core.c b/mm/damon/core.c
index 782af39ef0c0..e2fd17b83a92 100644
--- a/mm/damon/core.c
+++ b/mm/damon/core.c
@@ -1732,6 +1732,7 @@ void damon_report_page_fault(struct vm_fault *vmf, bool huge_pmd)
.size = 1, /* todo: set appripriately */
.cpu = smp_processor_id(),
.tid = task_pid_vnr(current),
+ .is_write = vmf->flags & FAULT_FLAG_WRITE,
};
if (huge_pmd)
--
2.47.3
Powered by blists - more mailing lists