From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oo1-xc2d.google.com (mail-oo1-xc2d.google.com [IPv6:2607:f8b0:4864:20::c2d]) by sourceware.org (Postfix) with ESMTPS id B24B93858D38 for ; Mon, 11 Sep 2023 18:36:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B24B93858D38 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oo1-xc2d.google.com with SMTP id 006d021491bc7-573429f5874so2813512eaf.0 for ; Mon, 11 Sep 2023 11:36:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694457365; x=1695062165; darn=sourceware.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=DcyOF1tVcuAk4ZUoT/IU0PagxLzg37babSoTRTZ7TzQ=; b=srsabyW2RAYwM4E7Hm4ZviNkDBJ5rOcyidHr5XezUW1YKx3ETXBrzdw/GQ9ivFmv5x JbX0fKXE5wwAzTnCIpeE7u3cliamqA5v+355XX4Y9pOt3ZpYpL94hrusBPAqSyb5wa4k dIO5jfw4Vdw+WJoiy3ol9jVvdcwD6t0HpgaAQTNY86PTU7lOUsk7LCsKbv1D09GEgdWk QtgUhapyH5g6z+WHgc0Osuoo+UgpKhV4k/JBy+cIfymQJLCDxER3jiJBYA4s9+N4/Nhi MXgocEEBlkg7hWQgOteLqx5Ai5AvpHl5tXpYGSBXMAhmRnFEOfcsS92AqVywpB0CuZq8 INmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694457365; x=1695062165; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DcyOF1tVcuAk4ZUoT/IU0PagxLzg37babSoTRTZ7TzQ=; b=t+Vmt2SZDitWMp4nKLdEZjqQUWrb8jd0u8jR3KBdKt4sW7R4qLvcIOcuy7P2fm1Pz7 GOUqTf2gWM70MEzpxee9ey2VYjlF8Y4gZhSMI55VLVolhU+kJ2q7FHsHDdvG9A5SNTcq Sc+/sWqVt1rKDWGg01zHQB1V8zSF0rsg25HRyHnzZAriOdzgNBYXFSx6yEBRi0VanYBF Rw5JBuj6uJ9gOpB7R5I/9Zwme1bpRIRaVCwZsm8AkfXvNjVZrgjYoS7axhQ4aaKouADG JUUtGw8ZLyvr53AMob0ITTYEnIsb8ylAipk6f/gjojRgwsRvWjSe7F1typialhxpAapo IrxQ== X-Gm-Message-State: AOJu0YypY0a5R4l0aoLL0DvHW6uIWTndNO7/NXiAbY3K4jDFXKJt0YYH PPPt4fW/OKgqPiCNmm4u+DYJ6Rd4Igh8t0J6aLU= X-Google-Smtp-Source: AGHT+IHZ9zTOrmYKDHgfXxWSMNVe7PHKXgBlglVFlGBiv1Iut7kOOjiwCXtu878d1A+vjJxuQyikUC81uGL6sclVo8s= X-Received: by 2002:a05:6870:2a4c:b0:1d5:e792:e7ad with SMTP id jd12-20020a0568702a4c00b001d5e792e7admr293142oab.5.1694457364895; Mon, 11 Sep 2023 11:36:04 -0700 (PDT) MIME-Version: 1.0 References: <4a77d6294e0023338a8115fad9a3d549c47cae87.1694203757.git.fweimer@redhat.com> <871qf549sa.fsf@oldenburg.str.redhat.com> <87il8gptgo.fsf@oldenburg.str.redhat.com> <87bke8ppn0.fsf@oldenburg.str.redhat.com> In-Reply-To: <87bke8ppn0.fsf@oldenburg.str.redhat.com> From: Noah Goldstein Date: Mon, 11 Sep 2023 13:35:47 -0500 Message-ID: Subject: Re: [PATCH 2/2] x86: Add generic CPUID data dumper to ld.so --list-diagnostics To: Florian Weimer Cc: libc-alpha@sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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: On Mon, Sep 11, 2023 at 12:48=E2=80=AFPM Florian Weimer wrote: > > * 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 f= or > >> 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. > I see. I guess that makes sense. > Thanks, > Florian >