From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-3.8 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 913901F5AE for ; Thu, 13 May 2021 09:53:43 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0692D3896C31; Thu, 13 May 2021 09:53:42 +0000 (GMT) Received: from esa1.fujitsucc.c3s2.iphmx.com (esa1.fujitsucc.c3s2.iphmx.com [68.232.152.245]) by sourceware.org (Postfix) with ESMTPS id D8D7F3857025 for ; Thu, 13 May 2021 09:53:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D8D7F3857025 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: KixQ18ul5kLLEITbrUKKszLgr8zFK7qT+iUN6Jqcyr2qgxJ3tX/0/NaGXGumh+7yUScWq6mVDs moW3usf3PI8zaDth+2uT/6Mc/ecAaYfHYHse5KJf/h5KnBCq05PhrcuiOFtXMX+Oc2Sq2ZEjsx xthJrRl3Pcx94eafs8u3yWumFWzYoyqIcVGZt0xgUkqqXwwjEFmnHdt5HzXVK3dgBBp18Ds1vj OgUVzVm51m4YdYd2/GHgaQVHLkUrTOF8tofTHJ7GiFdED9EcnGpUXQbuEFcYRPHiomaIH+YNyg FqA= X-IronPort-AV: E=McAfee;i="6200,9189,9982"; a="39452013" X-IronPort-AV: E=Sophos;i="5.82,296,1613401200"; d="scan'208";a="39452013" Received: from mail-os2jpn01lp2056.outbound.protection.outlook.com (HELO JPN01-OS2-obe.outbound.protection.outlook.com) ([104.47.92.56]) by ob1.fujitsucc.c3s2.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 May 2021 18:53:35 +0900 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mGXRAk2xDG/9xCGVEoP5JWWNt+ZMH9GOJ0yXC9W78jbWCKS7lTeKl8QuLCUiHikouDDhp806rHJafD5qXPNaU6DRlGy6258mjWzu+o5SK/+GCo11JrYt9fr0o7HklAB0GXZQXz9TSUQqICcwE9wmd3Rnc4xuROtsMxs9mW8RuNTnsCGyATyEgeaOW4BtRG8L9ML1ZlBDtKnblB6I3pnk72aZ+ehUbuBmUx8Vez5yJR7YejTW9jR2Ba6+01+/0uyzWH6rKZjQNuOmUTLf0VLxxEbUHEU7HTojFgaDwtTq57iUbgofX49LoVGWB/3tBQyt9JrmZQVoFXRLksg7KKz8sQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sIoJIKouqR++6bj4jp7Bknk+8Yd9W26mv+cz48NC7f0=; b=MhlUoUryS/HNPuFgXVk42VOvV5xIZYL94rtLWqrHRUvArLL5cU1j5qKl/MA+uhkAMHqPp1wSKj3SBWRkcOag7zRVOCPCKYLGH2OIhxzPl0MoTrxQLiudH/x3RG0VoaFBVXlcsicp2uTJNfjEDwrI4QPmTH4TZFq06qQWzjLTinV4f+ZgNuZBvIA003Y+xMSlglXTUGxemH0tNxgG5+8l64P0LWMeNQsNMrwayfHZItTJvMB+Ga4bkbVgUwG8Z1mRSBKSA71OBw8X91P7f6Qni4ls/D8qzCbK1z2nYZDZwFYuUv8pdb4V3V1Q18lQVEYkmqFJaIKLU7PZLmw8RJyA7A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=fujitsu.com; dmarc=pass action=none header.from=fujitsu.com; dkim=pass header.d=fujitsu.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fujitsu.onmicrosoft.com; s=selector2-fujitsu-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sIoJIKouqR++6bj4jp7Bknk+8Yd9W26mv+cz48NC7f0=; b=nbp+q6YDAcYhnZ0zhU3YlY5IfyIYsnpshf3OJr2sKFUPucp+5MXxEjwNn1ZiFyoy4nLn3eGgPjTYnU2DVQBvqaDkwulsO539Qv69acMeMriawnVp3/oRk3owiNPS7UrDJpj1iITvEUlL0osGPUMGyu1T2DHD/4I27vxbZ20D4LA= Received: from TYAPR01MB6025.jpnprd01.prod.outlook.com (2603:1096:402:36::13) by TYCPR01MB5774.jpnprd01.prod.outlook.com (2603:1096:400:44::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.26; Thu, 13 May 2021 09:53:32 +0000 Received: from TYAPR01MB6025.jpnprd01.prod.outlook.com ([fe80::2422:2c7:39a3:5283]) by TYAPR01MB6025.jpnprd01.prod.outlook.com ([fe80::2422:2c7:39a3:5283%6]) with mapi id 15.20.4129.026; Thu, 13 May 2021 09:53:32 +0000 From: "naohirot@fujitsu.com" To: 'Joseph Myers' Subject: RE: [PATCH v2 5/6] scripts: Added Vector Length Set test helper script Thread-Topic: [PATCH v2 5/6] scripts: Added Vector Length Set test helper script Thread-Index: AQHXRxFwqNMvCdH4V0y3pa1y8W1cc6rgEeOAgAEPfVA= Date: Thu, 13 May 2021 09:53:32 +0000 Message-ID: References: <20210512092308.900998-1-naohirot@fujitsu.com> <20210512092922.901289-1-naohirot@fujitsu.com> In-Reply-To: Accept-Language: en-001, ja-JP, en-US Content-Language: ja-JP X-MS-Has-Attach: X-MS-TNEF-Correlator: x-securitypolicycheck: OK by SHieldMailChecker v2.6.3 x-shieldmailcheckermailid: 9ac7049098e04a91b805a2cfce8c97f8 authentication-results: codesourcery.com; dkim=none (message not signed) header.d=none;codesourcery.com; dmarc=none action=none header.from=fujitsu.com; x-originating-ip: [210.162.30.50] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a9e163dd-ab82-44aa-d653-08d915f4f7fb x-ms-traffictypediagnostic: TYCPR01MB5774: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: cg3BO4k5YDwAGkTFwNmQnRAEVy3L0KdnhzbMGNLyY5jIYTPaGP35EhoxDBww5P4fZPZCGY/wAD3tA0YcmSInzwAagjXZLjGfOEnmo1Ih4FCpGhsOpdBKyBV9glk2b/Jcs1nWVgHsdwbPWbjgWyVC9K4UUoqiAVj4XRWMoBJFOrDN+JeYP6ByNq3z/hnvgnXehEHoW4SUiTXG240FJYM+CaqyUwzd/qeiBCswLKJxM/kIowTS4SmWFeIRdfSSt+XAe12l9XoVaqbFxQ5ZPE2HQEUgkWEboWtc+Ixevn43nc0dsJ+oQxu/MFE0Gbp51iqJ0aVB2xkCzKkf0NAFJgcw5mjONwPQgjGBBKezBERfv8eM40ohI5wYfoRcvV43XuAwYYO0EPB/diD+xDm0H99fsEcMAMJnCJQNCkzR9OPANaIvl5rHRp710GloUQaCLM04Ac6+biaLnp/blURICTxxZq+ePM8vILv5hnGv4c5xUrm+5nL2HvvVkbSlC74MTTmTTldszliGKK4hiQDGEuUa+LP+kp0c1DkM1dpsLxXgySSnpWnM0+eOYX0XuS6WU/fF9Ign1R3x5+wfLYG8FAKBnz+hwFEPuH+qwy3p2iJBfz9HoUmrO0KixLlfWfdUCORqP4a/VNgB03AIwF5nMyf4jukabMYg4NSz2dp5oCXgjXApZlN5JhyFo1LPvwtQ/inuqt2wkCcR0DoRLdthy1cHqkJpQkF23n5jAGUfb87d6hNlgYk/Ga6cAYLJXqDXnciqefScMXu+DOwJtq0vc2siDw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:TYAPR01MB6025.jpnprd01.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(376002)(136003)(39850400004)(396003)(346002)(316002)(66446008)(26005)(6506007)(122000001)(4326008)(966005)(478600001)(55016002)(9686003)(52536014)(5660300002)(64756008)(86362001)(8936002)(85182001)(186003)(8676002)(2906002)(71200400001)(66476007)(66556008)(7696005)(76116006)(6916009)(38100700002)(83380400001)(66946007)(33656002)(2004002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?iso-2022-jp?B?YVV3TUZNakxndER0cWhjdGxCRnlqWUwxdk1YYStXWjBib3dxRUdwOHdq?= =?iso-2022-jp?B?eEtxb1dvanQwUk1vWC8xVk9ORU12T3VhdDlsREkxM3oxaSs0dGVNcDls?= =?iso-2022-jp?B?SUpGeTVRTEtmc3hNNHBsTlV4d25vRnZ2OC91Y05GNkVCYmVzb3VBcmFS?= =?iso-2022-jp?B?Q0NiTXFLSGVOYXhBZC9NOXQydFR1WDZVN2oyeFMxUmh0OVoyQ3ZQOWg2?= =?iso-2022-jp?B?TmkzNFRFa3hrZkM2aHVlbytOT1Axc01tN2ZhYXVrNTZ3YWtLcnBkRXN3?= =?iso-2022-jp?B?QkRkZmUwMU1na0xIRTlXdkVPekhybUZqeU94cDZyNGc4WFJmRGl1a0d6?= =?iso-2022-jp?B?UVYxWXpyaFd5Vm0yOUdUNEUvd0hudkhJL2NvM0gvNy8yWnA1Y3F2alJB?= =?iso-2022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M1Ayd0NI?= =?iso-2022-jp?B?VTZxTG1zVm5ocG5zQkxPTHBTUWQzeEx3Q2phd3gxRVlTTHVuV0E4WjZv?= =?iso-2022-jp?B?WVVmNHN1VkRteFNhMHRFa3J1ZDRwLzlpZjVxOGtpTFA4MVFzU1h6ZnI5?= =?iso-2022-jp?B?NnlGdHBab0RrSmlFcXVkelcxN0JIR1d1TVhHbmpCOG5KOEhPSzhyMWYz?= =?iso-2022-jp?B?eVgrUDNXQXR3UW92R0VuRUNiQmRXMkd6akhsRmdkVjh6akN6UitOZ2lJ?= =?iso-2022-jp?B?SU1CeGZEREE5clE2OWhRK2J3YVEvVEE2MmhNSndaOXZYRFRjYXljT0xC?= =?iso-2022-jp?B?YnpRWm9XNTg3V01ndndGMlpSb1lWV3VGNTB2OXpOcEtsNm1Pc2pmNFZK?= =?iso-2022-jp?B?TzAweTdZWGlMaHp5N1pUZmJGc3BDVnJLL3NhbjkyR21kZG9YdlZ3NHVu?= =?iso-2022-jp?B?T1o0U2tGamZlbXpHOE1kZ20vR1Vaa3ZlbGdUMjJISjlmUWtqZmZtT2JF?= =?iso-2022-jp?B?YitDamxqQ0p4SE9vdUJGejBtZUdxaWhnaDhLbjVQS2p2K2lhanh5dlFL?= =?iso-2022-jp?B?eWRzNWVGSjdoRGtjeW9jdy82ZFBqZWg1b3JMMWI3U1lhTjdBT2F5aWM3?= Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: fujitsu.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TYAPR01MB6025.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a9e163dd-ab82-44aa-d653-08d915f4f7fb X-MS-Exchange-CrossTenant-originalarrivaltime: 13 May 2021 09:53:32.5210 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a19f121d-81e1-4858-a9d8-736e267fd4c7 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: WZvEQQXcvwfRLb2g11vqkxPHHznX5bLYgMiIN3PXJr7bo1quzQROnlsWuaZlZ4wp8PK1BwvZOkFopsqmGaZlow== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB5774 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: "libc-alpha@sourceware.org" Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" Hi Joseph, Thank you for the review. > From: Joseph Myers > > This patch is a test helper script to change Vector Length for child > > process. This script can be used as test-wrapper for 'make check'. >=20 > This is specific to AArch64, so I think it would better go under > sysdeps/unix/sysv/linux/aarch64/ rather than under scripts/. OK, I moved it to sysdeps/unix/sysv/linux/aarch64/. > There is also the question of how to make this discoverable to people dev= eloping > glibc. Maybe this script should be mentioned in install.texi (with INSTA= LL > regenerated accordingly), with the documentation there clearly explaining= that it's > specific to AArch64 GNU/Linux. OK, I updated install.texi, INSTALL, vlset.py doc part as well as commit me= ssage such as the followings or my github [1]. [1] https://github.com/NaohiroTamura/glibc/commit/37a5832fea109ab939ffdf58a= 2a19d5707849cc5 [commit message] aarch64: Added Vector Length Set test helper script This patch is a test helper script to change Vector Length for child process. This script can be used as test-wrapper for 'make check'. Usage examples: ~/build$ make check subdirs=3Dstring \ test-wrapper=3D'~/glibc/sysdeps/unix/sysv/linux/aarch64/vltest.py 16' ~/build$ ~/glibc/sysdeps/unix/sysv/linux/aarch64/vltest.py 16 \ make test t=3Dstring/test-memcpy ~/build$ ~/glibc/sysdeps/unix/sysv/linux/aarch64/vltest.py 32 \ ./debugglibc.sh string/test-memmove ~/build$ ~/glibc/sysdeps/unix/sysv/linux/aarch64/vltest.py 64 \ ./testrun.sh string/test-memset --- INSTALL | 4 ++ manual/install.texi | 3 + sysdeps/unix/sysv/linux/aarch64/vltest.py | 82 +++++++++++++++++++++++ 3 files changed, 89 insertions(+) create mode 100755 sysdeps/unix/sysv/linux/aarch64/vltest.py diff --git a/INSTALL b/INSTALL index 065a568585..bc761ab98b 100644 --- a/INSTALL +++ b/INSTALL @@ -380,6 +380,10 @@ the same syntax as 'test-wrapper-env', the only differ= ence in its semantics being starting with an empty set of environment variables rather than the ambient set. + For AArch64 with SVE, when testing the GNU C Library, 'test-wrapper' +may be set to "SRCDIR/sysdeps/unix/sysv/linux/aarch64/vltest.py +VECTOR-LENGTH" to change Vector Length. + Installing the C Library =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D diff --git a/manual/install.texi b/manual/install.texi index eb41fbd0b5..f1d858fb78 100644 --- a/manual/install.texi +++ b/manual/install.texi @@ -418,6 +418,9 @@ use has the same syntax as @samp{test-wrapper-env}, the= only difference in its semantics being starting with an empty set of environment variables rather than the ambient set. +For AArch64 with SVE, when testing @theglibc{}, @samp{test-wrapper} +may be set to "@var{srcdir}/sysdeps/unix/sysv/linux/aarch64/vltest.py +@var{vector-length}" to change Vector Length. @node Running make install @appendixsec Installing the C Library diff --git a/sysdeps/unix/sysv/linux/aarch64/vltest.py b/sysdeps/unix/sysv/= linux/aarch64/vltest.py new file mode 100755 index 0000000000..bed62ad151 --- /dev/null +++ b/sysdeps/unix/sysv/linux/aarch64/vltest.py @@ -0,0 +1,82 @@ +#!/usr/bin/python3 +# Set Scalable Vector Length test helper +# Copyright (C) 2021 Free Software Foundation, Inc. +# This file is part of the GNU C Library. +# +# The GNU C Library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# The GNU C Library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with the GNU C Library; if not, see +# . +"""Set Scalable Vector Length test helper. + +Set Scalable Vector Length for child process. + +examples: + +~/build$ make check subdirs=3Dstring \ +test-wrapper=3D'~/glibc/sysdeps/unix/sysv/linux/aarch64/vltest.py 16' + +~/build$ ~/glibc/sysdeps/unix/sysv/linux/aarch64/vltest.py 16 \ +make test t=3Dstring/test-memcpy + +~/build$ ~/glibc/sysdeps/unix/sysv/linux/aarch64/vltest.py 32 \ +./debugglibc.sh string/test-memmove + +~/build$ ~/glibc/sysdeps/unix/sysv/linux/aarch64/vltest.py 64 \ +./testrun.sh string/test-memset +""" Thanks. Naohiro