Messages in this thread | | | From | Mike Frysinger <> | Date | Mon, 14 Dec 2009 18:33:04 -0500 | Subject | Re: [PATCH 2/7] NOMMU: Provide per-task stack usage through /proc for NOMMU |
| |
On Thu, Dec 10, 2009 at 08:58, David Howells wrote: > Make it possible to get the per-task stack usage through /proc on a NOMMU > system. The MMU-mode routine can't be used because walk_page_range() doesn't > work on NOMMU. > > It can be tested to show the stack usages of non-kernel-thread processes: > > # grep "Stack usage:" /proc/*/status | grep -v "0 kB" > /proc/1/status:Stack usage: 2 kB > /proc/57/status:Stack usage: 3 kB > /proc/58/status:Stack usage: 1 kB > /proc/59/status:Stack usage: 3 kB > /proc/60/status:Stack usage: 5 kB > /proc/self/status:Stack usage: 1 kB > > I've only tested it with ELF-FDPIC, though it should work with FLAT too.
both seem to work for me. a simple FLAT shows 1kB while one with a 2kB buffer shows 3kB.
Signed-off-by: Mike Frysinger <vapier@gentoo.org> -mike -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |