public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@digeo.com>
To: Russell King <rmk@arm.linux.org.uk>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Sigh, any ideas for a "dump_stack" name?
Date: Wed, 02 Oct 2002 09:55:31 -0700	[thread overview]
Message-ID: <3D9B2503.7A186D7F@digeo.com> (raw)
In-Reply-To: 20021002105933.A24770@flint.arm.linux.org.uk

Russell King wrote:
> 
> Ok,
> 
> Still not got 2.5.40 to build...
> 
> ARM has, since the year dot, used "dump_stack()" to display any threads
> stack, and has the following prototype:
> 
> static void dump_stack(struct task_struct *tsk, unsigned long sp)
> 
> However, somewhere in the 2.5.34 -> 2.5.40 development, "dump_stack" got
> used as a way to call "show_stack" with a value of zero on x86 (which is
> another externally visible function.)
> 
> Firstly, "dump_stack" is misnamed.  It dumps stack and call trace
> information.

Sorry about that chief.   Daniel very sensibly suggested that the
new one should be called `backtrace();'

> Secondly, it creates a small problem - we're running out of names
> to describe a function that displays _just_ stack contents without
> any call trace information.
> 
> So, I propose to change the ARM version to the following, unless someone
> else can come up with another name or a fix the poliferation of stack-
> displaying functions that the generic kernel seems to require.

The generic kernel should only require two of these functions:
dump_stack() (aka backtrace()) and show_task_trace() - which
traces a different thread.

      reply	other threads:[~2002-10-02 16:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-02  9:59 Sigh, any ideas for a "dump_stack" name? Russell King
2002-10-02 16:55 ` 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=3D9B2503.7A186D7F@digeo.com \
    --to=akpm@digeo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rmk@arm.linux.org.uk \
    /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