lkml.org 
[lkml]   [2008]   [Nov]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] add /proc/pid/stack to dump task's stack trace

* Alexey Dobriyan <adobriyan@gmail.com> wrote:

> > 1) only root should be allowed to do this - i.e. file needs to be
> > root-owned.
> >
> > 2) there also needs to be a .config entry for folks to be able to
> > turn it off altogether - just like folks can turn off sysrq-t
> > dumping via the .config.
>
> In the name of everything holy, don't add another config option.
> It's a _tiny_ piece of code and you have select STACKTRACE via fault
> injection, latencytop or lockdep before that.

We could make it depend on DEBUG_KERNEL or so, and always select
STACKTRACE infrastructure when DEBUG_KERNEL is enabled? There's no
reason not to get high quality backtraces via /proc when one debugs
the kernel.

Ingo


\
 
 \ /
  Last update: 2008-11-08 13:09    [W:0.058 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site