From patchwork Mon Aug 5 19:02:54 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 18778 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f69.google.com (mail-qa0-f69.google.com [209.85.216.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6E7AE246D0 for ; Mon, 5 Aug 2013 19:03:09 +0000 (UTC) Received: by mail-qa0-f69.google.com with SMTP id bv4sf3156833qab.8 for ; Mon, 05 Aug 2013 12:03:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-removed-original-auth :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-google-group-id:list-post:list-help :list-archive:list-unsubscribe; bh=bO7+PoxBMr5FtRLQD+GgMx3YNJQBshMvjLCnKEQ3CRo=; b=erWbUYWWVGPOoOvZaQFBYkCoow/GSIco3JYWc/VqmBEzOUlvxIfaGvRLa4MiLf5aD9 XcxISdT7Ex7KDGZbqeMzBoXXeb8b2pUvETFt5TjiukiWJtu6x1FUEzEKpY3U3RoazLrC WAYV21J4hTdTJKCuIbmEljVTULBwHoZkc0V3wHS+VmTuLht015J423brS0P21nFqbBxd 2ySDWhEO4H0+rcm+/k9OSvfltnH0e5QCrbewRdp91PAR9wJAHRUlgCphyXw6V/waI7qD B4RKzRgBAFSBvLm1tgE6KzSWit+V+EKgtHDughtUEky3f1JTe037T79zFTXnpo3Cx2aL lvVA== X-Received: by 10.59.6.99 with SMTP id ct3mr1864834ved.12.1375729389229; Mon, 05 Aug 2013 12:03:09 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.73.234 with SMTP id o10ls2594923qev.24.gmail; Mon, 05 Aug 2013 12:03:09 -0700 (PDT) X-Received: by 10.52.164.16 with SMTP id ym16mr5173029vdb.32.1375729389120; Mon, 05 Aug 2013 12:03:09 -0700 (PDT) Received: from mail-ve0-f175.google.com (mail-ve0-f175.google.com [209.85.128.175]) by mx.google.com with ESMTPS id f20si112254vcs.67.2013.08.05.12.03.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 05 Aug 2013 12:03:09 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.175; Received: by mail-ve0-f175.google.com with SMTP id oy10so3555288veb.34 for ; Mon, 05 Aug 2013 12:03:09 -0700 (PDT) X-Received: by 10.220.164.138 with SMTP id e10mr6211663vcy.27.1375729388985; Mon, 05 Aug 2013 12:03:08 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.221.11.8 with SMTP id pc8csp106034vcb; Mon, 5 Aug 2013 12:03:08 -0700 (PDT) X-Received: by 10.112.22.102 with SMTP id c6mr8243661lbf.1.1375729387582; Mon, 05 Aug 2013 12:03:07 -0700 (PDT) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com [209.85.215.45]) by mx.google.com with ESMTPS id h8si224622lah.97.2013.08.05.12.03.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 05 Aug 2013 12:03:07 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.215.45 is neither permitted nor denied by best guess record for domain of anders.roxell@linaro.org) client-ip=209.85.215.45; Received: by mail-la0-f45.google.com with SMTP id fj20so2362964lab.18 for ; Mon, 05 Aug 2013 12:03:07 -0700 (PDT) X-Received: by 10.112.189.101 with SMTP id gh5mr9403932lbc.73.1375729386877; Mon, 05 Aug 2013 12:03:06 -0700 (PDT) Received: from localhost (c-853670d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.54.133]) by mx.google.com with ESMTPSA id rd5sm440409lbb.16.2013.08.05.12.03.05 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 05 Aug 2013 12:03:06 -0700 (PDT) From: Anders Roxell To: ltp-list@lists.sourceforge.net Cc: patches@linaro.org, Anders Roxell Subject: [PATCH 1/6] realtime/(func|perf)/: rename run.sh to run_auto.sh Date: Mon, 5 Aug 2013 21:02:54 +0200 Message-Id: <1375729379-16469-2-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1375729379-16469-1-git-send-email-anders.roxell@linaro.org> References: <1375729379-16469-1-git-send-email-anders.roxell@linaro.org> X-Gm-Message-State: ALoCoQlxPGYPbqEFnrvm1b17277Eic4uBf2/I9z/Upc5tganYEyffT7QCm3QJGgLkVv1yWY16HJg X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: anders.roxell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Rename run.sh to run_auto.sh in accordance to all other func tests and remove unnecessary whitespaces newlines at the end of file to prevent git am warning. Signed-off-by: Anders Roxell --- testcases/realtime/func/hrtimer-prio/run.sh | 12 ------ testcases/realtime/func/hrtimer-prio/run_auto.sh | 10 +++++ testcases/realtime/func/measurement/run.sh | 19 --------- testcases/realtime/func/measurement/run_auto.sh | 19 +++++++++ testcases/realtime/perf/latency/run.sh | 45 ---------------------- testcases/realtime/perf/latency/run_auto.sh | 45 ++++++++++++++++++++++ 6 files changed, 74 insertions(+), 76 deletions(-) delete mode 100644 testcases/realtime/func/hrtimer-prio/run.sh create mode 100644 testcases/realtime/func/hrtimer-prio/run_auto.sh delete mode 100644 testcases/realtime/func/measurement/run.sh create mode 100644 testcases/realtime/func/measurement/run_auto.sh delete mode 100755 testcases/realtime/perf/latency/run.sh create mode 100755 testcases/realtime/perf/latency/run_auto.sh diff --git a/testcases/realtime/func/hrtimer-prio/run.sh b/testcases/realtime/func/hrtimer-prio/run.sh deleted file mode 100644 index b45e76b..0000000 --- a/testcases/realtime/func/hrtimer-prio/run.sh +++ /dev/null @@ -1,12 +0,0 @@ -#! /bin/bash - -if [ ! $SCRIPTS_DIR ]; then - # assume we're running standalone - export SCRIPTS_DIR=../../scripts/ -fi - -source $SCRIPTS_DIR/setenv.sh - -$SCRIPTS_DIR/run_c_files.sh "hrtimer-prio" - - diff --git a/testcases/realtime/func/hrtimer-prio/run_auto.sh b/testcases/realtime/func/hrtimer-prio/run_auto.sh new file mode 100644 index 0000000..366e746 --- /dev/null +++ b/testcases/realtime/func/hrtimer-prio/run_auto.sh @@ -0,0 +1,10 @@ +#! /bin/bash + +if [ ! $SCRIPTS_DIR ]; then + # assume we're running standalone + export SCRIPTS_DIR=../../scripts/ +fi + +source $SCRIPTS_DIR/setenv.sh + +$SCRIPTS_DIR/run_c_files.sh "hrtimer-prio" diff --git a/testcases/realtime/func/measurement/run.sh b/testcases/realtime/func/measurement/run.sh deleted file mode 100644 index 3011964..0000000 --- a/testcases/realtime/func/measurement/run.sh +++ /dev/null @@ -1,19 +0,0 @@ -#! /bin/bash - -if [ ! $SCRIPTS_DIR ]; then - # assume we're running standalone - export SCRIPTS_DIR=../../scripts/ -fi - -source $SCRIPTS_DIR/setenv.sh - - -# This is a temporary workaround for previous -# loop support patch which seems to be having -# issues right now. - -LOG_FILE="$LOG_DIR/$LOG_FORMAT-rdtsc-latency.log" -$SCRIPTS_DIR/run_c_files.sh "rdtsc-latency" - -LOG_FILE="$LOG_DIR/$LOG_FORMAT-preempt_timing.log" -$SCRIPTS_DIR/run_c_files.sh "preempt_timing" diff --git a/testcases/realtime/func/measurement/run_auto.sh b/testcases/realtime/func/measurement/run_auto.sh new file mode 100644 index 0000000..3011964 --- /dev/null +++ b/testcases/realtime/func/measurement/run_auto.sh @@ -0,0 +1,19 @@ +#! /bin/bash + +if [ ! $SCRIPTS_DIR ]; then + # assume we're running standalone + export SCRIPTS_DIR=../../scripts/ +fi + +source $SCRIPTS_DIR/setenv.sh + + +# This is a temporary workaround for previous +# loop support patch which seems to be having +# issues right now. + +LOG_FILE="$LOG_DIR/$LOG_FORMAT-rdtsc-latency.log" +$SCRIPTS_DIR/run_c_files.sh "rdtsc-latency" + +LOG_FILE="$LOG_DIR/$LOG_FORMAT-preempt_timing.log" +$SCRIPTS_DIR/run_c_files.sh "preempt_timing" diff --git a/testcases/realtime/perf/latency/run.sh b/testcases/realtime/perf/latency/run.sh deleted file mode 100755 index 2c0d203..0000000 --- a/testcases/realtime/perf/latency/run.sh +++ /dev/null @@ -1,45 +0,0 @@ -#! /bin/bash - -if [ ! $SCRIPTS_DIR ]; then - # assume we're running standalone - export SCRIPTS_DIR=../../scripts/ -fi - -source $SCRIPTS_DIR/setenv.sh -LOG_FILE="$LOG_DIR/$LOG_FORMAT-pthread_cond_many.log" - -echo -e "Logging to: " | tee -a $LOG_FILE -echo -e "$LOG_FILE " | tee -a $LOG_FILE -echo -e "and to local individual .out files " | tee -a $LOG_FILE - -# -# make will eventually go away from here, as will the above echoes -# -make - -# -# Test lots of threads. Specify "--realtime" if you want the first -# process to run realtime. The remainder of the processes (if any) -# will run non-realtime in any case. - -nthread=5000 -iter=400 -nproc=5 - -echo -e "pthread_cond_many configuration:" | tee -a $LOG_FILE -echo -e "number of threads = $nthread " | tee -a $LOG_FILE -echo -e "number of iterations = $iter " | tee -a $LOG_FILE -echo -e "number of processes = $nproc " | tee -a $LOG_FILE - -# Remove any existing local log files -rm -f $nthread.$iter.$nproc.*.out - -i=0 -./pthread_cond_many --realtime --broadcast -i $iter -n $nthread > $nthread.$iter.$nproc.$i.out & -i=1 -while test $i -lt $nproc -do - ./pthread_cond_many --broadcast -i $iter -n $nthread > $nthread.$iter.$nproc.$i.out & - i=`expr $i + 1` -done -wait diff --git a/testcases/realtime/perf/latency/run_auto.sh b/testcases/realtime/perf/latency/run_auto.sh new file mode 100755 index 0000000..2c0d203 --- /dev/null +++ b/testcases/realtime/perf/latency/run_auto.sh @@ -0,0 +1,45 @@ +#! /bin/bash + +if [ ! $SCRIPTS_DIR ]; then + # assume we're running standalone + export SCRIPTS_DIR=../../scripts/ +fi + +source $SCRIPTS_DIR/setenv.sh +LOG_FILE="$LOG_DIR/$LOG_FORMAT-pthread_cond_many.log" + +echo -e "Logging to: " | tee -a $LOG_FILE +echo -e "$LOG_FILE " | tee -a $LOG_FILE +echo -e "and to local individual .out files " | tee -a $LOG_FILE + +# +# make will eventually go away from here, as will the above echoes +# +make + +# +# Test lots of threads. Specify "--realtime" if you want the first +# process to run realtime. The remainder of the processes (if any) +# will run non-realtime in any case. + +nthread=5000 +iter=400 +nproc=5 + +echo -e "pthread_cond_many configuration:" | tee -a $LOG_FILE +echo -e "number of threads = $nthread " | tee -a $LOG_FILE +echo -e "number of iterations = $iter " | tee -a $LOG_FILE +echo -e "number of processes = $nproc " | tee -a $LOG_FILE + +# Remove any existing local log files +rm -f $nthread.$iter.$nproc.*.out + +i=0 +./pthread_cond_many --realtime --broadcast -i $iter -n $nthread > $nthread.$iter.$nproc.$i.out & +i=1 +while test $i -lt $nproc +do + ./pthread_cond_many --broadcast -i $iter -n $nthread > $nthread.$iter.$nproc.$i.out & + i=`expr $i + 1` +done +wait