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: "Rodriguez Bahena, Victor" X-Patchwork-Id: 836163 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-86923-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="DweOCGw9"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3yXTqF52LMz9t2V for ; Thu, 9 Nov 2017 14:56:09 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; q=dns; s= default; b=vAVwppmJPuMQHgQO2Si6nKrwIC6k/NkQ95p2TXaj5ShvD6KvRsDph TzOEr3N0VdzuaHXm0TdptZgtP/qOnlhqtPbXFQRYCaMCibYYjb9p+TBjUqIs52YK hkEV0GuPFKXj39LLUPxXb++BIvmRD+gvHqOFfJoUkJPuf8LxQG7xAc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; s=default; bh=3BNhrWKrewvlHtjpvXUHQpsejgA=; b=DweOCGw95OIo2UIAkUaEqvi3PYan qym/ITPDkBjaYtSOOO3+3ISfuTFroePL1ToOtc4rHdTF58JUGs3Az0GPKPH7Z68H +KuU5Ipaob8WyP7q85w3AoLB3+XHBB/Hmxy/MPnb70ClhkFa0ZirXCYVg+e+z7TQ NBT4D76LduUfHtY= 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)