diff options
author | hunt <hunt> | 2005-12-07 19:42:44 +0000 |
---|---|---|
committer | hunt <hunt> | 2005-12-07 19:42:44 +0000 |
commit | 872d26246196a87da8551661635cce52c8e5ed3a (patch) | |
tree | 6463913adae10ef742b391aa40f3530eefb2b723 /runtime/tests/pmaps | |
parent | 406357f996e25314b86e75f9bea436e478637fd1 (diff) | |
download | systemtap-steved-872d26246196a87da8551661635cce52c8e5ed3a.tar.gz systemtap-steved-872d26246196a87da8551661635cce52c8e5ed3a.tar.xz systemtap-steved-872d26246196a87da8551661635cce52c8e5ed3a.zip |
2005-12-07 Martin Hunt <hunt@redhat.com>
* pmaps/*.c: Change pmap type from MAP to PMAP.
* pmaps/pmap.test: Adjust results to match
the more compact histogram format.
* maps/map.test: Adjust results to match
the more compact histogram format.
Diffstat (limited to 'runtime/tests/pmaps')
-rw-r--r-- | runtime/tests/pmaps/ii.c | 5 | ||||
-rw-r--r-- | runtime/tests/pmaps/ii2.c | 2 | ||||
-rw-r--r-- | runtime/tests/pmaps/ii3.c | 2 | ||||
-rw-r--r-- | runtime/tests/pmaps/is.c | 2 | ||||
-rw-r--r-- | runtime/tests/pmaps/ix.c | 2 | ||||
-rw-r--r-- | runtime/tests/pmaps/ix2.c | 2 | ||||
-rw-r--r-- | runtime/tests/pmaps/ix_log.c | 2 | ||||
-rw-r--r-- | runtime/tests/pmaps/ix_none.c | 2 | ||||
-rw-r--r-- | runtime/tests/pmaps/map_format.c | 6 | ||||
-rw-r--r-- | runtime/tests/pmaps/pmap.test | 52 | ||||
-rw-r--r-- | runtime/tests/pmaps/si.c | 5 |
11 files changed, 15 insertions, 67 deletions
diff --git a/runtime/tests/pmaps/ii.c b/runtime/tests/pmaps/ii.c index 4b058b2f..dfce0a07 100644 --- a/runtime/tests/pmaps/ii.c +++ b/runtime/tests/pmaps/ii.c @@ -13,7 +13,7 @@ int main () { - MAP map = _stp_pmap_new_ii(4); + PMAP map = _stp_pmap_new_ii(4); int64_t x; /* put some data in. _processor_number is a global hack that allows */ @@ -53,9 +53,6 @@ int main () /* print the aggregated data */ _stp_pmap_print(map,"map[%1d] = %d"); - - - _stp_pmap_del (map); return 0; } diff --git a/runtime/tests/pmaps/ii2.c b/runtime/tests/pmaps/ii2.c index ecded8c1..0a28ad87 100644 --- a/runtime/tests/pmaps/ii2.c +++ b/runtime/tests/pmaps/ii2.c @@ -17,7 +17,7 @@ int main () { MAP map = _stp_map_new_ii(4); - MAP pmap = _stp_pmap_new_ii(4); + PMAP pmap = _stp_pmap_new_ii(4); int64_t x; /* put some data in. _processor_number is a global hack that allows */ diff --git a/runtime/tests/pmaps/ii3.c b/runtime/tests/pmaps/ii3.c index 560de4cd..e2dee7a6 100644 --- a/runtime/tests/pmaps/ii3.c +++ b/runtime/tests/pmaps/ii3.c @@ -13,7 +13,7 @@ int main () { - MAP map = _stp_pmap_new_ii(4); + PMAP map = _stp_pmap_new_ii(4); int i; /* put some data in. _processor_number is a global hack that allows */ diff --git a/runtime/tests/pmaps/is.c b/runtime/tests/pmaps/is.c index 64c12460..a97d8b0b 100644 --- a/runtime/tests/pmaps/is.c +++ b/runtime/tests/pmaps/is.c @@ -13,7 +13,7 @@ int main () { - MAP map = _stp_pmap_new_is(4); + PMAP map = _stp_pmap_new_is(4); char *x; char buf[32]; diff --git a/runtime/tests/pmaps/ix.c b/runtime/tests/pmaps/ix.c index 2c79c3d1..0eba2d54 100644 --- a/runtime/tests/pmaps/ix.c +++ b/runtime/tests/pmaps/ix.c @@ -10,7 +10,7 @@ int main () { - MAP map = _stp_pmap_new_ix(4, HIST_LINEAR, 0, 100, 10); + PMAP map = _stp_pmap_new_ix(4, HIST_LINEAR, 0, 100, 10); int64_t x; /* put some data in. _processor_number is a global hack that allows */ diff --git a/runtime/tests/pmaps/ix2.c b/runtime/tests/pmaps/ix2.c index 6016bf53..638e5226 100644 --- a/runtime/tests/pmaps/ix2.c +++ b/runtime/tests/pmaps/ix2.c @@ -10,7 +10,7 @@ int main () { - MAP map = _stp_pmap_new_ix(4, HIST_LINEAR, 0, 100, 10); + PMAP map = _stp_pmap_new_ix(4, HIST_LINEAR, 0, 100, 10); int i; /* put some data in. _processor_number is a global hack that allows */ diff --git a/runtime/tests/pmaps/ix_log.c b/runtime/tests/pmaps/ix_log.c index da644d8d..4f3c5503 100644 --- a/runtime/tests/pmaps/ix_log.c +++ b/runtime/tests/pmaps/ix_log.c @@ -11,7 +11,7 @@ int main () { - MAP map = _stp_pmap_new_ix(4, HIST_LOG, 5); + PMAP map = _stp_pmap_new_ix(4, HIST_LOG, 5); int64_t x; /* put some data in. _processor_number is a global hack that allows */ diff --git a/runtime/tests/pmaps/ix_none.c b/runtime/tests/pmaps/ix_none.c index c8ab6cbc..440b0069 100644 --- a/runtime/tests/pmaps/ix_none.c +++ b/runtime/tests/pmaps/ix_none.c @@ -11,7 +11,7 @@ int main () { - MAP map = _stp_pmap_new_ix(4, HIST_NONE); + PMAP map = _stp_pmap_new_ix(4, HIST_NONE); int64_t x; /* put some data in. _processor_number is a global hack that allows */ diff --git a/runtime/tests/pmaps/map_format.c b/runtime/tests/pmaps/map_format.c index e6c6d9f6..b27506e0 100644 --- a/runtime/tests/pmaps/map_format.c +++ b/runtime/tests/pmaps/map_format.c @@ -30,7 +30,7 @@ void inc_cpu(void) int main () { - MAP mapiis = _stp_pmap_new_iiss(4); + PMAP mapiis = _stp_pmap_new_iiss(4); _processor_number = 0; _stp_pmap_set_iiss (mapiis, 1,2,"Ohio", "Columbus" ); _stp_pmap_set_iiss (mapiis, 3,4,"California", "Sacramento" ); @@ -44,7 +44,7 @@ int main () /* very bad string. don't crash */ _stp_pmap_print (mapiis, "%s -> mapiis %1s %2s %3d %4d"); - MAP mapss = _stp_pmap_new_ssi(4); + PMAP mapss = _stp_pmap_new_ssi(4); _stp_pmap_set_ssi (mapss, "Riga", "Latvia", 0x0000c0dedbad0000LL); _stp_pmap_set_ssi (mapss, "Sofia", "Bulgaria", 0xdeadf00d12345678LL); _stp_pmap_set_ssi (mapss, "Valletta", "Malta", 1); @@ -53,7 +53,7 @@ int main () _stp_pmap_print (mapss, "The capitol of %1s is %2s and the nerd population is %x"); _stp_pmap_print (mapss, "The capitol of %1s is %2s and the nerd population is %X"); - MAP mapssx = _stp_pmap_new_ssx (4, HIST_LINEAR, 0, 100, 10 ); + PMAP mapssx = _stp_pmap_new_ssx (4, HIST_LINEAR, 0, 100, 10 ); int i,j; for (i = 0; i < 100; i++) diff --git a/runtime/tests/pmaps/pmap.test b/runtime/tests/pmaps/pmap.test index 71f94e56..04fbb208 100644 --- a/runtime/tests/pmaps/pmap.test +++ b/runtime/tests/pmaps/pmap.test @@ -249,26 +249,12 @@ value |-------------------------------------------------- count 0 |@@@@@@@@ 8 10 | 0 20 | 0 - 30 | 0 - 40 | 0 - 50 | 0 - 60 | 0 - 70 | 0 - 80 | 0 - 90 | 0 map[1] = count:8 sum:28 avg:3 min:0 max:7 value |-------------------------------------------------- count 0 |@@@@@@@@ 8 10 | 0 20 | 0 - 30 | 0 - 40 | 0 - 50 | 0 - 60 | 0 - 70 | 0 - 80 | 0 - 90 | 0 map[3] = count:8 sum:140 avg:17 min:0 max:49 value |-------------------------------------------------- count @@ -279,9 +265,6 @@ value |-------------------------------------------------- count 40 |@ 1 50 | 0 60 | 0 - 70 | 0 - 80 | 0 - 90 | 0 } @@ -351,7 +334,6 @@ value |-------------------------------------------------- count 1 |@@@@@@@@ 8 2 | 0 4 | 0 - 8 | 0 map[1] = count:8 sum:28 avg:3 min:0 max:7 value |-------------------------------------------------- count @@ -633,26 +615,12 @@ value |-------------------------------------------------- count 0 |@@@@@@@@ 8 10 | 0 20 | 0 - 30 | 0 - 40 | 0 - 50 | 0 - 60 | 0 - 70 | 0 - 80 | 0 - 90 | 0 map[1] = count:8 sum:28 avg:3 min:0 max:7 value |-------------------------------------------------- count 0 |@@@@@@@@ 8 10 | 0 20 | 0 - 30 | 0 - 40 | 0 - 50 | 0 - 60 | 0 - 70 | 0 - 80 | 0 - 90 | 0 map[3] = count:8 sum:140 avg:17 min:0 max:49 value |-------------------------------------------------- count @@ -663,9 +631,6 @@ value |-------------------------------------------------- count 40 |@ 1 50 | 0 60 | 0 - 70 | 0 - 80 | 0 - 90 | 0 map[1] Sum = 28 @@ -678,26 +643,12 @@ value |-------------------------------------------------- count 0 |@@@@@@@@ 8 10 | 0 20 | 0 - 30 | 0 - 40 | 0 - 50 | 0 - 60 | 0 - 70 | 0 - 80 | 0 - 90 | 0 map[1] = count:8 sum:28 avg:3 min:0 max:7 value |-------------------------------------------------- count 0 |@@@@@@@@ 8 10 | 0 20 | 0 - 30 | 0 - 40 | 0 - 50 | 0 - 60 | 0 - 70 | 0 - 80 | 0 - 90 | 0 map[3] = count:8 sum:140 avg:17 min:0 max:49 value |-------------------------------------------------- count @@ -708,9 +659,6 @@ value |-------------------------------------------------- count 40 |@ 1 50 | 0 60 | 0 - 70 | 0 - 80 | 0 - 90 | 0 map[1] Sum = 28 diff --git a/runtime/tests/pmaps/si.c b/runtime/tests/pmaps/si.c index 49eb3caf..8b05da74 100644 --- a/runtime/tests/pmaps/si.c +++ b/runtime/tests/pmaps/si.c @@ -13,9 +13,12 @@ int main () { - MAP map = _stp_pmap_new_si(4); + PMAP map = _stp_pmap_new_si(4); int64_t x; + if (!map) + return -1; + /* put some data in. _processor_number is a global hack that allows */ /* us to set the current emulated cpu number for our userspace tests. */ /* Note that we set values based on the cpu number just to show that */ |