linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] smaps: show VM_SOFTDIRTY flag in VmFlags line
@ 2013-10-04 19:02 Naoya Horiguchi
  2013-10-04 19:02 ` [PATCH 2/2] page-types.c: support KPF_SOFTDIRTY bit Naoya Horiguchi
  2013-10-07 13:21 ` [PATCH 1/2] smaps: show VM_SOFTDIRTY flag in VmFlags line Pavel Emelyanov
  0 siblings, 2 replies; 10+ messages in thread
From: Naoya Horiguchi @ 2013-10-04 19:02 UTC (permalink / raw)
  To: linux-mm; +Cc: Andrew Morton, Wu Fengguang, Pavel Emelyanov, linux-kernel

This flag shows that soft dirty bit is not enabled yet.
You can enable it by "echo 4 > /proc/pid/clear_refs."

Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
---
 fs/proc/task_mmu.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git v3.12-rc2-mmots-2013-09-24-17-03.orig/fs/proc/task_mmu.c v3.12-rc2-mmots-2013-09-24-17-03/fs/proc/task_mmu.c
index 7366e9d..c591928 100644
--- v3.12-rc2-mmots-2013-09-24-17-03.orig/fs/proc/task_mmu.c
+++ v3.12-rc2-mmots-2013-09-24-17-03/fs/proc/task_mmu.c
@@ -561,6 +561,9 @@ static void show_smap_vma_flags(struct seq_file *m, struct vm_area_struct *vma)
 		[ilog2(VM_NONLINEAR)]	= "nl",
 		[ilog2(VM_ARCH_1)]	= "ar",
 		[ilog2(VM_DONTDUMP)]	= "dd",
+#ifdef CONFIG_MEM_SOFT_DIRTY
+		[ilog2(VM_SOFTDIRTY)]	= "sd",
+#endif
 		[ilog2(VM_MIXEDMAP)]	= "mm",
 		[ilog2(VM_HUGEPAGE)]	= "hg",
 		[ilog2(VM_NOHUGEPAGE)]	= "nh",
-- 
1.8.3.1

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-10-08  9:03 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-04 19:02 [PATCH 1/2] smaps: show VM_SOFTDIRTY flag in VmFlags line Naoya Horiguchi
2013-10-04 19:02 ` [PATCH 2/2] page-types.c: support KPF_SOFTDIRTY bit Naoya Horiguchi
2013-10-08  0:50   ` Andrew Morton
2013-10-07 13:21 ` [PATCH 1/2] smaps: show VM_SOFTDIRTY flag in VmFlags line Pavel Emelyanov
2013-10-07 14:15   ` [PATCH 1/2 v2] " Naoya Horiguchi
2013-10-07 21:21     ` Cyrill Gorcunov
2013-10-08  0:51     ` Andrew Morton
2013-10-08  2:54       ` Naoya Horiguchi
2013-10-08  8:59       ` Cyrill Gorcunov
2013-10-08  9:03         ` Cyrill Gorcunov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).