public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/3672] New: Support formatted dump of kernel structures
@ 2006-12-07  3:56 mmlnx at us dot ibm dot com
  2008-03-18  1:40 ` [Bug translator/3672] " fche at redhat dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: mmlnx at us dot ibm dot com @ 2006-12-07  3:56 UTC (permalink / raw)
  To: systemtap

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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug translator/3672] Support formatted dump of kernel structures
  2006-12-07  3:56 [Bug translator/3672] New: Support formatted dump of kernel structures mmlnx at us dot ibm dot com
@ 2008-03-18  1:40 ` fche at redhat dot com
  2008-08-15 23:30 ` fche at redhat dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: fche at redhat dot com @ 2008-03-18  1:40 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From fche at redhat dot com  2008-03-18 01:39 -------
*** Bug 5954 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mhiramat at redhat 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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug translator/3672] Support formatted dump of kernel structures
  2006-12-07  3:56 [Bug translator/3672] New: Support formatted dump of kernel structures mmlnx at us dot ibm dot com
  2008-03-18  1:40 ` [Bug translator/3672] " fche at redhat dot com
@ 2008-08-15 23:30 ` fche at redhat dot com
  2008-08-15 23:40 ` mhiramat at redhat dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: fche at redhat dot com @ 2008-08-15 23:30 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From fche at redhat dot com  2008-08-15 22:28 -------
Another possible syntax for this is inspired by the $$vars introduced
recently.  Expanding struct contents could be represented like so:

    $var$  =>  a string representation of $var's fields: like
               0xfoo
          or   {.foo=0xbeef, .zoo=0xp00}

To control the depth of nesting expansion, we could add extra "$"s at the end:

    $var$$ =>  {.foo=0xbeef, .bar={.so=0x44, .po=0x848}}

This could compose with the $$ variables too:

  $$vars$  =>  var1=0xdead var2={.foo=0xbeef, .zoo=0xp00}


-- 


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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug translator/3672] Support formatted dump of kernel structures
  2006-12-07  3:56 [Bug translator/3672] New: Support formatted dump of kernel structures mmlnx at us dot ibm dot com
  2008-03-18  1:40 ` [Bug translator/3672] " fche at redhat dot com
  2008-08-15 23:30 ` fche at redhat dot com
@ 2008-08-15 23:40 ` mhiramat at redhat dot com
  2009-06-17 18:58 ` [Bug translator/3672] Support formatted dump of struct $pointers fche at redhat dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: mhiramat at redhat dot com @ 2008-08-15 23:40 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From mhiramat at redhat dot com  2008-08-15 23:35 -------
(In reply to comment #2)
> Another possible syntax for this is inspired by the $$vars introduced
> recently.  Expanding struct contents could be represented like so:
> 

How about $$$var syntax?
It also could compose $$vars as $$$vars, or $$$parms.
and depth also be increased by adding $. ($$$$var)

>     $var$  =>  a string representation of $var's fields: like
>                0xfoo
>           or   {.foo=0xbeef, .zoo=0xp00}

I like latter format :-)

Thanks,

-- 


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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug translator/3672] Support formatted dump of struct $pointers
  2006-12-07  3:56 [Bug translator/3672] New: Support formatted dump of kernel structures mmlnx at us dot ibm dot com
                   ` (2 preceding siblings ...)
  2008-08-15 23:40 ` mhiramat at redhat dot com
@ 2009-06-17 18:58 ` fche at redhat dot com
  2009-11-05 18:29 ` fche at redhat dot com
  2009-11-10 19:00 ` jistone at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: fche at redhat dot com @ 2009-06-17 18:58 UTC (permalink / raw)
  To: systemtap



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Support formatted dump of   |Support formatted dump of
                   |kernel structures           |struct $pointers


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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug translator/3672] Support formatted dump of struct $pointers
  2006-12-07  3:56 [Bug translator/3672] New: Support formatted dump of kernel structures mmlnx at us dot ibm dot com
                   ` (3 preceding siblings ...)
  2009-06-17 18:58 ` [Bug translator/3672] Support formatted dump of struct $pointers fche at redhat dot com
@ 2009-11-05 18:29 ` fche at redhat dot com
  2009-11-10 19:00 ` jistone at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: fche at redhat dot com @ 2009-11-05 18:29 UTC (permalink / raw)
  To: systemtap



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |10907
              nThis|                            |


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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug translator/3672] Support formatted dump of struct $pointers
  2006-12-07  3:56 [Bug translator/3672] New: Support formatted dump of kernel structures mmlnx at us dot ibm dot com
                   ` (4 preceding siblings ...)
  2009-11-05 18:29 ` fche at redhat dot com
@ 2009-11-10 19:00 ` jistone at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: jistone at redhat dot com @ 2009-11-10 19:00 UTC (permalink / raw)
  To: systemtap



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|systemtap at sources dot    |jistone at redhat dot com
                   |redhat dot com              |
             Status|NEW                         |ASSIGNED


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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-11-10 19:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-07  3:56 [Bug translator/3672] New: Support formatted dump of kernel structures mmlnx at us dot ibm dot com
2008-03-18  1:40 ` [Bug translator/3672] " fche at redhat dot com
2008-08-15 23:30 ` fche at redhat dot com
2008-08-15 23:40 ` mhiramat at redhat dot com
2009-06-17 18:58 ` [Bug translator/3672] Support formatted dump of struct $pointers fche at redhat dot com
2009-11-05 18:29 ` fche at redhat dot com
2009-11-10 19:00 ` jistone at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).