Expand description
CPU identification utilities: CPUID wrapper, brand string, databases, vmid template, stepping extraction.
Structs§
- CpuEntry
- CpuStepping
- CPU stepping information (model, family, ext-model).
- Cpuid
Result
Statics§
- AMD_
RYZEN_ DB - AMD Ryzen / Threadripper database.
- INTEL_
CORE_ DB - Intel Core i3/i5/i7/i9 database.
- INTEL_
ULTRA_ DB - Intel Core Ultra (Series 1 / Series 2) database.
- INTEL_
XEON_ DB - Intel Xeon D/E/W series database.
Functions§
- cpu_
brand_ string - Return the CPU brand string (from leaves 0x80000002-4). Empty on failure.
- cpuid
- fetch_
steppings - Extract stepping info from CPUID leaf 1 EAX.
- is_amd
- Returns true if the CPU manufacturer is AMD.
- is_
celeron - Returns true if the CPU is a Celeron based on its brand string.
- is_
intel - Returns true if the CPU manufacturer is Intel.
- is_
leaf_ supported - Check whether CPUID leaf
leafis supported by this CPU. - lookup_
expected_ threads - Look up the expected thread count for a given CPU brand string.
Returns
Noneif not found in any database. - vendor_
string - Reconstruct a 12-byte vendor string from EBX/ECX/EDX of a CPUID result.
- vmid_
template - Matches vendor strings against 30+ known VM signatures.
Returns (
found: bool,brand: VMBrand).