summaryrefslogtreecommitdiffstats
path: root/runtime/tests/maps/isx.c
diff options
context:
space:
mode:
authorStan Cox <scox@redhat.com>2008-05-29 14:46:38 -0400
committerStan Cox <scox@redhat.com>2008-05-29 14:46:38 -0400
commitc39d889155d4c9365bd27691d22a92c447ced976 (patch)
tree64b56069b0435ac09564ba983bea154a9747bcbe /runtime/tests/maps/isx.c
parentef63732e82dd7979dcf608ba6ed4528e150b47ac (diff)
downloadsystemtap-steved-c39d889155d4c9365bd27691d22a92c447ced976.tar.gz
systemtap-steved-c39d889155d4c9365bd27691d22a92c447ced976.tar.xz
systemtap-steved-c39d889155d4c9365bd27691d22a92c447ced976.zip
SW5106 Remove old map and histogram formatting code
Diffstat (limited to 'runtime/tests/maps/isx.c')
-rw-r--r--runtime/tests/maps/isx.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/runtime/tests/maps/isx.c b/runtime/tests/maps/isx.c
deleted file mode 100644
index 9003f522..00000000
--- a/runtime/tests/maps/isx.c
+++ /dev/null
@@ -1,41 +0,0 @@
-#include "runtime.h"
-
-/* test of maps with keys of int64 and value of stat */
-#define VALUE_TYPE STAT
-#define KEY1_TYPE INT64
-#include "map-gen.c"
-#include "map.c"
-
-int main ()
-{
- int i, j;
- MAP map = _stp_map_new_ix (4, HIST_LINEAR, 0, 100, 10 );
- MAP map2 = _stp_map_new_ix(4, HIST_LOG, 11);
-
- for (i = 0; i < 100; i++)
- for (j = 0; j <= i*10 ; j++ )
- _stp_map_add_ix (map, 3, i);
-
- for (i = 0; i < 10; i++)
- for (j = 0; j < 10 ; j++ )
- _stp_map_add_ix (map, 2, j * i );
-
- for (i = 0; i < 100; i += 10)
- for (j = 0; j < i/10 ; j++ )
- _stp_map_add_ix (map, 1, i);
-
- for (i = 0; i < 128; i++)
- for (j = 0; j < 128 ; j++ )
- _stp_map_add_ix (map2, 1, i);
-
- for (i = 0; i < 1024; i++)
- for (j = 0; j < 1024 ; j++ )
- _stp_map_add_ix (map2, 2, i);
-
- _stp_map_print (map, "map[%1d] = count:%C sum:%S avg:%A min:%m max:%M\n%H");
- _stp_map_print (map2, "map2[%1d] = count:%C sum:%S avg:%A min:%m max:%M\n%H");
-
- _stp_map_del (map);
- _stp_map_del (map2);
- return 0;
-}