From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: George Dunlap <george.dunlap@eu.citrix.com>,
Juergen Gross <juergen.gross@ts.fujitsu.com>,
Dietmar Hahn <dietmar.hahn@ts.fujitsu.com>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: Hidden symbol when debugging hypervisor
Date: Wed, 30 Apr 2014 15:08:07 +0100 [thread overview]
Message-ID: <536103C7.7040800@citrix.com> (raw)
In-Reply-To: <536113DD020000780000DC7D@mail.emea.novell.com>
On 30/04/14 14:16, Jan Beulich wrote:
>>>> On 30.04.14 at 13:28, <andrew.cooper3@citrix.com> wrote:
>> On 30/04/14 11:21, Jan Beulich wrote:
>> I have encountered similar problems generating stack traces with the Xen
>> Crashdump Analyser, which only has System.map available.
>>
>> xen.git/xen$ cat System.map | cut -d ' ' -f 3 | sort | uniq -d | wc -l
>> 78
>>
>> Having duplicate symbol names for different symbols is confusing at the
>> very least, and trivial to avoid. I reckon that most if not all of
>> those 78 duplicate symbols can, and should be, deduplicated. Renaming
>> credit -> credit2 will amend about 1/4 of that list.
> For the crash dump analyzer, I can't see why it shouldn't be able to
> consume the symbol table from elf-syms or elf.efi instead of the
> (reduced) System.map.
Because it mostly runs on a systems without the debuginfo rpms installed.
Furthermore, it needs to fit in a 64MB crash region with the crash
kernel and initrd as well (although this is more flexible).
>
> And for Xen generated stack traces I think I already said that this has
> been on my todo list for quite some time, pending no more important
> things to deal with, yet not to follow what you suggest, but to make
> Xen consume its own ELF/COFF symbol table instead of the (again
> reduced) one generated by tools/symbols.
>
> My main rationale here is that within a source file having prefix-less
> names is not only fine, but preferable (less typing, less needless line
> wrapping), and hence only global symbols need to be fully
> disambiguated.
>
> Jan
>From a coding point of view, certainly.
>From a debugging point of view, I completely disagree. From a stack
trace, you want to be able to identify the function absolutely.
Currently, finding "csched_schedule()" in a stack trace still means that
I have to work out which scheduler is actually in use. With a cpupool
using credit1 and a cpupool using credit2, this can be very difficult
after-the-fact.
When stack traces have access to static symbol names, the only concept
of 'non-global' which actually exists are inlined functions.
~Andrew
next prev parent reply other threads:[~2014-04-30 14:08 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-30 9:02 Hidden symbol when debugging hypervisor Dietmar Hahn
2014-04-30 9:26 ` George Dunlap
2014-04-30 9:39 ` Juergen Gross
2014-04-30 10:07 ` George Dunlap
2014-04-30 10:21 ` Jan Beulich
2014-04-30 11:28 ` Andrew Cooper
2014-04-30 13:16 ` Jan Beulich
2014-04-30 14:08 ` Andrew Cooper [this message]
2014-04-30 14:16 ` Jan Beulich
2014-04-30 14:32 ` Andrew Cooper
2014-04-30 14:49 ` Jan Beulich
2014-04-30 14:57 ` George Dunlap
2014-04-30 15:23 ` Jan Beulich
2014-04-30 14:58 ` Andrew Cooper
2014-04-30 10:10 ` Jan Beulich
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=536103C7.7040800@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=JBeulich@suse.com \
--cc=dietmar.hahn@ts.fujitsu.com \
--cc=george.dunlap@eu.citrix.com \
--cc=juergen.gross@ts.fujitsu.com \
--cc=xen-devel@lists.xen.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.