Re: [tip:perf/core] perf/x86/intel: Use Intel family macros for core perf events
From: Ingo Molnar
Date: Wed Jun 08 2016 - 12:25:40 EST
* Vince Weaver <vincent.weaver@xxxxxxxxx> wrote:
> eventually you can get them to send /proc/cpuinfo so you can try to find
> out what processor they really have, and in that case you can get
> the family/model numbers in plain decimal, and you can easily look up
> if things are supported in the various files.
If only it was that simple! /proc/cpuinfo lists the model number in decimal, but
half of all uses were in hexa, making grepping hard ...
So the real solution would be to print out the engineering model name in
/proc/cpuinfo as well:
processor : 119
vendor_id : GenuineIntel
cpu family : 6
model : 62
model name : Intel(R) Xeon(R) CPU E7-4890 v2 @ 2.80GHz
model string : IvyBridge_X
... or something like that. The string could even be auto-generated from the list
in intel-family.h?
Thanks,
Ingo