From patchwork Thu Nov 9 03:54:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Victor Rodriguez X-Patchwork-Id: 24174 Received: (qmail 60234 invoked by alias); 9 Nov 2017 03:56:03 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 60222 invoked by uid 89); 9 Nov 2017 03:56:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=victor, Victor, siddheshsourcewareorg, rodriguez X-HELO: mga03.intel.com X-ExtLoop1: 1 From: Victor Rodriguez To: libc-alpha@sourceware.org Cc: Victor Rodriguez , Icarus Sparry Subject: [RFC PATCH] benchtests:Add BENCHSET list of targets Date: Thu, 9 Nov 2017 03:54:04 +0000 Message-Id: <20171109035404.1237-1-victor.rodriguez.bahena@intel.com> This patch adds BENCHSET list of targets in order to run benchmarks as: make bench BENCHSET="bench-pthread bench-math malloc-thread" This helps users to run benchmarks acording to the glibc area they are measuring. Changelog: 2017-11-08 Victor Rodriguez (VERSION): Set to 2.26 * benchtests/Makefile:Add BENCHSET to allow subsets of benchmarks to be run Signed-off-by: Victor Rodriguez Signed-off-by: Icarus Sparry --- ChangeLog | 5 +++++ benchtests/Makefile | 12 ++++++++++++ 2 files changed, 17 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8dbfc7e..832461c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2017-11-08 Victor Rodriguez + + (VERSION): Set to 2.26 + * benchtests/Makefile:Add BENCHSET to allow subsets of benchmarks to be run + 2017-08-02 Siddhesh Poyarekar * version.h (RELEASE): Set to "stable" diff --git a/benchtests/Makefile b/benchtests/Makefile index 37788e8..2bc4a25 100644 --- a/benchtests/Makefile +++ b/benchtests/Makefile @@ -29,7 +29,11 @@ bench-pthread := pthread_once thread_create bench-string := ffs ffsll +ifeq (${BENCHSET},) bench := $(bench-math) $(bench-pthread) $(bench-string) +else +bench := $(foreach B,$(filter bench-%,${BENCHSET}), ${${B}}) +endif # String function benchmarks. string-benchset := bcopy bzero memccpy memchr memcmp memcpy memmem memmove \ @@ -66,8 +70,12 @@ stdio-common-benchset := sprintf math-benchset := math-inlines +ifeq (${BENCHSET},) benchset := $(string-benchset-all) $(stdlib-benchset) $(stdio-common-benchset) \ $(math-benchset) +else +benchset := $(foreach B,$(filter %-benchset,${BENCHSET}), ${${B}}) +endif CFLAGS-bench-ffs.c += -fno-builtin CFLAGS-bench-ffsll.c += -fno-builtin @@ -77,7 +85,11 @@ CFLAGS-bench-fminf.c += -fno-builtin CFLAGS-bench-fmax.c += -fno-builtin CFLAGS-bench-fmaxf.c += -fno-builtin +ifeq (${BENCHSET},) bench-malloc := malloc-thread +else +bench-malloc := $(foreach B,$(filter malloc-%,${BENCHSET}), ${${B}}) +endif $(addprefix $(objpfx)bench-,$(bench-math)): $(libm) $(addprefix $(objpfx)bench-,$(math-benchset)): $(libm)