From patchwork Mon Apr 8 11:07:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 56855 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 CFFA13858432 for ; Mon, 8 Apr 2024 11:07:50 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 6C7CC3858D20 for ; Mon, 8 Apr 2024 11:07:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6C7CC3858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6C7CC3858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712574449; cv=none; b=TwG90/W9y9fEs+wyd+Y5xigPlfTQyu86dnX+nEsWfnubCOOb7M9dPv1r8dO5GlqIGlehTQ1lYzCq9MM5lQModNOI6QmOEN6B68wf39gIQWqY8N9Mx9l+ms+UsdmgeP/1KNGEzoCQdNrfs49DmndajNM0Jfvg4ZH3gq+LVcFyygM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712574449; c=relaxed/simple; bh=jiLeRIt/+Tmufe84SOk5SwUZaQNGJ5ChX47+dhlxzJQ=; h=DKIM-Signature:From:To:Subject:Message-ID:Date:MIME-Version; b=wu9dB4fVrVq0+GOSu4OSOx2aHdQEez19yPt6GmUPhlLd5Ts/SiWsLoYQB/yBJxPcSr/arFWilF3W8WBtRAiqFreGE1lBoHtEoiQDPbKMlqldzi7DBPHa/gR2hxb668Yt7OVgESzbgM6Xf14eLDCCwkgDF5UI6kIYDi5neDybjnc= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1712574447; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=TUX2foeFV5u9pJjJST2ZAucIJfUeEfFzokN4Q58yiG0=; b=Lx9zWBzaouhLVMUihS1tfYjFjyVfRfQUUxxAzBje6z0moPjq+BtBAGDCA0HuYep+okXtbY MjhuZGIdcbFIwvnYUKziHXTpgzuSW9AN6xBbzJIGEWVseUVOe7v/cJST3uw4xI9l40qiJf 7BCV2FXxc4BOYmBzuuMZyZuIg3ArG+o= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-618-RQZ-X5kkPI-ttcpBgCg54Q-1; Mon, 08 Apr 2024 07:07:25 -0400 X-MC-Unique: RQZ-X5kkPI-ttcpBgCg54Q-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4584529ABA11 for ; Mon, 8 Apr 2024 11:07:25 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.39.192.59]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9F96A42C820 for ; Mon, 8 Apr 2024 11:07:24 +0000 (UTC) From: Florian Weimer To: libc-alpha@sourceware.org Subject: [PATCH v4 0/3] Enhanced CPU diagnostics for ld.so Message-ID: X-From-Line: 85f152292c8de61442f7ebc2ba0e50f949404b4d Mon Sep 17 00:00:00 2001 Date: Mon, 08 Apr 2024 13:07:18 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.10 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Mostly unchanged repost with a Hurd build fix and an aarch64 manual update. Florian Weimer (3): elf: Add CPU iteration support for future use in ld.so diagnostics x86: Add generic CPUID data dumper to ld.so --list-diagnostics aarch64: Enhanced CPU diagnostics for ld.so elf/dl-iterate_cpu.h | 136 +++++++++ manual/dynlink.texi | 119 +++++++- sysdeps/aarch64/dl-diagnostics-cpu.c | 84 ++++++ sysdeps/generic/dl-affinity.h | 54 ++++ sysdeps/unix/sysv/linux/dl-affinity.h | 46 +++ sysdeps/x86/dl-diagnostics-cpu.c | 384 ++++++++++++++++++++++++++ 6 files changed, 822 insertions(+), 1 deletion(-) create mode 100644 elf/dl-iterate_cpu.h create mode 100644 sysdeps/aarch64/dl-diagnostics-cpu.c create mode 100644 sysdeps/generic/dl-affinity.h create mode 100644 sysdeps/unix/sysv/linux/dl-affinity.h base-commit: 1f94147a79fcb7211f1421b87383cad93986797f