From: Andrew Morton <akpm@digeo.com>
To: Pete Zaitcev <zaitcev@redhat.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Patch for show_task
Date: Thu, 3 Apr 2003 23:40:40 -0800 [thread overview]
Message-ID: <20030403234040.4b3afc48.akpm@digeo.com> (raw)
In-Reply-To: <20030404014844.B30163@devserv.devel.redhat.com>
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.
prev parent reply other threads:[~2003-04-04 7:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-04 6:38 Patch for show_task Pete Zaitcev
2003-04-04 6:43 ` Andrew Morton
2003-04-04 6:48 ` Pete Zaitcev
2003-04-04 7:40 ` Andrew Morton [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030403234040.4b3afc48.akpm@digeo.com \
--to=akpm@digeo.com \
--cc=linux-kernel@vger.kernel.org \
--cc=zaitcev@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox