This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/13284] failure to resolve kernel global e.g. jiffies
- From: "mjw at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Tue, 18 Oct 2011 12:04:56 +0000
- Subject: [Bug translator/13284] failure to resolve kernel global e.g. jiffies
- Auto-submitted: auto-generated
- References: <bug-13284-6586@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=13284
Mark Wielaard <mjw at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mjw at redhat dot com
--- Comment #1 from Mark Wielaard <mjw at redhat dot com> 2011-10-18 12:04:56 UTC ---
We should in theory already be able to do that through vardie_from_symtable().
See dwflpp::literal_stmt_for_local():
// If it is an external variable try the symbol table. PR10622.
if (dwarf_attr_integrate (&vardie, DW_AT_external, &attr_mem) != NULL
&& vardie_from_symtable (&vardie, &addr_loc.number) != 0)
That should trigger, since I see:
46983: ffffffff81b89880 0 NOTYPE GLOBAL DEFAULT ABS jiffies
But it doesn't since vardie_from_symtable() has:
if (symname
&& ! strcmp (name, symname)
&& sym.st_shndx != SHN_UNDEF
&& GELF_ST_TYPE (sym.st_info) == STT_OBJECT)
So, we need to be a little more creative and also allow NOTYPE?
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.