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/5954] New: support a structure-dumping command


I think that introducing a structure dumping command like as 'struct' command of
crash tool, which displays the contents of a kernel data structure, is useful
especially for trial and error style programmers(like me:-)).

For example, when we have a below data structure,
--
struct foo_struct {
    int num;
    int count[3];
    char *name;
    struct bar_struct *ptr;
    struct list_head list;
} foo;
--

then, print(data_structure($foo)) shows,
--
{1, {10,0,0}, 0xcafef00d, 0xdeadbeef, {0x12345678, 0x12345678}}
--

and print_structure($foo) shows,
--
{
 .num = 1,
 .count = {10,0,0},
 .name = 0xcafef00d,
 .ptr = 0xdeadbeef,
 .list = {.prev = 0x12345678, .next = 0x12345678}
}
--

-- 
           Summary: support a structure-dumping command
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: enhancement
          Priority: P3
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: mhiramat at redhat dot com


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

------- 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]