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 <vap...@gentoo.org> -mike _______________________________________________ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev