From: Andi Kleen <ak@suse.de>
To: Jesse Barnes <jbarnes@engr.sgi.com>
Cc: bcasavan@sgi.com, linux-kernel@vger.kernel.org, rusty@rustcorp.com.au
Subject: Re: [PATCH] Add kallsyms_lookup() result cache
Date: Sat, 19 Jun 2004 01:56:52 +0200 [thread overview]
Message-ID: <20040619015652.232b3b55.ak@suse.de> (raw)
In-Reply-To: <200406181926.39294.jbarnes@engr.sgi.com>
On Fri, 18 Jun 2004 19:26:39 -0400
Jesse Barnes <jbarnes@engr.sgi.com> wrote:
> On Friday, June 18, 2004 6:03 pm, Andi Kleen wrote:
> > On Fri, 18 Jun 2004 15:03:00 -0500
> >
> > Brent Casavant <bcasavan@sgi.com> wrote:
> > > On 2.6 based systems, the top command utilizes /proc/[pid]/wchan to
> > > determine WCHAN symbol name information. This information is provided
> > > by the kernel function kallsyms_lookup(), which expands a stem-compressed
> >
> > That sounds more like a bug in your top to me. /proc/*/wchan itself
> > does not access kallsyms, it just outputs a number.undisclosed-recipients:;
>
> No, it outputs a string:
> jbarnes@mill:~$ cat /proc/1/wchan
> do_select
Indeed. I looked at /proc/self/wchan, but of course that is 0 because
the process is running.
But there is numerical wchan anyways - just get it from /proc/*/stat
That is what all 2.4 based tops always used. I bet they still
have the fallback code for that around.The 2.6 change
will just be to read the symbol table from /proc/kallsyms instead
of from the System.map file.
>
> > Doing the cache in the kernel is the wrong place. This should be fixed
> > in user space.
>
> Sure, but that would be a change in behavior. It's arguably the right thing
> to do though.
Change what behaviour? I argue that doing it in the kernel is the wrong
thing.
-Andi
next prev parent reply other threads:[~2004-06-18 23:59 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-18 20:03 [PATCH] Add kallsyms_lookup() result cache Brent Casavant
2004-06-18 20:37 ` Martin Josefsson
2004-06-18 20:55 ` Brent Casavant
2004-06-18 22:03 ` Andi Kleen
2004-06-18 23:26 ` Jesse Barnes
2004-06-18 23:56 ` Andi Kleen [this message]
2004-06-19 0:16 ` Jesse Barnes
2004-06-18 23:31 ` Brent Casavant
2004-06-18 23:59 ` Andi Kleen
-- strict thread matches above, loose matches on Subject: below --
2004-06-19 0:43 Albert Cahalan
2004-06-19 4:51 ` Herbert Xu
2004-06-19 12:03 ` Albert Cahalan
2004-06-19 10:06 ` Andrew Morton
2004-06-19 13:05 ` Albert Cahalan
2004-06-22 19:45 ` Brent Casavant
2004-06-22 20:10 ` Jesse Barnes
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=20040619015652.232b3b55.ak@suse.de \
--to=ak@suse.de \
--cc=bcasavan@sgi.com \
--cc=jbarnes@engr.sgi.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rusty@rustcorp.com.au \
/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