[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <200706202220.15777.blaisorblade_spam@yahoo.it>
Date: Wed, 20 Jun 2007 22:20:15 +0200
From: Blaisorblade <blaisorblade_spam@...oo.it>
To: user-mode-linux-devel@...ts.sourceforge.net
Cc: Jeff Dike <jdike@...toit.com>,
Andrew Morton <akpm@...ux-foundation.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [uml-devel] [PATCH 2/2] UML - Add stack usage monitoring
On mercoledì 20 giugno 2007, Jeff Dike wrote:
> On Wed, Jun 20, 2007 at 04:06:58PM +0200, Blaisorblade wrote:
> > Oh, it's exactly what CONFIG_DEBUG_STACK_USAGE does for i386... (not sure
> > if you were still wondering...).
>
> Where? The only usage in i386 that I see is thread_info.h zeroing stacks
> as they are allocated.
I only looked at docs. But Andrew Morton said:
"Your new code should really be generic, utilising the
stack-page-zeroing which CONFIG_DEBUG_STACK_USAGE enables."
In fact, the other reference is in kernel/sched.c. You may (or may not) join
the two stack walking (I would) and match a bit descriptions.
Personally, I'd put the Kconfig option in lib/Kconfig.debug and have a Kconfig
flag named DEBUG_STACK_USAGE_SUPPORT, much like LOCKDEP_SUPPORT (defined only
by architectures supporting the option), but have no time right now.
Bye
--
Inform me of my mistakes, so I can add them to my list!
Paolo Giarrusso, aka Blaisorblade
http://www.user-mode-linux.org/~blaisorblade
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists