lkml.org 
[lkml]   [2003]   [Apr]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Patch for show_task
Pete Zaitcev <zaitcev@redhat.com> wrote:
>
> I see. What do you say to adding thread_saved_sp() in addition
> to thread_saved_pc()? E.g. on sparc that would return
> p->thread_info->ti_ksp, then you can calculate free stack.
>

I don't think the current sp value is very interesting really.

What that code is trying to do is to tell you the minimum amount of stack
which was *ever* available to that process. Now that is interesting. But it
requires that the kernel stack be zeroed out when it is created, and there's
no code in there to do that.

It is probably a useful thing to retain though. A new CONFIG_DEBUG_STACK
would suit.
-
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/

\
 
 \ /
  Last update: 2005-03-22 13:34    [W:0.023 / U:0.512 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site