[PATCH] Update perf auto profile script

2023-05-30 Thread Andi Kleen via Gcc-patches
- Fix gen_autofdo_event: The download URL for the Intel Perfmon Event list has changed, as well as the JSON format. Also it now uses pattern matching to match CPUs. Update the script to support all of this. - Regenerate gcc-auto-profile with the latest published Intel model numbers, so it

Re: [EXTERNAL] [PATCH] contrib: modernize gen_autofdo_event.py

2022-08-06 Thread Andi Kleen via Gcc-patches
On 8/6/2022 1:07 AM, Eugene Rozenfeld wrote: The changes look good to me. Also adding Andi, the author of the script. Looks all good to me too. -Andi

Re: [PATCH] Add instruction level discriminator support.

2022-06-12 Thread Andi Kleen via Gcc-patches
Eugene Rozenfeld via Gcc-patches writes: > { > diff --git a/gcc/cp/module.cc b/gcc/cp/module.cc > index d1dc73724d1..5ed6b7b0f94 100644 > --- a/gcc/cp/module.cc > +++ b/gcc/cp/module.cc > @@ -15587,6 +15587,8 @@ module_state::write_location (bytes_out , > location_t loc) >

Re: [PATCH] Add divide by zero side effect.

2022-05-27 Thread Andi Kleen via Gcc-patches
Andrew MacLeod via Gcc-patches writes: > > diff --git a/gcc/gimple-range-side-effect.cc b/gcc/gimple-range-side-effect.cc > index 2c8c77dc569..548e4bea313 100644 > --- a/gcc/gimple-range-side-effect.cc > +++ b/gcc/gimple-range-side-effect.cc > @@ -116,6 +116,23 @@

Re: [PATCH] gcov-profile/71672 Fix indirect call inlining with AutoFDO

2021-07-30 Thread Andi Kleen via Gcc-patches
On 7/30/2021 12:08 AM, Eugene Rozenfeld wrote: This patch has the following changes: Great thanks. Thanks for working on this. Looks all good to me (except I guess the patches could be split up for commit) -Andi

Re: [PATCH] Update gen_autofdo_event.py and gcc-auto-profile

2021-07-01 Thread Andi Kleen via Gcc-patches
On 7/1/2021 4:40 PM, Eugene Rozenfeld wrote: gen_autofdo_event.py was stumbling on models with stepping so I updated the script to handle this case similar to the code in https://github.com/andikleen/pmu-tools/blob/c6a5f63aede19def8886d6a8b74d7a55c38ca947/event_download.py The second change

Re: [PATCH] gcov: Use system IO buffering

2021-04-22 Thread Andi Kleen via Gcc-patches
Martin Liška writes: > Hey. > > I/O buffering in gcov seems duplicite to what modern C library can provide. > The patch is a simplification and can provide easier interface for system > that don't have a filesystem and would like using GCOV. > > I'm going to install the patch after 11.1 if there

Re: [PATCH] contrib/gen_autofdo_event.py: Allow for it to work if there are more than 3 hyphens in Family-model

2020-05-24 Thread Andi Kleen via Gcc-patches
Javad Karabi via Gcc-patches writes: > > diff --git a/contrib/gen_autofdo_event.py b/contrib/gen_autofdo_event.py > index c97460c61c6..cd77a8686d9 100755 > --- a/contrib/gen_autofdo_event.py > +++ b/contrib/gen_autofdo_event.py > @@ -94,7 +94,7 @@ for j in u: > n = j.rstrip().split(',') >