linux/tools/arch/x86
Ahmed S. Darwish 58921443e9 tools/x86/kcpuid: Parse subleaf ranges if provided
It's a common pattern in cpuid leaves to have the same bitfields format
repeated across a number of subleaves.  Typically, this is used for
enumerating hierarchial structures like cache and TLB levels, CPU
topology levels, etc.

Modify kcpuid.c to handle subleaf ranges in the CSV file subleaves
column.  For example, make it able to parse lines in the form:

 # LEAF, SUBLEAVES,  reg,    bits,    short_name             , ...
    0xb,       1:0,  eax,     4:0,    x2apic_id_shift        , ...
    0xb,       1:0,  ebx,    15:0,    domain_lcpus_count     , ...
    0xb,       1:0,  ecx,     7:0,    domain_nr              , ...

This way, full output can be printed to the user.

Signed-off-by: Ahmed S. Darwish <darwi@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20240718134755.378115-8-darwi@linutronix.de
2024-08-02 09:17:19 +02:00
..
dell-uart-backlight-emulator tools arch x86: Add dell-uart-backlight-emulator 2024-05-14 11:43:40 +02:00
include tools headers UAPI: Sync kvm headers with the kernel sources 2024-05-28 16:49:36 -03:00
intel_sdsi tools/arch/x86/intel_sdsi: Add current meter support 2024-04-29 10:52:02 +02:00
kcpuid tools/x86/kcpuid: Parse subleaf ranges if provided 2024-08-02 09:17:19 +02:00
lib x86/insn: Add support for APX EVEX instructions to the opcode map 2024-05-02 13:13:46 +02:00
tools x86/insn: Add support for APX EVEX to the instruction decoder logic 2024-05-02 13:13:45 +02:00