This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/3672] New: Support formatted dump of kernel structures
- From: "mmlnx at us dot ibm dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 7 Dec 2006 01:47:05 -0000
- Subject: [Bug translator/3672] New: Support formatted dump of kernel structures
- Reply-to: sourceware-bugzilla at sourceware dot org
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.