Messages in this thread | ![/](/images/icornerl.gif) | | Date | Thu, 3 Apr 2003 23:40:40 -0800 | From | Andrew Morton <> | Subject | Re: 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/
| ![\](/images/icornerr.gif) |