]> sourceware.org Git - systemtap.git/commitdiff
Changed limit check in foreach loop.
authormmason <mmason>
Thu, 2 Aug 2007 18:29:27 +0000 (18:29 +0000)
committermmason <mmason>
Thu, 2 Aug 2007 18:29:27 +0000 (18:29 +0000)
testsuite/ChangeLog
testsuite/systemtap.samples/profile.stp

index 5f719701c13a387eff01d011851836d305fe2389..4b44013c7e14efa98a9b9d701d32c3d168320ef5 100644 (file)
@@ -1,4 +1,9 @@
-2007-07-25  Mike Mason <mmlnx@us.ibm.com>
+2007-08-02  Mike Mason <mmlnx@us.ibm.com>
+
+       * systemtap.samples/profile.stp: Changed limit check in
+       foreach loop.
+
+2007-08-01  Mike Mason <mmlnx@us.ibm.com>
 
        * systemtap.samples/profile.stp: Changed pid to tid throughout.
        Changed delete method in decumulate().
index a1453541f5b9b57f3da1a5717de19356bee502f3..d052f0913357559e3b835b834e281bf66f0cc71b 100644 (file)
@@ -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
   }
 }
This page took 0.033195 seconds and 5 git commands to generate.