Bug 13462 - symdata() returns ARM mapping symbols
Summary: symdata() returns ARM mapping symbols
Status: RESOLVED FIXED
Alias: None
Product: systemtap
Classification: Unclassified
Component: runtime (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-01 14:13 UTC by Mark Wielaard
Modified: 2011-12-01 19:05 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
Introduce and use special_arch_symbol() to filter out symbols in dump_symbol_tables (609 bytes, text/plain)
2011-12-01 14:17 UTC, Mark Wielaard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Wielaard 2011-12-01 14:13:40 UTC
ARM mapping symbols ("$a", "$t", "$t.x" or "$d" are never really interesting.
http://infocenter.arm.com/help/topic/com.arm.doc.dui0474c/CHDGFCDI.html
symname() or symdata() should never return them since there is always a
local or global symbol nearby that is more interesting.
Comment 1 Mark Wielaard 2011-12-01 14:17:06 UTC
Created attachment 6082 [details]
Introduce and use special_arch_symbol() to filter out symbols in dump_symbol_tables

Could you try this patch to see whether it helps in your case (I don't see the special symbols myself locally).
Comment 2 Mark Wielaard 2011-12-01 19:05:37 UTC
After some discussion with fche and testing by fturgison irc came up with this slight variant of the original patch:

commit 15c110ee3cf1ffb034456e202b1060a9b0d51f12
Author: Mark Wielaard <mjw@redhat.com>
Date:   Thu Dec 1 20:02:02 2011 +0100

    PR13462 symdata() returns ARM mapping symbols.
    
    Introduce skippable_arch_symbol() function that filters out arch specific
    symbols that should be ignored in dump_symbol_tables().