]> git.karo-electronics.de Git - karo-tx-linux.git/commit
proc/smaps: show amount of nonlinear ptes in vma
authorKonstantin Khlebnikov <khlebnikov@openvz.org>
Thu, 3 May 2012 05:44:42 +0000 (15:44 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 3 May 2012 05:46:57 +0000 (15:46 +1000)
commitb13d959ccdf0b0c0adfd919382b12ff6c36e5da4
tree55ea4212c6760e40e86412869748dc6465146a06
parent9acd866672b3fa1ab09c9f6fc395fbb2ec57023e
proc/smaps: show amount of nonlinear ptes in vma

Currently, nonlinear mappings can not be distinguished from ordinary
mappings.  This patch adds into /proc/pid/smaps line "Nonlinear: <size>
kB", where size is amount of nonlinear ptes in vma, this line appears only
if VM_NONLINEAR is set.  This information may be useful not only for
checkpoint/restore project.

Requested by Pavel Emelyanov.

Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Pavel Emelyanov <xemul@parallels.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/proc/task_mmu.c