cpuid_tool — Command line interface to libcpuid
This file is provides a direct interface to libcpuid. See the usage() function (or just run the program with the `--help' switch) for a short command line options reference.
This file has several purposes:
- When started with no arguments, the program outputs the RAW and decoded CPU data to files (`raw.txt' and `report.txt', respectively) — this is intended to be a dumb, doubleclicky tool for non-developer users, that can provide debug info about unrecognized processors to libcpuid developers.
- When operated from the terminal with the `--report' option, it is a generic CPU-info utility.
- Can be used in shell scripts, e.g. to get the name of the CPU, cache sizes, features, with query options like `--cache', `--brandstr', etc.
- Finally, it serves to self-document libcpiud itself :)