Re: [tip:perf/core] perf/x86/intel: Use Intel family macros for core perf events

Ingo Molnar
2016-06-08T16:25:37Z

* Vince Weaver <vincent.weaver@maine.edu> 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