From 2fa08ae4a89a80af291bca046626b035be0ea569 Mon Sep 17 00:00:00 2001 From: fche Date: Sat, 22 Sep 2007 16:45:13 +0000 Subject: PR 5057: histogram zero elision 2007-09-22 Frank Ch. Eigler PR 5057. * stat-common.c (_stp_stat_print_histogram): Elide consecutive zero rows beyond 2*STAT_ELISION+1. (STAT_ELISION): New parameter, default 2. 2007-09-22 Frank Ch. Eigler PR 5057. * systemtap.maps/linear_nearlyempty.*: New test for histogram printing elision. --- testsuite/systemtap.maps/linear_nearlyempty.exp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 testsuite/systemtap.maps/linear_nearlyempty.exp (limited to 'testsuite/systemtap.maps/linear_nearlyempty.exp') diff --git a/testsuite/systemtap.maps/linear_nearlyempty.exp b/testsuite/systemtap.maps/linear_nearlyempty.exp new file mode 100644 index 00000000..dfb5e9ef --- /dev/null +++ b/testsuite/systemtap.maps/linear_nearlyempty.exp @@ -0,0 +1,25 @@ +# Test nearly empty linear histogram + +set test "linear_nearlyempty" +set ::result_string {count=2 +sum=1443 +min=444 +max=999 +avg=721 +value |-------------------------------------------------- count + 300 | 0 + 350 | 0 + 400 |@ 1 + 450 | 0 + 500 | 0 + ~ + 850 | 0 + 900 | 0 + 950 |@ 1 + 1000 | 0 + 1050 | 0 +} + +stap_run2 $srcdir/$subdir/$test.stp + + -- cgit