Re: [PATCH 1/5] Add gcc-auto-profile script

2016-05-29 Thread Andi Kleen
On Mon, May 30, 2016 at 02:39:06AM +0200, Jan Hubicka wrote: > > > > Since maintaining the script would be somewhat tedious (needs changes > > every time a new CPU comes out) I auto generated it from the online > > Intel event database. The script to do that is in contrib and can be > > rerun. >

Re: [PATCH 1/5] Add gcc-auto-profile script

2016-05-29 Thread Jan Hubicka
Andi, thanks a lot for working on the auto-fdo bootstrap. It is badly needed to have some coverage for this feature. I don't think I can approve the build machinery changes. > From: Andi Kleen > > Using autofdo is currently something difficult. It requires using the >

Re: [PATCH 1/5] Add gcc-auto-profile script

2016-05-21 Thread Bernhard Reutner-Fischer
On May 21, 2016 6:36:22 PM GMT+02:00, Andi Kleen wrote: >From: Andi Kleen >+if [ "$1" = "--kernel" ] ; then >+ FLAGS=k >+ shift >+fi >+if [ "$1" == "--all" ] ; then == is legacy, s/==/=/ >+ FLAGS=uk >+ shift >+fi >+ >+if ! grep -q Intel

[PATCH 1/5] Add gcc-auto-profile script

2016-05-21 Thread Andi Kleen
From: Andi Kleen Using autofdo is currently something difficult. It requires using the model specific branches taken event, which differs on different CPUs. The example shown in the manual requires a special patched version of perf that is non standard, and also will likely