Update gen_autofdo_event.py and gcc-auto-profile.
authorEugene Rozenfeld <erozen@microsoft.com>
Thu, 1 Jul 2021 23:21:36 +0000 (16:21 -0700)
committerEugene Rozenfeld <erozen@microsoft.com>
Fri, 2 Jul 2021 06:30:14 +0000 (23:30 -0700)
commit01d402c5e0ac1ddf5618bbe316b50067625fda46
tree4a0ba3dcc78f61fc407651554c59706cb36c98c7
parent73494401241b183ca188954a035734fcc53d97de
Update gen_autofdo_event.py and gcc-auto-profile.

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 was to tolerate cases when the CPU supports PEBS but the
perf command with /p fails. This can happen in, e.g., a virtual machine.

I regenerated gcc-auto-profile using the updated script.

contrib/ChangeLog:

* gen_autofdo_event.py: handle stepping, non-working PEBS

gcc/ChangeLog:

* config/i386/gcc-auto-profile: regenerate
contrib/gen_autofdo_event.py
gcc/config/i386/gcc-auto-profile