From patchwork Wed Mar 25 23:44:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 46341 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D005B21584 for ; Wed, 25 Mar 2015 23:44:46 +0000 (UTC) Received: by labcd2 with SMTP id cd2sf2121700lab.3 for ; Wed, 25 Mar 2015 16:44:45 -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:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=S/C9i0+cFQkHDwOPaZ+H8tPHui+2HAPZA/ogVwKdwpY=; b=LUodZyTHJjyf/EnN1tu4mpBFHszbRjj85Fj9xtBWhDRN2NpjLTug2uUYkJVJMPMw2S iyQgR+a9NTJFxauWdNsOYgSKpHzvPDsXa7ndswv8Q+/IAQARx30N72Z85153Qnb8Phk/ uN7RolO6dQoerwFehoL2mqLQoTU6a8ynBxjeseib+WjfUIkb4qX7dX+TAahk0lUXwCIj 7OJMQYx2ol9fvebLSZu/mXlwxOSQMsOs7Bfkq0pKUUhMqJ11X6J6jKcFV1LAjcxvfj0E PAjblKrukx7fxl3BKzTJoPlfUwr9L78XK43NXphxuIh9S39kDw+W7fCm2o0yZ32tnCCO H1RQ== X-Gm-Message-State: ALoCoQnvo2SbLbmYPLov6CrpHeGEHyFBOTIwMUEq9aYLH1XQW3C6vKe/Z+JExmzffU7Gk9kudaiV X-Received: by 10.112.202.227 with SMTP id kl3mr2688420lbc.2.1427327085471; Wed, 25 Mar 2015 16:44:45 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.115.211 with SMTP id jq19ls198245lab.32.gmail; Wed, 25 Mar 2015 16:44:45 -0700 (PDT) X-Received: by 10.112.98.201 with SMTP id ek9mr10860569lbb.68.1427327085324; Wed, 25 Mar 2015 16:44:45 -0700 (PDT) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com. [209.85.217.170]) by mx.google.com with ESMTPS id ud11si3191421lac.170.2015.03.25.16.44.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Mar 2015 16:44:45 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.170 as permitted sender) client-ip=209.85.217.170; Received: by lbcgn8 with SMTP id gn8so29275573lbc.2 for ; Wed, 25 Mar 2015 16:44:45 -0700 (PDT) X-Received: by 10.152.28.5 with SMTP id x5mr10594272lag.112.1427327085226; Wed, 25 Mar 2015 16:44:45 -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.57.201 with SMTP id k9csp270411lbq; Wed, 25 Mar 2015 16:44:44 -0700 (PDT) X-Received: by 10.70.129.10 with SMTP id ns10mr21085943pdb.87.1427327083495; Wed, 25 Mar 2015 16:44:43 -0700 (PDT) Received: from mail-pa0-f41.google.com (mail-pa0-f41.google.com. [209.85.220.41]) by mx.google.com with ESMTPS id am5si5743143pbc.14.2015.03.25.16.44.42 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Mar 2015 16:44:43 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; Received: by pagj7 with SMTP id j7so44527427pag.2 for ; Wed, 25 Mar 2015 16:44:42 -0700 (PDT) X-Received: by 10.70.21.236 with SMTP id y12mr21752560pde.154.1427327082585; Wed, 25 Mar 2015 16:44:42 -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 ok8sm3560807pdb.66.2015.03.25.16.44.41 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Mar 2015 16:44:41 -0700 (PDT) From: John Stultz To: lkml Cc: John Stultz , Shuah Khan , Prarit Bhargava , Thomas Gleixner , Richard Cochran Subject: [PATCH 2/2] kselftests: timers: Reduce default runtime on inconsistency-check and set-timer-lat Date: Wed, 25 Mar 2015 16:44:33 -0700 Message-Id: <1427327073-19011-2-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1427327073-19011-1-git-send-email-john.stultz@linaro.org> References: <1427327073-19011-1-git-send-email-john.stultz@linaro.org> 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.217.170 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: , For the default run_timers target, the timers tests takes the majority of kselftests runtime. So this patch reduces the default runtime for inconsistentcy-check and set-timer-lat, which reduced the runtime almost in half. Before: 11m48.629s After: 6m47.723s Cc: Shuah Khan Cc: Prarit Bhargava Cc: Thomas Gleixner Cc: Richard Cochran Signed-off-by: John Stultz Signed-off-by: John Stultz --- tools/testing/selftests/timers/inconsistency-check.c | 2 +- tools/testing/selftests/timers/set-timer-lat.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/timers/inconsistency-check.c b/tools/testing/selftests/timers/inconsistency-check.c index 578e423a..caf1bc9 100644 --- a/tools/testing/selftests/timers/inconsistency-check.c +++ b/tools/testing/selftests/timers/inconsistency-check.c @@ -166,7 +166,7 @@ int main(int argc, char *argv[]) int clockid, opt; int userclock = CLOCK_REALTIME; int maxclocks = NR_CLOCKIDS; - int runtime = 30; + int runtime = 10; struct timespec ts; /* Process arguments */ diff --git a/tools/testing/selftests/timers/set-timer-lat.c b/tools/testing/selftests/timers/set-timer-lat.c index dbc9537c..ba365d9 100644 --- a/tools/testing/selftests/timers/set-timer-lat.c +++ b/tools/testing/selftests/timers/set-timer-lat.c @@ -58,7 +58,7 @@ static inline int ksft_exit_fail(void) #define NSEC_PER_SEC 1000000000ULL #define UNRESONABLE_LATENCY 40000000 /* 40ms in nanosecs */ -#define TIMER_SECS 3 +#define TIMER_SECS 1 int alarmcount; int clock_id; struct timespec start_time;