From patchwork Wed Mar 18 15:51:53 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 45973 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 110E42153B for ; Wed, 18 Mar 2015 15:52:05 +0000 (UTC) Received: by wivr20 with SMTP id r20sf8485059wiv.0 for ; Wed, 18 Mar 2015 08:52:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=5PqXnHyMc8RHWTo1muM7+1o8HSZjoT52v2g9F7Eytco=; b=gVttVmPv3lO4wRxgnOOpLmTOcImLc9GmqCqQH10VyE7ia5/6ui+sO9V8QB9/zwLDK7 Oq71P6HpBpjC2xXfw7MMnWS0m+dOKPP6e0zAZWELB4dMKu56Pul39lXawzbi3XFB89eR iGO9Ws3tBb3xUrFpISqGoz/GlCCQsbw05BDar2O99sBYSAssPFMXrIS1dATUkKXwlNf6 n2K33jkcx2XTfGNbvSldQyaR4VbgS+qLuBL2kJEVRIAGxgyP+An8ilO4XHIpOl4d1oBH 6QtL6qHDNY12ZgUxibAcorIGKrvX4otceaZAPuu09MdZiPnxV3K5UVztD4RKF4X/+b1l Tm+A== X-Gm-Message-State: ALoCoQlJVahZKZkVvcDH3i8aUJPmGrsfq3BIK1Tz9Eo870wG/jjk9wdzqNGhg8VOe1wugqb+Yc+9 X-Received: by 10.194.221.65 with SMTP id qc1mr11228921wjc.7.1426693924300; Wed, 18 Mar 2015 08:52:04 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.5.2 with SMTP id ci2ls165825lad.38.gmail; Wed, 18 Mar 2015 08:52:03 -0700 (PDT) X-Received: by 10.152.9.200 with SMTP id c8mr63654446lab.67.1426693923806; Wed, 18 Mar 2015 08:52:03 -0700 (PDT) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com. [209.85.215.48]) by mx.google.com with ESMTPS id x6si13190904lal.29.2015.03.18.08.52.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Mar 2015 08:52:03 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by lamx15 with SMTP id x15so39740554lam.3 for ; Wed, 18 Mar 2015 08:52:03 -0700 (PDT) X-Received: by 10.152.8.15 with SMTP id n15mr37661432laa.41.1426693923399; Wed, 18 Mar 2015 08:52:03 -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.112.35.133 with SMTP id h5csp1242520lbj; Wed, 18 Mar 2015 08:52:02 -0700 (PDT) X-Received: by 10.202.168.15 with SMTP id r15mr24448944oie.92.1426693921741; Wed, 18 Mar 2015 08:52:01 -0700 (PDT) Received: from mail-pd0-f179.google.com (mail-pd0-f179.google.com. [209.85.192.179]) by mx.google.com with ESMTPS id m1si36848893pdb.45.2015.03.18.08.52.00 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Mar 2015 08:52:01 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.192.179 as permitted sender) client-ip=209.85.192.179; Received: by pdbop1 with SMTP id op1so46726823pdb.2 for ; Wed, 18 Mar 2015 08:52:00 -0700 (PDT) X-Received: by 10.66.62.201 with SMTP id a9mr163789457pas.101.1426693920748; Wed, 18 Mar 2015 08:52:00 -0700 (PDT) Received: from localhost.localdomain (c-67-170-153-23.hsd1.or.comcast.net. [67.170.153.23]) by mx.google.com with ESMTPSA id y14sm14671828pdl.3.2015.03.18.08.51.59 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 Mar 2015 08:52:00 -0700 (PDT) From: John Stultz To: lkml Cc: John Stultz , Shuah Khan , Prarit Bhargava , Thomas Gleixner , Richard Cochran Subject: [PATCH] kselftest/timers: Set default threadtest values to simplify execution scripts Date: Wed, 18 Mar 2015 08:51:53 -0700 Message-Id: <1426693913-5738-1-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.9.1 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: john.stultz@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) 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: , In order to keep the kselftest Makefiles simpler, set the threadtest default values to the ones used in standard run_tests Cc: Shuah Khan Cc: Prarit Bhargava Cc: Thomas Gleixner Cc: Richard Cochran Signed-off-by: John Stultz --- tools/testing/selftests/timers/threadtest.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/timers/threadtest.c b/tools/testing/selftests/timers/threadtest.c index facd889..e632e11 100644 --- a/tools/testing/selftests/timers/threadtest.c +++ b/tools/testing/selftests/timers/threadtest.c @@ -126,11 +126,13 @@ void *independent_thread(void *arg) return NULL; } +#define DEFAULT_THREAD_COUNT 8 +#define DEFAULT_RUNTIME 30 int main(int argc, char **argv) { - int thread_count = 1, i; - time_t start, now, runtime = 60; + int thread_count, i; + time_t start, now, runtime; char buf[255]; pthread_t pth[MAX_THREADS]; int opt; @@ -138,6 +140,8 @@ int main(int argc, char **argv) int ret = 0; void *(*thread)(void *) = shared_thread; + thread_count = DEFAULT_THREAD_COUNT; + runtime = DEFAULT_RUNTIME; /* Process arguments */ while ((opt = getopt(argc, argv, "t:n:i")) != -1) {