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 Fix unportable shell quoting. 2010-09-27 20:19:41 +00:00
regression * btest-gcc.sh (TESTLOGS): Make gfortran.sum optional. 2012-08-26 19:30:44 +00:00
testsuite-management * testsuite-management/x86_64-unknown-linux-gnu.xfail: Update. 2013-09-27 12:54:44 -04:00
ChangeLog Add gcc-auto-profile script 2016-06-23 14:33:53 +00:00
ChangeLog.jit Merger of dmalcolm/jit branch from git 2014-11-11 21:55:52 +00:00
ChangeLog.tree-ssa
analyze_brprob.py Change PRED_LOOP_EXIT from 92 to 85. 2016-06-17 14:28:57 +00:00
analyze_brprob_spec.py Add new analyze_brprob_spec.py script 2016-06-09 11:39:08 +00:00
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 Update Copyright years for files modified in 2011 and/or 2012. 2013-01-04 13:49:55 +01:00
check_warning_flags.sh Avoid tr '\n', for Solaris /usr/bin/tr. 2010-01-16 14:42:32 +00:00
clang-format clang-format: split content of a list to multiple lines 2015-11-20 12:24:34 +00:00
compare-all-tests config.guess: Remove SH5 support. 2016-04-30 09:11:03 +00:00
compare-debug Update Copyright years for files modified in 2011 and/or 2012. 2013-01-04 13:49:55 +01:00
compareSumTests3
compare_tests compare_tests: Limit lines to 2000 characters as comm on Mac OS X 10.8.3 doesn't like long... 2013-05-13 17:52:42 +00:00
compare_two_ftime_report_sets Add a contrib script for comparing the performance of two sets of 2012-11-07 00:36:04 +00:00
config-list.mk remove mep-* support 2016-06-21 21:57:49 +00:00
dg-cmp-results.sh dg-cmp-results.sh: Do not print usage if either .sum file cannot be opened... 2008-11-19 09:00:42 +11:00
dg-extract-results.py dg-extract-results.py (output_variation): Always sort if do_sum. 2014-10-02 20:24:07 +02:00
dg-extract-results.sh dg-extract-results.sh: Check that the necessary python modules exist. 2015-03-06 18:35:15 +00:00
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.doxy
gcc_build
gcc_update gcc_update (files_and_dependencies): Add rules for liboffloadmic and liboffloadmic/plugin. 2015-02-05 13:55:25 +00:00
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 Add new script to contrib (GIMPLE syntax highlighting rules for Vim). 2015-05-30 05:44:17 +00:00
gthr_supp_vxw_5x.c
index-prop
jit-coverage-report.py Merger of dmalcolm/jit branch from git 2014-11-11 21:55:52 +00:00
make-obstacks-texi.pl make-obstacks-texi.pl: New. 2013-03-06 09:38:22 +01:00
make_sunver.pl Make make_sunver.pl robust against non-C locales 2013-02-27 09:15:35 +00:00
mklog teach mklog to look in the current directory for ChangeLog files 2016-03-06 17:36:19 +00:00
paranoia.cc ansidecl.h (ENUM_BITFIELD): New, from gcc/system.h. 2011-04-25 18:05:37 +00:00
patch_tester.sh patch_tester.sh (nopristinecache): New shell var, set according to presence or absence of new -nopristinecache option. 2011-01-26 03:46:07 +00:00
prepare_patch.sh
repro_fail repro_fail: filter out "-ignore SIGHUP" from the spawn lines 2013-05-21 14:43:16 +00:00
test_installed test_installed (--target=): New option. 2015-06-02 17:12:16 +00:00
test_recheck New contrib/test_recheck script to rerun unsuccessful tests. 2010-10-11 18:04:01 +00:00
test_summary check_jni_methods.sh.in: Don't use diff -U. 2010-06-04 14:01:22 +00:00
texi2pod.pl texi2pod.pl: Escape braces in regexp involving @strong{...}. 2015-08-04 18:15:45 +02:00
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 Local Vim config with GNU formatting. 2014-12-09 13:45:47 +00:00
warn_summary