This is the mail archive of the
mailing list for the systemtap project.
[Bug runtime/5106] New: Remove old map and histogram formatting code
- From: "hunt at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 4 Oct 2007 16:53:02 -0000
- Subject: [Bug runtime/5106] New: Remove old map and histogram formatting code
- Reply-to: sourceware-bugzilla at sourceware dot org
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
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: hunt at redhat dot com
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.