x86: Add generic CPUID data dumper to ld.so --list-diagnostics
commit7a430f40c46acfa7ce4c3bff193b278c190b2efc
authorFlorian Weimer <fweimer@redhat.com>
Mon, 8 Apr 2024 14:48:55 +0000 (8 16:48 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 8 Apr 2024 14:48:55 +0000 (8 16:48 +0200)
tree9aaab469e45e2a2c6c69651293bdd2c78957d8b4
parent5653ccd847f0cd3a98906e44c97c71d68652d326
x86: Add generic CPUID data dumper to ld.so --list-diagnostics

This is surprisingly difficult to implement if the goal is to produce
reasonably sized output.  With the current approaches to output
compression (suppressing zeros and repeated results between CPUs,
folding ranges of identical subleaves, dealing with the %ecx
reflection issue), the output is less than 600 KiB even for systems
with 256 logical CPUs.

Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
manual/dynlink.texi
sysdeps/x86/dl-diagnostics-cpu.c