public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug runtime/5106] New: Remove old map and histogram formatting code
@ 2007-10-04 16:53 hunt at redhat dot com
  2008-05-23 13:37 ` [Bug runtime/5106] " scox at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: hunt at redhat dot com @ 2007-10-04 16:53 UTC (permalink / raw)
  To: systemtap

Unless anyone can come up with a reason to keep it, I will remove the old map
and histogram code from the runtime, along with all the userspace tests which
are depend on it and are mostly redundant now.

History: Before there was a systemtap language, I needed simple ways to print
out maps and histograms for tests. So I implemented a format string, kind of
like C printf, but customized for maps, stats, and histograms.  So you do
something like _stp_map_print(map_name, "First key is %1, second key is %2,
value is %d") and the whole map is printed with just that one line, iterating
through all keys and values. "%1" is the first key, %2, the second key, %d the
value in decimal, etc.  Other options were "%x, %s for values in hex or as
strings. For stats, you could also use "%C, %M, %m, %S, %A and %H" for count,
max, min, sum, average and histogram.

Systemtap has no one-line way to print maps.  And for stats, instead of format
strings, uses pseudo-functions ("@sum(x)", etc).  The two don't really interface
well so all the C code to use the format strings is unused.

-- 
           Summary: Remove old map and histogram formatting code
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: hunt at redhat dot com


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

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

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

* [Bug runtime/5106] Remove old map and histogram formatting code
  2007-10-04 16:53 [Bug runtime/5106] New: Remove old map and histogram formatting code hunt at redhat dot com
@ 2008-05-23 13:37 ` scox at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: scox at redhat dot com @ 2008-05-23 13:37 UTC (permalink / raw)
  To: systemtap



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


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

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

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

end of thread, other threads:[~2008-05-22 19:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-04 16:53 [Bug runtime/5106] New: Remove old map and histogram formatting code hunt at redhat dot com
2008-05-23 13:37 ` [Bug runtime/5106] " scox 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).