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

2016-06-08 Thread Borislav Petkov
On Wed, Jun 08, 2016 at 04:15:25PM -0400, Vince Weaver wrote: > It's also unclear what internal names matter. For example is AMD 15h/60h > "Carrizo" or "Excavator" or both? Excavator is the core and Carrizo is the APU. I think of it as the client part. But this is exactly the problem: what name

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

2016-06-08 Thread Borislav Petkov
On Wed, Jun 08, 2016 at 04:15:25PM -0400, Vince Weaver wrote: > It's also unclear what internal names matter. For example is AMD 15h/60h > "Carrizo" or "Excavator" or both? Excavator is the core and Carrizo is the APU. I think of it as the client part. But this is exactly the problem: what name

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

2016-06-08 Thread Vince Weaver
On Wed, 8 Jun 2016, Borislav Petkov wrote: > On Wed, Jun 08, 2016 at 06:25:29PM +0200, Ingo Molnar wrote: > > model string: IvyBridge_X > > > > ... or something like that. The string could even be auto-generated from > > the list > > in intel-family.h? > > Yap, that sounds cool too. And

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

2016-06-08 Thread Vince Weaver
On Wed, 8 Jun 2016, Borislav Petkov wrote: > On Wed, Jun 08, 2016 at 06:25:29PM +0200, Ingo Molnar wrote: > > model string: IvyBridge_X > > > > ... or something like that. The string could even be auto-generated from > > the list > > in intel-family.h? > > Yap, that sounds cool too. And

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

2016-06-08 Thread Stephane Eranian
On Wed, Jun 8, 2016 at 9:34 AM, Borislav Petkov wrote: > On Wed, Jun 08, 2016 at 06:25:29PM +0200, Ingo Molnar wrote: >> model string: IvyBridge_X >> >> ... or something like that. The string could even be auto-generated from the >> list >> in intel-family.h? > > Yap, that

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

2016-06-08 Thread Stephane Eranian
On Wed, Jun 8, 2016 at 9:34 AM, Borislav Petkov wrote: > On Wed, Jun 08, 2016 at 06:25:29PM +0200, Ingo Molnar wrote: >> model string: IvyBridge_X >> >> ... or something like that. The string could even be auto-generated from the >> list >> in intel-family.h? > > Yap, that sounds cool too.

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

2016-06-08 Thread Borislav Petkov
On Wed, Jun 08, 2016 at 06:25:29PM +0200, Ingo Molnar wrote: > model string: IvyBridge_X > > ... or something like that. The string could even be auto-generated from the > list > in intel-family.h? Yap, that sounds cool too. And then we should issue that too during boot: [0.542398]

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

2016-06-08 Thread Borislav Petkov
On Wed, Jun 08, 2016 at 06:25:29PM +0200, Ingo Molnar wrote: > model string: IvyBridge_X > > ... or something like that. The string could even be auto-generated from the > list > in intel-family.h? Yap, that sounds cool too. And then we should issue that too during boot: [0.542398]

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

2016-06-08 Thread Ingo Molnar
* Vince Weaver 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

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

2016-06-08 Thread Ingo Molnar
* Vince Weaver 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

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

2016-06-08 Thread Borislav Petkov
On Wed, Jun 08, 2016 at 10:09:28AM -0400, Vince Weaver wrote: > and don't get me started about trying to somehow match a model number to a > code name using the AMD or intel documentation, without resorting to > wikipedia or random tech sites. I'm looking at you AMD fam15h model 60h. That's

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

2016-06-08 Thread Borislav Petkov
On Wed, Jun 08, 2016 at 10:09:28AM -0400, Vince Weaver wrote: > and don't get me started about trying to somehow match a model number to a > code name using the AMD or intel documentation, without resorting to > wikipedia or random tech sites. I'm looking at you AMD fam15h model 60h. That's

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

2016-06-08 Thread Vince Weaver
On Wed, 8 Jun 2016, tip-bot for Dave Hansen wrote: > Commit-ID: ef5f9f47d4ec4cf42bac48c7c4dafacc1b9f0630 > Gitweb: http://git.kernel.org/tip/ef5f9f47d4ec4cf42bac48c7c4dafacc1b9f0630 > Author: Dave Hansen > AuthorDate: Thu, 2 Jun 2016 17:19:29 -0700 >

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

2016-06-08 Thread Vince Weaver
On Wed, 8 Jun 2016, tip-bot for Dave Hansen wrote: > Commit-ID: ef5f9f47d4ec4cf42bac48c7c4dafacc1b9f0630 > Gitweb: http://git.kernel.org/tip/ef5f9f47d4ec4cf42bac48c7c4dafacc1b9f0630 > Author: Dave Hansen > AuthorDate: Thu, 2 Jun 2016 17:19:29 -0700 > Committer: Ingo Molnar >

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

2016-06-08 Thread tip-bot for Dave Hansen
Commit-ID: ef5f9f47d4ec4cf42bac48c7c4dafacc1b9f0630 Gitweb: http://git.kernel.org/tip/ef5f9f47d4ec4cf42bac48c7c4dafacc1b9f0630 Author: Dave Hansen AuthorDate: Thu, 2 Jun 2016 17:19:29 -0700 Committer: Ingo Molnar CommitDate: Wed, 8 Jun

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

2016-06-08 Thread tip-bot for Dave Hansen
Commit-ID: ef5f9f47d4ec4cf42bac48c7c4dafacc1b9f0630 Gitweb: http://git.kernel.org/tip/ef5f9f47d4ec4cf42bac48c7c4dafacc1b9f0630 Author: Dave Hansen AuthorDate: Thu, 2 Jun 2016 17:19:29 -0700 Committer: Ingo Molnar CommitDate: Wed, 8 Jun 2016 12:05:58 +0200 perf/x86/intel: Use Intel