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/ChangeLog | 7 ++++++- testsuite/systemtap.samples/profile.stp | 4 +--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/testsuite/ChangeLog b/testsuite/ChangeLog index 5f719701..4b44013c 100644 --- a/testsuite/ChangeLog +++ b/testsuite/ChangeLog @@ -1,4 +1,9 @@ -2007-07-25 Mike Mason +2007-08-02 Mike Mason + + * systemtap.samples/profile.stp: Changed limit check in + foreach loop. + +2007-08-01 Mike Mason * systemtap.samples/profile.stp: Changed pid to tid throughout. Changed delete method in decumulate(). 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