From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3804 invoked by alias); 4 Oct 2007 16:53:11 -0000 Received: (qmail 3781 invoked by uid 48); 4 Oct 2007 16:53:02 -0000 Date: Thu, 04 Oct 2007 16:53:00 -0000 From: "hunt at redhat dot com" To: systemtap@sources.redhat.com Message-ID: <20071004165301.5106.hunt@redhat.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug runtime/5106] New: Remove old map and histogram formatting code X-Bugzilla-Reason: AssignedTo Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2007-q4/txt/msg00059.txt.bz2 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.