CPUINFO2CPUID(1)

πŸ’– CPUINFO2CPUID(1) πŸ’–

okay bestie, welcome to cpuinfo2cpuid β€” it's a lil manual page (section 1, the "user commands" shelf, iykyk) and honestly it's giving humble-but-iconic. let's get into it πŸ¦‹


✨ NAME ✨

cpuinfo2cpuid β€” literally the whole name, that's it, that's the girl 🌸


✨ SYNOPSIS ✨

cpuinfo2cpuid

or

cpuinfo2cpuid -help

or

cpuinfo2cpuid -vendor=<GenuineIntel|AuthenticAMD> -family=<num>
-model=<num> -stepping=<num>

like, three whole moods. pick your fighter πŸ’…


✨ DESCRIPTION ✨

so here's the vibe: cpuinfo2cpuid is sitting there expecting /proc/cpuinfo data to arrive on stdin, and it converts that into a cpuid-like HEX data structure. why? because that structure is suitable as the input for the cpuid -f <file> utility. it's a glow-up pipeline, no cap ✨

or β€” plot twist β€” you can just specify the CPU vendor, family, model and stepping on the command line instead. your call, main character πŸ’–


✨ OPTIONS ✨

  • -help β€” shows a brief help message. short, sweet, helpful πŸŽ€
  • -vendor β€” the CPU vendor. can be either GenuineIntel or AuthenticAMD, no in-between, we don't do ambiguous here πŸ‘‘
  • -family β€” CPU family, written in decimal notation.
  • -model β€” CPU model, also in decimal notation.
  • -stepping β€” CPU stepping, yep, decimal notation again.
  • -help β€” shows a brief help message. yes bestie, it's listed twice in the original and I'm not about to erase her. she said it twice, it stays twice πŸ’€πŸ’–

✨ LIMITATIONS ✨

ngl, right now only Intel & AMD cpuinfo data are supported. that's the whole limitation, at the moment. everything else is just... not invited to the party yet 🫢


✨ EXAMPLES ✨

the classic pipe moment:

cpuinfo2cpuid < /proc/cpuinfo | cpuid -f - | grep '(synth)'

and then β€” Specifying CPU vendor, family, model and stepping on command line:

cpuinfo2cpuid.pl -vendor=GenuineIntel -family=6 -model=58 -stepping=9 |
cpuid -f - | grep '(synth)'

(that second one says cpuinfo2cpuid.pl, exactly like that, don't come for me, I'm just the messenger 😭)


✨ AUTHOR ✨

Todd Allen <cpuid@etallen.com>, Jirka Hladky <jhladky@gmail.com> β€” absolute legends, we stan πŸ’œ


okay and for the cute sign-off: this page is rockin' the 20250316 build stamp with a 2025-03-29 date, and it lives in the CPUINFO2CPUID(1) manual β€” so yeah, that's the whole page. slay, read it, run it, hydrate πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from