gcc/contrib
Andi Kleen 7b72d14a9f Add gcc-auto-profile script
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 not work everywhere.

This patch adds a new gcc-auto-profile script that figures out the
correct event and runs perf.

This is needed to actually make use of autofdo in a generic way
in the build system and in the test suite.

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.

Right now there is no test if perf works in configure. This
would vary depending on the build and target system, and since
it currently doesn't work in virtualization and needs uptodate
kernel it may often fail in common distribution build setups.

So far the script is not installed.

gcc/:
2016-06-23  Andi Kleen  <ak@linux.intel.com>

	* config/i386/gcc-auto-profile: New file.

contrib/:

2016-06-23  Andi Kleen  <ak@linux.intel.com>

	* gen_autofdo_event.py: New file to regenerate
	gcc-auto-profile.

From-SVN: r237731
2016-06-23 14:33:53 +00:00
..
header-tools remove avr-rtems support 2016-06-21 21:57:44 +00:00
reghunt
regression
testsuite-management
analyze_brprob_spec.py Add new analyze_brprob_spec.py script 2016-06-09 11:39:08 +00:00
analyze_brprob.py Change PRED_LOOP_EXIT from 92 to 85. 2016-06-17 14:28:57 +00:00
ChangeLog Add gcc-auto-profile script 2016-06-23 14:33:53 +00:00
ChangeLog.jit
ChangeLog.tree-ssa
check_GNU_style.sh check_GNU_style.sh: Fix paste args for BSD 2016-06-10 08:53:20 +00:00
check_makefile_deps.sh
check_warning_flags.sh
clang-format
compare_tests
compare_two_ftime_report_sets
compare-all-tests config.guess: Remove SH5 support. 2016-04-30 09:11:03 +00:00
compare-debug
compareSumTests3
config-list.mk remove mep-* support 2016-06-21 21:57:49 +00:00
dg-cmp-results.sh
dg-extract-results.py
dg-extract-results.sh
dglib.pm
download_ecj
download_prerequisites download_prerequisites (ISL): Bump version to 0.16.1 2016-06-13 08:18:51 +00:00
filter_gcc_for_doxygen
filter_knr2ansi.pl
filter_params.pl
gcc_build
gcc_update
gcc.doxy
gen_autofdo_event.py Add gcc-auto-profile script 2016-06-23 14:33:53 +00:00
gennews * gennews (files): Add files for GCC 6. 2016-04-27 09:48:34 +02:00
gimple.vim
gthr_supp_vxw_5x.c
index-prop
jit-coverage-report.py
make_sunver.pl
make-obstacks-texi.pl
mklog teach mklog to look in the current directory for ChangeLog files 2016-03-06 17:36:19 +00:00
paranoia.cc
patch_tester.sh
prepare_patch.sh
repro_fail
test_installed
test_recheck
test_summary
texi2pod.pl
uninclude * uninclude: Fix third argument to gensub. 2016-01-19 22:00:17 +00:00
update-copyright.py Update copyright dates 2016-06-07 08:54:22 +00:00
vimrc
warn_summary