From 1a680ee7d7f3654f9229e66ba4240093667051d9 Mon Sep 17 00:00:00 2001 From: mmason Date: Thu, 2 Aug 2007 18:29:27 +0000 Subject: Changed limit check in foreach loop. --- testsuite/systemtap.samples/profile.stp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'testsuite/systemtap.samples') 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 } } -- cgit