From 814bc89d4635f101b2c0077598f31aad95ed15b7 Mon Sep 17 00:00:00 2001 From: fche Date: Sat, 12 Aug 2006 05:13:09 +0000 Subject: 2006-08-12 Frank Ch. Eigler * configure.ac, Makefile.am: Descend into testsuite/ directory. Remove local test logic. * configure, Makefile.in: Regenerated. * runtest.sh: Not yet removed. * HACKING: Update for new testsuite layout. 2006-08-12 Frank Ch. Eigler * all: Reorganized old pass-1..4 tests one dejagnu bucket. Moved over old pass-5 tests, except for disabled syscalls tests. * Makefile (installcheck): New target for running pass-1..5 tests against installed systemtap. --- testsuite/systemtap.maps/pmap_agg_overflow.stp | 38 ++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100755 testsuite/systemtap.maps/pmap_agg_overflow.stp (limited to 'testsuite/systemtap.maps/pmap_agg_overflow.stp') diff --git a/testsuite/systemtap.maps/pmap_agg_overflow.stp b/testsuite/systemtap.maps/pmap_agg_overflow.stp new file mode 100755 index 00000000..81268550 --- /dev/null +++ b/testsuite/systemtap.maps/pmap_agg_overflow.stp @@ -0,0 +1,38 @@ +# try to induce overflow of pmap aggregation +# (this will only work on smp machines) + +global stat, count, max_count + +probe begin { + if (num_online_cpus() < 2) { + warn("This test only applies to smp systems...") + exit() + } + max_count = num_online_cpus() * max_map_entries() +} + +probe timer.profile { + i = ++count + if (i >= max_count) exit() + stat[i] <<< i +} + +probe end { + # pmap aggregation should overflow here + foreach (i in stat) + printf("@count(stat[%d]) = %d\n", i, @count(stat[i])) +} + +probe end { + # sorted pmap aggregation should overflow here + foreach (i+ in stat) + printf("@count(stat[%d]) = %d\n", i, @count(stat[i])) +} + +function max_map_entries:long() %{ + THIS->__retvalue = MAXMAPENTRIES; +%} + +function num_online_cpus:long() %{ + THIS->__retvalue = num_online_cpus(); +%} -- cgit