summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.samples
diff options
context:
space:
mode:
authormmason <mmason>2007-08-02 18:29:27 +0000
committermmason <mmason>2007-08-02 18:29:27 +0000
commit1a680ee7d7f3654f9229e66ba4240093667051d9 (patch)
tree36e2c380c88783081c44c4a38794aab5cd78ab2a /testsuite/systemtap.samples
parent0b1587bf6dae8229f80ebcdeb7d9b95e6f3b95af (diff)
downloadsystemtap-steved-1a680ee7d7f3654f9229e66ba4240093667051d9.tar.gz
systemtap-steved-1a680ee7d7f3654f9229e66ba4240093667051d9.tar.xz
systemtap-steved-1a680ee7d7f3654f9229e66ba4240093667051d9.zip
Changed limit check in foreach loop.
Diffstat (limited to 'testsuite/systemtap.samples')
-rw-r--r--testsuite/systemtap.samples/profile.stp4
1 files changed, 1 insertions, 3 deletions
diff --git a/testsuite/systemtap.samples/profile.stp b/testsuite/systemtap.samples/profile.stp
index a1453541..d052f091 100644
--- a/testsuite/systemtap.samples/profile.stp
+++ b/testsuite/systemtap.samples/profile.stp
@@ -28,10 +28,8 @@ probe timer.ms(5000) {
exit ()
}
probe end {
- foreach ([tid,syscall] in syscall_count-) {
+ foreach ([tid,syscall] in syscall_count- limit 30) {
printf("%s(%d) %s count=%d ttime=%d\n", command[tid], tid, syscall,
syscall_count[tid,syscall], syscall_times[tid,syscall])
-
- if (count++ > 30) next
}
}