summaryrefslogtreecommitdiffstats
path: root/runtime/tests/pmaps/si.c
diff options
context:
space:
mode:
authorhunt <hunt>2005-12-07 19:42:44 +0000
committerhunt <hunt>2005-12-07 19:42:44 +0000
commit872d26246196a87da8551661635cce52c8e5ed3a (patch)
tree6463913adae10ef742b391aa40f3530eefb2b723 /runtime/tests/pmaps/si.c
parent406357f996e25314b86e75f9bea436e478637fd1 (diff)
downloadsystemtap-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/si.c')
-rw-r--r--runtime/tests/pmaps/si.c5
1 files changed, 4 insertions, 1 deletions
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 */