From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2057.outbound.protection.outlook.com [40.107.8.57]) by sourceware.org (Postfix) with ESMTPS id 2D77F3858D20 for ; Mon, 8 Apr 2024 13:16:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2D77F3858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2D77F3858D20 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.8.57 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1712582199; cv=pass; b=bR1jABpdwuqPzZAqFe3hQJIv9M+xUfsgI7IvZtChYePQzsE3150qEs/zGeNE4PgMDs5L1tnGQ/SxHPdR4N/U/vouj2Lq4zTkzJu9X7jEBf7vG8Zs4OUJcROC60bvO8UylBkFSh/+lGCOPXeu2x9MumGx8iVLhdMplNN5ERo7ZjI= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1712582199; c=relaxed/simple; bh=2r+0ydv0SX/wfcHQpGnbPy/FAfb5QjiXVyghsfJNz9c=; h=DKIM-Signature:DKIM-Signature:Date:From:To:Subject:Message-ID: MIME-Version; b=DNKjmtnc2xAeu4tjnODbdjNHDsojC9jIAGjCGuCczpIq6YfeLq4gSy7kO4ftgqKr3EuS5H5qC7TuT73+kbFQi1XMAtoyBcKpv1RogJaVTatRrHa+jw0LoFgcvVXAQ/dIxt3I0Z/1HOk7C9neBNjVUsu0l6c8JY0gxkng60NWCu0= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=atIIJLCohmK/MLZXW2rJCQxzYfzSH2NNCJL4b76tActkMlOzNgsfzIszYpfDSN3K8NhqyjSDZcAWDEXW4R1C90agZITCVzOdI+pKS3aoQ5kTNMwBB/Wgtd3D/a8dIkHUVKT5rr9GVlW4I16fx/MK28quz9csnzkdf1Q5FT6CStGdoWHXSaq1FoOEn17fmoM435IWWAhcXhOwGFUELsgTUTuHa2Merp2Ameukr1YnbzEjIBsNBx+zCpF2b/I59Svwtd5g+Qvb5hrCo+7uA9K8BcGzDvTzesblbuu578TaHPLXCdjgKVax42hYNPGvTM+74XDrKk+Uxxu0qFljILWxBQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ikmAGx4c7/iYI36tOzfoJxrCNLz+5KXdxLRKIBhSadY=; b=gDDxCsSagpDtiOCCcuT/J/srHKcXRaTG3ybObdP+O+mrn3Kc8PSP8dBbYYRRKPy7nJdY6aOnDVEbvyI9vFXujOtmRFTwHMVz10044gk6iTiELVdKUUZfz4ED+ETpIGslACj7jvUbcwzQZb2bxERQBuuGNkzPNAZnaYB7f1l7oh73/q2RSyIKgxpe1dpbtfaDiiAG+0Y3WpdBPcvcsS2Pz+3R/9p8tEYwS4jIeO0BF1NyUudYH72Gq3y/2j/gqzTeRpfU9UkFfWQ7yQJ9mredSIn1neTIz3DV/lGK8K4YS4BgAaV6iwJ5R/GgQWGVllK+3eA0wqodfVrfN9u/8n8qKg== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ikmAGx4c7/iYI36tOzfoJxrCNLz+5KXdxLRKIBhSadY=; b=tzG0HQG2g73xWgVvvyp50bQfy4lkBu8Qw4eHAm5mcgY7CveYp4DiT00/2wXLpW0Q49y+KgV5dzlN41FsQ+2IRDhq8ukGm9Pl/biHk8JnP9LoIAuLRVliTLwNB63tDTqtO7QnUlhzO0ZPVHxLoCz6qrA7P+b9FOnacwpK266PdDs= Received: from AM0PR08CA0009.eurprd08.prod.outlook.com (2603:10a6:208:d2::22) by GVXPR08MB7894.eurprd08.prod.outlook.com (2603:10a6:150::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Mon, 8 Apr 2024 13:16:31 +0000 Received: from AMS0EPF000001B6.eurprd05.prod.outlook.com (2603:10a6:208:d2:cafe::61) by AM0PR08CA0009.outlook.office365.com (2603:10a6:208:d2::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.35 via Frontend Transport; Mon, 8 Apr 2024 13:16:31 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AMS0EPF000001B6.mail.protection.outlook.com (10.167.16.170) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.7452.22 via Frontend Transport; Mon, 8 Apr 2024 13:16:30 +0000 Received: ("Tessian outbound f0b355493f75:v300"); Mon, 08 Apr 2024 13:16:30 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 85d97680a1c69431 X-CR-MTA-TID: 64aa7808 Received: from 16e78894a103.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 7EA6BA67-61A3-4AAC-A7CE-B26FA99A199D.1; Mon, 08 Apr 2024 13:16:23 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 16e78894a103.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 08 Apr 2024 13:16:23 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lNVt2A1bPi/8XHJXjGF00cJ64ZodD0OotdIt9pWuG5oW4DBz9mxg46x7Q1pgzzRmqWY7U27MX5byIJbt11p6s9IqnQmxetfY58KBhokfk0FSpoRfIi0eVTaXNEuUD/SXfT+leZ8WOye6zj5D9bCBS2lEIo02UalsP9x8N2KZgc7kj0LLvCZZ4UhPY2ZCqUMpmyp0voFQ/Oth7SnCjgDNWrTWR/BDh1qWRWS55GdiNqN6TCwSe1vpETbhSCpBjh1HzFnqaTRMa/fUvRwUpFO33NVyz0qpJLRu4IvQhBv6KxKyV6ofkBs460/ClvVTrQ1g+X/WRh7ds8pVFtTuEl98VQ== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ikmAGx4c7/iYI36tOzfoJxrCNLz+5KXdxLRKIBhSadY=; b=TN/yfY1gRafsLVOCTlnS8rmoRv+SNYgZs7pteoQoNNftnVnZAMfGBL2pWikgy8bv/VX0PoVjrHNS0x2RJhjDEqxwe51SZTn499c5iUqKy7Nl6nzE4uRj7KiqNGarrBWVXzzafhk54FOpoOuqBf81XugyLitgXDCsaOBc2sv5KVxxTUW8Zyh/ygUjzsKqhmQeA4nRZY3Ib5VjjTnAkZWHIbLjE2ezHTPHSERIHJ3PAJIzWHNHw1fazPFufDkRpLfRbE1xdckwFsAt0+HnGvG5A9x3cjjbZ94u+LRtIdlCtPjSpYOJ9+tBp3cJS7hakSSD8JO9SNXVYaUzmc7LKgj5wA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ikmAGx4c7/iYI36tOzfoJxrCNLz+5KXdxLRKIBhSadY=; b=tzG0HQG2g73xWgVvvyp50bQfy4lkBu8Qw4eHAm5mcgY7CveYp4DiT00/2wXLpW0Q49y+KgV5dzlN41FsQ+2IRDhq8ukGm9Pl/biHk8JnP9LoIAuLRVliTLwNB63tDTqtO7QnUlhzO0ZPVHxLoCz6qrA7P+b9FOnacwpK266PdDs= Received: from DB9PR08MB7179.eurprd08.prod.outlook.com (2603:10a6:10:2cc::19) by AM9PR08MB5955.eurprd08.prod.outlook.com (2603:10a6:20b:2df::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Mon, 8 Apr 2024 13:16:22 +0000 Received: from DB9PR08MB7179.eurprd08.prod.outlook.com ([fe80::8c23:46ef:c2c9:ea91]) by DB9PR08MB7179.eurprd08.prod.outlook.com ([fe80::8c23:46ef:c2c9:ea91%4]) with mapi id 15.20.7409.042; Mon, 8 Apr 2024 13:16:22 +0000 Date: Mon, 8 Apr 2024 14:16:07 +0100 From: Szabolcs Nagy To: Florian Weimer , libc-alpha@sourceware.org Subject: Re: [PATCH v4 3/3] aarch64: Enhanced CPU diagnostics for ld.so Message-ID: References: <85f152292c8de61442f7ebc2ba0e50f949404b4d.1712574353.git.fweimer@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <85f152292c8de61442f7ebc2ba0e50f949404b4d.1712574353.git.fweimer@redhat.com> X-ClientProxiedBy: LO2P265CA0082.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:8::22) To DB9PR08MB7179.eurprd08.prod.outlook.com (2603:10a6:10:2cc::19) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: DB9PR08MB7179:EE_|AM9PR08MB5955:EE_|AMS0EPF000001B6:EE_|GVXPR08MB7894:EE_ x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: pgsHPHbko64vJ6xhHWREAiWgaR6OAi6a85Tx5NUfUt/2mwEorMurjtmOKciyI/cJ1boRWigjR36pFb/KteHs8qAKxV1A0HRLk19/rmdGRU99P6+lkDGi1TdcW9lvAIZMO5uHk56EPD1NGerALFsNUuccsV3XXY/6boX6qfh7Aaq2h2K+jpoRl2HYfof/Jy5rmSySYZVT57AuAKQUDThWwX2i7Q+SfTjbtm0XbXG/OLVyJIDFmWzpQK9AgAAB5B7Qh3BHxvoQL23+tXw8BXRA1xOcqc2tz20KglAnftS4nvDb/ombX4V5u4LEC42CYsUP0eDYIWiCgQTgDlJDYV4i51eVXKYIS1Pg4KrHnWu4fVrwA4a0zVWMYBoeFhLYua31zjbIFUtlcmQUmc/4mw6kuxAeQRbzUHyGMtR4sX4eF/c9aXjqce9FSanb0RzxF32zCtTsuT+o3pbaQg0m+YXMAu2DrQXDCkeaWhLtHUdbgdEorZJG7yMR8IDzS8IeNbC1kInv0mS3w4S8DBsQSCYGAbjQOnpuDuBZ5QIhMam1+nNEvEnGyu7lLMCwnnxT+6/hCPfuFNbs/dMmzrDCn1D2OlHZiX3XkvZM3IHxHfjxuhk= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB9PR08MB7179.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(376005)(366007);DIR:OUT;SFP:1102; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB5955 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AMS0EPF000001B6.eurprd05.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6e73af66-a905-468b-c029-08dc57ce1b12 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7o4SeeJAELo5jQGFN1jzMYGxAS7rpgOnMkBwuVTeP3vXhLIucRWsjs42ueQ7ZOgDWLi+R5fkwt6IfHzNK/ISGFLn1o6fHORSU9382a2MCv6jQRSGdjeNROV63qOMirEnGeleeRSiz5hZDzqRpD2xZV6tkFZaAomMVD1wMq8P2EVRB+aTf94m/wy1hNNpc2KTgY2cKYPf/xT0z4pVBFowGFLMiNwbeQH7b0NTkR4i2EfYa1XdTassqkIeM/WyNpkgcz2uQvHm7n3QWw1zDfLFNMS8sp7g5O/3cHemYJW67+Pjxllqh8Wam4egeO+6+cccfl9Jt3GEeW9FdKhplduQ020M/T7kO34EpT9L6VdoSx3TDdr2vIxNM+h48sVU7weNk7VkCxQqyn1iK3CZZJoNONuhec9qaoaDhOU3Qe2Vrqp8Wp5NgLgLiz8BCaU7FzsMuCl5UB2Y837g7NLYUQiGgT+rBTAWpKT4dpxpAhxIYo/MNr6tCKOpfBCqo4FnU5I2HVw7VGhKWrncZD7QKBwxv8tJ1fYlWhnDs6qwR/ISEYcggDmhx8z17NT4tj3sYGgFkP4SVs0HGHV6TtjQypl1sZQtpE49U1pQRcqJYh5g+cCJ/llZywBnywDisAHNy/QuJosKWemPzBSjRD84kC0hgRXEamIHpo9AziOVhgYz3JLo64h9q5KyJDxhYEcNiiGEmhmkUp2Ow5fWPOmnG4nJPQ== X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(13230031)(36860700004)(376005)(82310400014)(1800799015);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Apr 2024 13:16:30.8079 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6e73af66-a905-468b-c029-08dc57ce1b12 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AMS0EPF000001B6.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR08MB7894 X-Spam-Status: No, score=-11.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,FORGED_SPF_HELO,GIT_PATCH_0,KAM_DMARC_NONE,KAM_SHORT,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE,TXREP,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: The 04/08/2024 13:08, Florian Weimer wrote: > This prints some information from struct cpu_features, and the midr_el1 > and dczid_el0 system register contents on every CPU. OK. Reviewed-by: Szabolcs Nagy > --- > v4: Manual update. > > manual/dynlink.texi | 34 +++++++++++ > sysdeps/aarch64/dl-diagnostics-cpu.c | 84 ++++++++++++++++++++++++++++ > 2 files changed, 118 insertions(+) > create mode 100644 sysdeps/aarch64/dl-diagnostics-cpu.c > > diff --git a/manual/dynlink.texi b/manual/dynlink.texi > index f2f2341818..d71f7a30d6 100644 > --- a/manual/dynlink.texi > +++ b/manual/dynlink.texi > @@ -224,6 +224,40 @@ reflect adjustment by @theglibc{}. > These Linux-specific items show the values of @code{struct utsname}, as > reported by the @code{uname} function. @xref{Platform Type}. > > +@item aarch64.cpu_features.@dots{} > +These items are specific to the AArch64 architectures. They report data > +@theglibc{} uses to activate conditionally supported features such as > +BTI and MTE, and to select alternative function implementations. > + > +@item aarch64.processor[@var{index}].@dots{} > +These are additional items for the AArch64 architecture and are > +described below. > + > +@item aarch64.processor[@var{index}].requested=@var{kernel-cpu} > +The kernel is told to run the subsequent probing on the CPU numbered > +@var{kernel-cpu}. The values @var{kernel-cpu} and @var{index} can be > +distinct if there are gaps in the process CPU affinity mask. This line > +is not included if CPU affinity mask information is not available. > + > +@item aarch64.processor[@var{index}].observed=@var{kernel-cpu} > +This line reports the kernel CPU number @var{kernel-cpu} on which the > +probing code initially ran. If the CPU number cannot be obtained, > +this line is not printed. > + > +@item aarch64.processor[@var{index}].observed_node=@var{node} > +This reports the observed NUMA node number, as reported by the > +@code{getcpu} system call. If this information cannot be obtained, this > +line is not printed. > + > +@item aarch64.processor[@var{index}].midr_el1=@var{value} > +The value of the @code{midr_el1} system register on the processor > +@var{index}. This line is only printed if the kernel indicates that > +this system register is supported. > + > +@item aarch64.processor[@var{index}].dczid_el0=@var{value} > +The value of the @code{dczid_el0} system register on the processor > +@var{index}. > + > @cindex CPUID (diagnostics) > @item x86.cpu_features.@dots{} > These items are specific to the i386 and x86-64 architectures. They > diff --git a/sysdeps/aarch64/dl-diagnostics-cpu.c b/sysdeps/aarch64/dl-diagnostics-cpu.c > new file mode 100644 > index 0000000000..e037e6ea8c > --- /dev/null > +++ b/sysdeps/aarch64/dl-diagnostics-cpu.c > @@ -0,0 +1,84 @@ > +/* Print CPU diagnostics data in ld.so. AArch64 version. > + Copyright (C) 2021-2024 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 > + . */ > + > +#include > + > +#include > +#include > +#include > +#include > + > +static void > +print_cpu_features_value (const char *label, uint64_t value) > +{ > + _dl_printf ("aarch64.cpu_features."); > + _dl_diagnostics_print_labeled_value (label, value); > +} > + > +static void > +print_per_cpu_value (const struct dl_iterate_cpu *dic, > + const char *label, uint64_t value) > +{ > + _dl_printf ("aarch64.processor[0x%x].", dic->processor_index); > + _dl_diagnostics_print_labeled_value (label, value); > +} > + > +void > +_dl_diagnostics_cpu (void) > +{ > + print_cpu_features_value ("bti", GLRO (dl_aarch64_cpu_features).bti); > + print_cpu_features_value ("midr_el1", > + GLRO (dl_aarch64_cpu_features).midr_el1); > + print_cpu_features_value ("mops", GLRO (dl_aarch64_cpu_features).mops); > + print_cpu_features_value ("mte_state", > + GLRO (dl_aarch64_cpu_features).mte_state); > + print_cpu_features_value ("prefer_sve_ifuncs", > + GLRO (dl_aarch64_cpu_features).prefer_sve_ifuncs); > + print_cpu_features_value ("sve", GLRO (dl_aarch64_cpu_features).sve); > + print_cpu_features_value ("zva_size", > + GLRO (dl_aarch64_cpu_features).zva_size); > + > + struct dl_iterate_cpu dic; > + _dl_iterate_cpu_init (&dic); > + > + while (_dl_iterate_cpu_next (&dic)) > + { > + if (dic.requested_cpu >= 0) > + _dl_printf ("aarch64.processor[0x%x].requested=0x%x\n", > + dic.processor_index, dic.requested_cpu); > + if (dic.actual_cpu >= 0) > + _dl_printf ("aarch64.processor[0x%x].observed=0x%x\n", > + dic.processor_index, dic.actual_cpu); > + if (dic.actual_node >= 0) > + _dl_printf ("aarch64.processor[0x%x].observed_node=0x%x\n", > + dic.processor_index, dic.actual_node); > + > + if (GLRO (dl_hwcap) & HWCAP_CPUID) > + { > + uint64_t midr_el1; > + asm ("mrs %0, midr_el1" : "=r" (midr_el1)); > + print_per_cpu_value (&dic, "midr_el1", midr_el1); > + } > + > + { > + uint64_t dczid_el0; > + asm ("mrs %0, dczid_el0" : "=r" (dczid_el0)); > + print_per_cpu_value (&dic, "dczid_el0", dczid_el0); > + } > + } > +} > -- > 2.44.0 >