From: John Stultz <john.stultz@linaro.org>
To: lkml <linux-kernel@vger.kernel.org>
Cc: John Stultz <john.stultz@linaro.org>,
Shuah Khan <shuahkh@osg.samsung.com>,
Prarit Bhargava <prarit@redhat.com>,
Thomas Gleixner <tglx@linutronix.de>,
Richard Cochran <richardcochran@gmail.com>
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 [thread overview]
Message-ID: <1427327073-19011-2-git-send-email-john.stultz@linaro.org> (raw)
In-Reply-To: <1427327073-19011-1-git-send-email-john.stultz@linaro.org>
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 <shuahkh@osg.samsung.com>
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
---
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;
--
1.9.1
next prev parent reply other threads:[~2015-03-25 23:44 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-25 23:44 [PATCH 1/2] kselftests: timers: Make set-timer-lat fail more gracefully for !CAP_WAKE_ALARM John Stultz
2015-03-25 23:44 ` John Stultz [this message]
2015-03-26 11:32 ` [PATCH 2/2] kselftests: timers: Reduce default runtime on inconsistency-check and set-timer-lat Prarit Bhargava
2015-03-26 16:20 ` John Stultz
2015-03-31 16:01 ` Shuah Khan
2015-03-31 19:47 ` Shuah Khan
2015-03-26 11:31 ` [PATCH 1/2] kselftests: timers: Make set-timer-lat fail more gracefully for !CAP_WAKE_ALARM Prarit Bhargava
2015-03-26 16:29 ` John Stultz
2015-03-26 17:33 ` Tyler Baker
2015-04-02 10:18 ` Prarit Bhargava
2015-04-02 13:43 ` Shuah Khan
2015-04-02 17:17 ` Tyler Baker
2015-04-02 17:48 ` Shuah Khan
2015-04-02 18:58 ` Tyler Baker
2015-04-02 18:02 ` John Stultz
2015-04-07 14:20 ` Prarit Bhargava
2015-04-08 4:03 ` Michael Ellerman
2015-04-02 10:14 ` Prarit Bhargava
2015-03-31 15:55 ` Shuah Khan
2015-04-02 3:42 ` John Stultz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1427327073-19011-2-git-send-email-john.stultz@linaro.org \
--to=john.stultz@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=prarit@redhat.com \
--cc=richardcochran@gmail.com \
--cc=shuahkh@osg.samsung.com \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®