From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754985AbbKHH3x (ORCPT ); Sun, 8 Nov 2015 02:29:53 -0500 Received: from terminus.zytor.com ([198.137.202.10]:45966 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754020AbbKHH3u (ORCPT ); Sun, 8 Nov 2015 02:29:50 -0500 Date: Sat, 7 Nov 2015 23:29:29 -0800 From: tip-bot for Arnaldo Carvalho de Melo Message-ID: Cc: mingo@kernel.org, acme@redhat.com, dsahern@gmail.com, namhyung@kernel.org, adrian.hunter@intel.com, hpa@zytor.com, linux-kernel@vger.kernel.org, jolsa@redhat.com, wangnan0@huawei.com, tglx@linutronix.de Reply-To: linux-kernel@vger.kernel.org, jolsa@redhat.com, wangnan0@huawei.com, tglx@linutronix.de, mingo@kernel.org, acme@redhat.com, dsahern@gmail.com, namhyung@kernel.org, adrian.hunter@intel.com, hpa@zytor.com To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/urgent] perf tools: Allow shuffling the build tests Git-Commit-ID: 98916392a0bdfd71668b711fd93915791f45df02 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 98916392a0bdfd71668b711fd93915791f45df02 Gitweb: http://git.kernel.org/tip/98916392a0bdfd71668b711fd93915791f45df02 Author: Arnaldo Carvalho de Melo AuthorDate: Wed, 4 Nov 2015 16:25:32 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 5 Nov 2015 11:39:54 -0300 perf tools: Allow shuffling the build tests Those tests take a long time and sometimes we stop it, so allow randomly shuffling the tests so that we have a better chance of running more of them in partial 'make build-test' runs. Using it just on the 'build-test' target, i.e.: make -C tools/perf build-test Is equivalent to: make SHUF=1 -C tools/perf -f tests/make Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-ey7461i9q4k8u0987j8guun6@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/Makefile | 2 +- tools/perf/tests/make | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/perf/Makefile b/tools/perf/Makefile index 480546d..dcd9a70 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile @@ -78,7 +78,7 @@ clean: # The build-test target is not really parallel, don't print the jobs info: # build-test: - @$(MAKE) -f tests/make --no-print-directory + @$(MAKE) SHUF=1 -f tests/make --no-print-directory # # All other targets get passed through: diff --git a/tools/perf/tests/make b/tools/perf/tests/make index 2cbd0c6..8ea3dff 100644 --- a/tools/perf/tests/make +++ b/tools/perf/tests/make @@ -221,6 +221,11 @@ test_O = $(if $(test_$1),$(test_$1),$(test_default_O)) all: +ifdef SHUF +run := $(shell shuf -e $(run)) +run_O := $(shell shuf -e $(run_O)) +endif + ifdef DEBUG d := $(info run $(run)) d := $(info run_O $(run_O))