public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jean Wolter <jean.wolter@inf.tu-dresden.de>
To: Richard Henderson <rth@twiddle.net>
Cc: Alexander Viro <viro@math.psu.edu>,
	Linus Torvalds <torvalds@transmeta.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] show_task() and thread_saved_pc() fix for x86
Date: 14 Nov 2000 10:19:32 +0100	[thread overview]
Message-ID: <86bsvizza3.fsf@kurt.inf.tu-dresden.de> (raw)
In-Reply-To: <Pine.LNX.4.10.10011111844080.3611-100000@penguin.transmeta.com> <Pine.GSO.4.21.0011112207230.24250-100000@weyl.math.psu.edu> <20001113175017.B1820@twiddle.net>
In-Reply-To: Richard Henderson's message of "Mon, 13 Nov 2000 17:50:17 -0800"

Richard Henderson <rth@twiddle.net> writes:

> > OTOH, the value is used only by Alt-SysRq-T, so... Hell knows.
> 
> No, it's also used by 'ps -l'.  See wchan.

ps -l uses get_wchan() (an architecture specific function from
arch/*/kernel/process.c) to get the return address from
schedule(). And now thread_saved_pc() seems to do the same (at least
on x86). Is there any reason to have two architecture specific
functions doing the same or do I miss something?

Jean

PS: Architectures other then x86 use thread_saved_pc() to implement
get_wchan(). If the debug output of Alt-SysRq-T is supposed to show
the waiting channel we should use get_wchan() instead of thread_saved_pc().
-- 
I get up each morning, gather my wits.
Pick up the paper, read the obits.
if I'm not there I know I'm not dead.
So I eat a good breakfast and go back to bed. Peete Seeger
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

  reply	other threads:[~2000-11-14  9:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-10 21:26 [PATCH] show_task() and thread_saved_pc() fix for x86 Alexander Viro
2000-11-11 13:06 ` Ralf Baechle
2000-11-12 10:04   ` Richard Henderson
2000-11-12  2:47 ` Linus Torvalds
2000-11-12  3:18   ` Alexander Viro
2000-11-12  3:23     ` Alexander Viro
2000-11-14  1:50     ` Richard Henderson
2000-11-14  9:19       ` Jean Wolter [this message]
2000-11-15  9:38         ` Ralf Baechle

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=86bsvizza3.fsf@kurt.inf.tu-dresden.de \
    --to=jean.wolter@inf.tu-dresden.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rth@twiddle.net \
    --cc=torvalds@transmeta.com \
    --cc=viro@math.psu.edu \
    /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