public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Florian Weimer <fweimer@redhat.com>
To: "H.J. Lu via Libc-alpha" <libc-alpha@sourceware.org>
Subject: Re: [PATCH v2 2/2] x86: Add CPU-specific diagnostics to ld.so --list-diagnostics
Date: Tue, 02 Mar 2021 14:42:19 +0100	[thread overview]
Message-ID: <878s751xl0.fsf@oldenburg.str.redhat.com> (raw)
In-Reply-To: <CAMe9rOqRK7s4DWY4bigcbJRF+RtCzZYpTKhq9+O=QE+v+uz-XA@mail.gmail.com> (H. J. Lu via Libc-alpha's message of "Tue, 2 Mar 2021 05:11:20 -0800")

* H. J. Lu via Libc-alpha:

>> +  print_cpu_feature_preferred
>> +    ("prefer_no_avx512",
>> +     CPU_FEATURE_PREFERRED_P (cpu_features, Prefer_No_AVX512));
>> +  print_cpu_feature_preferred
>> +    ("mathvec_prefer_no_avx512",
>> +     CPU_FEATURE_PREFERRED_P (cpu_features, MathVec_Prefer_No_AVX512));
>
> $ grep "#define index_arch_" sysdeps/x86/include/cpu-features.h | awk
> '{ print $2 }' | sed -e "s/index_arch_//"
> Fast_Rep_String
> Fast_Copy_Backward
> Slow_BSF
> Fast_Unaligned_Load
> Prefer_PMINUB_for_stringop
> Fast_Unaligned_Copy
> I586
> I686
> Slow_SSE4_2
> AVX_Fast_Unaligned_Load
> Prefer_MAP_32BIT_EXEC
> Prefer_No_VZEROUPPER
> Prefer_ERMS
> Prefer_No_AVX512
> MathVec_Prefer_No_AVX512
> Prefer_FSRM
>
> sysdeps/x86/configure.ac can generate the list.

Okay, I will automate this in some way.

>> +  print_cpu_features_value ("level3_cache_linesize",
>> +                            cpu_features->level3_cache_linesize);
>> +  print_cpu_features_value ("level4_cache_size",
>> +                            cpu_features->level4_cache_size);
>
> Please assert size of *cpu_features == offfset of level4_cache_size
> + sizeof (level4_cache_size).

I'm going to add a static assert.

Thanks,
Florian


  reply	other threads:[~2021-03-02 13:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-02 10:07 [PATCH v2] ld.so: Implement the --list-diagnostics option Florian Weimer
2021-03-02 10:08 ` [PATCH v2 2/2] x86: Add CPU-specific diagnostics to ld.so --list-diagnostics Florian Weimer
2021-03-02 13:11   ` H.J. Lu
2021-03-02 13:42     ` Florian Weimer [this message]
2021-03-02 13:00 ` [PATCH v2] ld.so: Implement the --list-diagnostics option H.J. Lu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878s751xl0.fsf@oldenburg.str.redhat.com \
    --to=fweimer@redhat.com \
    --cc=libc-alpha@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).