Re: [PATCH 1/1] proc: add /proc/pid/shmaps

From: David Rientjes
Date: Wed Aug 08 2012 - 17:10:24 EST


On Wed, 8 Aug 2012, Qiaowei Ren wrote:

> Add a shmaps entry to /proc/pid: show information about shared memory in an address space.
>
> People that use shared memory and want to perform an analyzing about it. For example, judge whether any memory address is shared. This file just contains 'share' part of /proc/pid/maps now. There are too many contents in maps, and so we have to do a lot of analysis to obtain relative information every time.
>
> Signed-off-by: Qiaowei Ren <qiaowei.ren@xxxxxxxxx>

Nack as unnecessary; /proc/pid/maps already explicitly emits 's' for
VM_MAYSHARE and 'p' otherwise so this information is already available to
userspace.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/