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 runtime/5106] New: Remove old map and histogram formatting code


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.


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