OSDN Git Service

Ignore the vector page in /proc/<pid>/maps
authorColin Cross <ccross@android.com>
Wed, 13 Jul 2011 05:32:43 +0000 (22:32 -0700)
committerColin Cross <ccross@android.com>
Wed, 13 Jul 2011 05:32:43 +0000 (22:32 -0700)
commit5923f33ed7cf186ceac3541987efcc32beb29ab9
tree6dcf111da908c0315fce2e7d9c1980646e22ddf8
parenteff788820689e7c2bfd456934e8132a381b31235
Ignore the vector page in /proc/<pid>/maps

In kernel 2.6.37, the vector page was added to /proc/<pid>/maps,
but because it is located above TASK_SIZE (usually 0xbf000000),
it is considered to be in the kernel's address space, not the
process', so it doesn't show up in /proc/<pid>/pagemap.

When the vector page is detected, using the name "[vectors]",
remove it from the map.

Change-Id: I5f0758bbe5d2b927056fa9fee684fea63dd0fa4b
libpagemap/pm_process.c