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/3672] New: Support formatted dump of kernel structures


Add a function or extend printf to dump a kernel structure in a human readable
format, similar to what gdb can do.  Does dwarf give us enough info to do this
without requiring the script to specify the structure type?

For example, something like this:

print_struct($sock)

where $sock is a pointer to a struct socket could output this:

{
  state = 1,
  flags = 6,
  ops = 0x83337444,
  fasync_list = 0x84435355,
  file = 0x54338234,
  sk = 0x73322556,
  wait = {
    lock = 1,
    task_list = {
      next = 0x822334455,
      prev = 0x855443322
    },
  },
  type = 0
}

-- 
           Summary: Support formatted dump of kernel structures
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: mmlnx at us dot ibm dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=3672

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


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