From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 4A06E385DC0D for ; Mon, 11 Sep 2023 17:48:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4A06E385DC0D Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1694454521; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=3SYcThVJgdJ9Mstcj5DhIik0qv9DrPuGC4FcM6lDDJo=; b=a04VccZkAsuTcsiMgdhHzTaZkThoiSzKSGJy2+ey+WctBPOTAZ3db9vvfdfESjH//JOOU7 ivhs3nMQo+tFij6oJbnfyl++EZtSAXXzTOFMtsn6QG9OQsadosphFx2Q9B0ew3Y9+ax0qE 1OHtyU/aaR2WY2te7qWUptRk/O5l6zc= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-516-iVxmanDVOA2f84HtC2oqTQ-1; Mon, 11 Sep 2023 13:48:37 -0400 X-MC-Unique: iVxmanDVOA2f84HtC2oqTQ-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A3C5193CCA1; Mon, 11 Sep 2023 17:48:37 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.2.16.37]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3104D4404C; Mon, 11 Sep 2023 17:48:37 +0000 (UTC) From: Florian Weimer To: Noah Goldstein Cc: libc-alpha@sourceware.org Subject: Re: [PATCH 2/2] x86: Add generic CPUID data dumper to ld.so --list-diagnostics References: <4a77d6294e0023338a8115fad9a3d549c47cae87.1694203757.git.fweimer@redhat.com> <871qf549sa.fsf@oldenburg.str.redhat.com> <87il8gptgo.fsf@oldenburg.str.redhat.com> Date: Mon, 11 Sep 2023 19:48:35 +0200 In-Reply-To: (Noah Goldstein's message of "Mon, 11 Sep 2023 11:28:54 -0500") Message-ID: <87bke8ppn0.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-Spam-Status: No, score=-4.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_H3,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 List-Id: * Noah Goldstein: >> > If JSON isn't really feasible for technical reasons, however, so be it. >> >> There is that 53 bit problem, and we'd still have to use string keys for >> the objects. > > We can't find meaningful names for the information? If not do we even > want to dump it? My goal was to write a generic dumper, not something we need update for every new CPU generation. That's why I didn't want to hard-code subleaf structure and implement a brute-force approach instead. For example, when we had the leaf 2 problems, the existing dumps were insufficient. Tomorrow it might be a completely different leaf. And the dumper intends to cover everything, including parts that are only used by (possibly future) GCC versions in __builtin_cpu_supports. Thanks, Florian