From patchwork Wed May 12 09:29:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naohiro Tamura X-Patchwork-Id: 43391 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C3A1E3891C18; Wed, 12 May 2021 09:31:11 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from esa5.hc1455-7.c3s2.iphmx.com (esa5.hc1455-7.c3s2.iphmx.com [68.232.139.130]) by sourceware.org (Postfix) with ESMTPS id DAC54388E80F for ; Wed, 12 May 2021 09:31:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org DAC54388E80F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=fujitsu.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=naohirot@fujitsu.com IronPort-SDR: Jb2svWoy5TPg6uCMD/ZOtX7KkdroILA34FlJccicUrSkQVQXgcd/RxH6HhmeoIFP9LT6ld4EhL i7SrLPk/MeNw1D0LxpkIk9rb+bT1qX2uqPSas/KiqNOgkN3hyRZ4yLKed046uhY7q701UeGlXh qj0owyHaQdad/F6fOGh7Q5vn6dk+h8n7PH2F08yDn8R6G6IUgVrK1KTeXkcEwCyhiDpuA4tsDs wTNi2564RlRJ8AeGDSBlsCMAQRtXVq9RsWy2LkAM6Q/Lz8j7G6gGGKXN1TCXKBSCsq9o8VV920 Zro= X-IronPort-AV: E=McAfee;i="6200,9189,9981"; a="29026507" X-IronPort-AV: E=Sophos;i="5.82,293,1613401200"; d="scan'208";a="29026507" Received: from unknown (HELO oym-r4.gw.nic.fujitsu.com) ([210.162.30.92]) by esa5.hc1455-7.c3s2.iphmx.com with ESMTP; 12 May 2021 18:30:58 +0900 Received: from oym-m3.gw.nic.fujitsu.com (oym-nat-oym-m3.gw.nic.fujitsu.com [192.168.87.60]) by oym-r4.gw.nic.fujitsu.com (Postfix) with ESMTP id D072732F7C1 for ; Wed, 12 May 2021 18:30:56 +0900 (JST) Received: from m3050.s.css.fujitsu.com (msm.b.css.fujitsu.com [10.134.21.208]) by oym-m3.gw.nic.fujitsu.com (Postfix) with ESMTP id 11B671533F for ; Wed, 12 May 2021 18:30:56 +0900 (JST) Received: from bionic.lxd (unknown [10.126.53.116]) by m3050.s.css.fujitsu.com (Postfix) with ESMTP id E5FD3AF; Wed, 12 May 2021 18:30:55 +0900 (JST) From: Naohiro Tamura To: libc-alpha@sourceware.org Subject: [PATCH v2 6/6] benchtests: Fixed bench-memcpy-random: buf1: mprotect failed Date: Wed, 12 May 2021 09:29:54 +0000 Message-Id: <20210512092954.901342-1-naohirot@fujitsu.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210512092308.900998-1-naohirot@fujitsu.com> References: <20210512092308.900998-1-naohirot@fujitsu.com> X-TM-AS-GCONF: 00 X-Spam-Status: No, score=-13.2 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_SHORT, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Naohiro Tamura Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" From: Naohiro Tamura This patch fixed mprotect system call failure on AArch64. This failure happened on not only A64FX but also ThunderX2. Also this patch updated a JSON key from "max-size" to "length" so that 'plot_strings.py' can process 'bench-memcpy-random.out' --- benchtests/bench-memcpy-random.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/benchtests/bench-memcpy-random.c b/benchtests/bench-memcpy-random.c index 9b62033379..c490b73ed0 100644 --- a/benchtests/bench-memcpy-random.c +++ b/benchtests/bench-memcpy-random.c @@ -16,7 +16,7 @@ License along with the GNU C Library; if not, see . */ -#define MIN_PAGE_SIZE (512*1024+4096) +#define MIN_PAGE_SIZE (512*1024+getpagesize()) #define TEST_MAIN #define TEST_NAME "memcpy" #include "bench-string.h" @@ -160,7 +160,7 @@ do_test (json_ctx_t *json_ctx, size_t max_size) } json_element_object_begin (json_ctx); - json_attr_uint (json_ctx, "max-size", (double) max_size); + json_attr_uint (json_ctx, "length", (double) max_size); json_array_begin (json_ctx, "timings"); FOR_EACH_IMPL (impl, 0)