Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t9Knb-009Idj-1Q for pgsql-bugs@arkaria.postgresql.org; Fri, 08 Nov 2024 08:56:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1t9KnY-007Qkx-BH for pgsql-bugs@arkaria.postgresql.org; Fri, 08 Nov 2024 08:56:56 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t9KnY-007Qkp-1y for pgsql-bugs@lists.postgresql.org; Fri, 08 Nov 2024 08:56:56 +0000 Received: from stravinsky.debian.org ([2001:41b8:202:deb::311:108]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t9KnV-000mFm-Rb for pgsql-bugs@lists.postgresql.org; Fri, 08 Nov 2024 08:56:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; s=smtpauto.stravinsky; h=X-Debian-User:Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=JpmyBCIg5wJ2FYTzeeztL/Ysdp//Id3GS5btrRreL/s=; b=Ht36nzaooC51r0JR1z7G0FRhAP 148cHE94+NvZ5hq1gJ1rag3iZ8uFRVVDXAPQQD/WoyZqom6QtJg6zybEU34X0vL4v1A8tHG+9mC2W VwsPVXhuG8KWsmiE9TalA97bpffeY0oaJd82MOvXlXL3Q1+K8JC/SsB018AftgWMEy7rl0YTTvi4M SAJPN5ZPMjYpvGh+uDiYPYo3s9NIk7X16LOqaZi6Jgz4VIvYh2Ol/2H0tvrMG3b7RFcjQbk47eegv VhyB8/RGrrdSL28w1cjCSlEjD+EphhOnR4+RPt+hxH5tUynAYVRmkbwYBTVZzCPpKcNMUufZCZ9Li b/GGVQPA==; Received: from authenticated user by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2) (envelope-from ) id 1t9KnO-00FbA8-O1; Fri, 08 Nov 2024 08:56:47 +0000 From: Bastien =?ISO-8859-1?Q?Roucari=E8s?= To: Thomas Munro Cc: Tom Lane , Heikki Linnakangas , pgsql-bugs@lists.postgresql.org Subject: Re: Detection of hadware feature => please do not use signal Date: Fri, 08 Nov 2024 08:56:45 +0000 Message-ID: <16872859.Zp9ysIU8Tl@portable-bastien> In-Reply-To: References: <4496616.iHFcN1HehY@portable-bastien> <4188473.jn8P2z2zlG@portable-bastien> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart12721882.LBLKqaJk8l"; micalg="pgp-sha512"; protocol="application/pgp-signature" X-Debian-User: rouca List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --nextPart12721882.LBLKqaJk8l Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8"; protected-headers="v1" From: Bastien =?ISO-8859-1?Q?Roucari=E8s?= To: Thomas Munro Subject: Re: Detection of hadware feature => please do not use signal Date: Fri, 08 Nov 2024 08:56:29 +0000 Message-ID: <16872859.Zp9ysIU8Tl@portable-bastien> MIME-Version: 1.0 Le jeudi 7 novembre 2024, 23:43:45 UTC Thomas Munro a =C3=A9crit : > On Fri, Nov 8, 2024 at 4:51=E2=80=AFAM Bastien Roucari=C3=A8s wrote: > > Le jeudi 7 novembre 2024, 00:01:58 UTC Thomas Munro a =C3=A9crit : > > > It doesn't look like I need to include from Bastien's > > > original message, because pulls in >=20 > > Not on arm32 unfortunatly.... and it is a HWCAP2_flags >=20 > Ah, that is unfortunate. I was confused about whether we even used > this code on armv7/aarch32 builds, but I see that we do. OK, here is > a version like that. I will guard the include by replacing +#if defined(__linux__) && !defined(__aarch64__) by +#if defined(__linux__) && !defined(__aarch64__) && !defined(HWCAP2_CRC32) >=20 > I also noticed that the Linux docs explicitly tell you that SIGILL is > unreliable for this purpose: >=20 > https://docs.kernel.org/arch/arm64/elf_hwcaps.html >=20 Bastien --nextPart12721882.LBLKqaJk8l Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEXQGHuUCiRbrXsPVqADoaLapBCF8FAmct0j0ACgkQADoaLapB CF8CNA//fG6o9TUsh38TY+wfIDjRBCcY2CCIHhnumjTyuPR+TV11JswH18aPmusI T3qHVonxjeUfrTYUnmYt9hE4DF52EJuwsd3dIL+o6regg/TylZVy8lYx3fA9Cprt 3z5InJHkWM8hU8/KrfE/BVe5Pdcpoc3YjeVNKYmg6mo44P0/YotX9D4+jMapdQWE rEUgduaIys8jFFzsbW4V9QIth2FEDz8Uwdbep2PVxuV957H09EQZpju19XxsRaP1 oRxJKqzVgeDAHlNYUDvaMa1vMY8YhVj1yLgbCRDLhRzzB/JH4CAmQjwdQVSU8PSe RdrNeXVwEAxwxO/FdF5w+CrpCImWcW4/5k7/vv1yrxoiQhAq9ON0bQpiA/N8pZTW RnX9E4VS7cMbZvsjggiC+8781YN83b4HQU2JBlYe72w/gD4W+9zE68MFuiNjcwPC aEfpBtMgzwav95v79Azjkd3r2yBQqxzJ8kZxBFcnz/oxsMEy85XyXF8imGQERAfl eclQ4u4Fqxi/BuggivYtDw3zVQZkYltUC+D49qYAHDrwf3RdIn6JT3BiT9gF0akv fiD5905kq7rxqc9cgpLIVhExLISpedYGC+Y0P8sVi3HmjP7OqYtbRw/WaLNxZr9g LLyzseYzZ0cwD7xQxjxR9+veN0+NhGVkxEXA36ZoGIG+e5CpZj8= =CDBc -----END PGP SIGNATURE----- --nextPart12721882.LBLKqaJk8l--