From patchwork Mon Aug 7 19:16:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siddhesh Poyarekar X-Patchwork-Id: 798829 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-82808-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="MBaC3nQc"; 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 3xR6j32Bxxz9s1h for ; Tue, 8 Aug 2017 05:16:55 +1000 (AEST) 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:subject:date:message-id; q=dns; s= default; b=ZwvUQ6lRKahpIdPMbEflC0u34fue328pwpUtas3sPE3LmxFGJPuR/ dzpObgHQrPuYaXcumtBA9/ewojtEqVJF5zmqDt/jJkf7XU2MGFkhwfo6y6uVYaZo 6smap0uimYU78pprhxhOA9tcgQIHLUyLmddrMOhOREO94fngTImiog= 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:subject:date:message-id; s=default; bh=nNqJ/ywii0+XYDpLjmQ2f+y4ZCc=; b=MBaC3nQckkWugqlV2hdbUxYQ6m0R YveHtrso9Z/rgA4KL2Cy90dtSoRAskaxH4ekoOwachhhBz/D+cwaqkR38Spz8e0P eBknfC6kzttiPZgzWztsVx9bgx5Yi8E2pPlCKSMfzJTAlYtZEu/l533aAzE56EjW S63PUfJmdkjyQfo= Received: (qmail 128783 invoked by alias); 7 Aug 2017 19:16:42 -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 128251 invoked by uid 89); 7 Aug 2017 19:16:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_NEUTRAL autolearn=ham version=3.3.2 spammy= X-HELO: homiemail-a68.g.dreamhost.com From: Siddhesh Poyarekar To: libc-alpha@sourceware.org Subject: [COMMITTED] benchtests: Use TEST_NAME instead of hardcoding memcpy Date: Tue, 8 Aug 2017 00:46:25 +0530 Message-Id: <1502133385-30464-1-git-send-email-siddhesh@sourceware.org> The hardcoded 'memcpy' name turns up in other derived tests like mempcpy. * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of hardcoding memcpy. * benchtests/bench-memcpy-large.c (test_name): Likewise. * benchtests/bench-memcpy-random.c (test_name): Likewise. --- ChangeLog | 7 +++++++ benchtests/bench-memcpy-large.c | 2 +- benchtests/bench-memcpy-random.c | 2 +- benchtests/bench-memcpy.c | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 908da88..887fc71 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2017-08-07 Siddhesh Poyarekar + + * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of + hardcoding memcpy. + * benchtests/bench-memcpy-large.c (test_name): Likewise. + * benchtests/bench-memcpy-random.c (test_name): Likewise. + 2017-08-07 Andreas Schwab * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target. diff --git a/benchtests/bench-memcpy-large.c b/benchtests/bench-memcpy-large.c index ae5e819..965edf5 100644 --- a/benchtests/bench-memcpy-large.c +++ b/benchtests/bench-memcpy-large.c @@ -118,7 +118,7 @@ test_main (void) json_attr_string (&json_ctx, "timing_type", TIMING_TYPE); json_attr_object_begin (&json_ctx, "functions"); - json_attr_object_begin (&json_ctx, "memcpy"); + json_attr_object_begin (&json_ctx, TEST_NAME); json_attr_string (&json_ctx, "bench-variant", "large"); json_array_begin (&json_ctx, "ifuncs"); diff --git a/benchtests/bench-memcpy-random.c b/benchtests/bench-memcpy-random.c index 9c7cc2b..eaffd3c 100644 --- a/benchtests/bench-memcpy-random.c +++ b/benchtests/bench-memcpy-random.c @@ -156,7 +156,7 @@ test_main (void) json_attr_string (&json_ctx, "timing_type", TIMING_TYPE); json_attr_object_begin (&json_ctx, "functions"); - json_attr_object_begin (&json_ctx, "memcpy"); + json_attr_object_begin (&json_ctx, TEST_NAME); json_attr_string (&json_ctx, "bench-variant", "random"); json_array_begin (&json_ctx, "ifuncs"); diff --git a/benchtests/bench-memcpy.c b/benchtests/bench-memcpy.c index 92ecc64..d80c644 100644 --- a/benchtests/bench-memcpy.c +++ b/benchtests/bench-memcpy.c @@ -136,7 +136,7 @@ test_main (void) json_attr_string (&json_ctx, "timing_type", TIMING_TYPE); json_attr_object_begin (&json_ctx, "functions"); - json_attr_object_begin (&json_ctx, "memcpy"); + json_attr_object_begin (&json_ctx, TEST_NAME); json_attr_string (&json_ctx, "bench-variant", "default"); json_array_begin (&json_ctx, "ifuncs");