This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/13284] failure to resolve kernel global e.g. jiffies


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]