7b72d14a9f
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 |
||
---|---|---|
.. | ||
header-tools | ||
reghunt | ||
regression | ||
testsuite-management | ||
analyze_brprob_spec.py | ||
analyze_brprob.py | ||
ChangeLog | ||
ChangeLog.jit | ||
ChangeLog.tree-ssa | ||
check_GNU_style.sh | ||
check_makefile_deps.sh | ||
check_warning_flags.sh | ||
clang-format | ||
compare_tests | ||
compare_two_ftime_report_sets | ||
compare-all-tests | ||
compare-debug | ||
compareSumTests3 | ||
config-list.mk | ||
dg-cmp-results.sh | ||
dg-extract-results.py | ||
dg-extract-results.sh | ||
dglib.pm | ||
download_ecj | ||
download_prerequisites | ||
filter_gcc_for_doxygen | ||
filter_knr2ansi.pl | ||
filter_params.pl | ||
gcc_build | ||
gcc_update | ||
gcc.doxy | ||
gen_autofdo_event.py | ||
gennews | ||
gimple.vim | ||
gthr_supp_vxw_5x.c | ||
index-prop | ||
jit-coverage-report.py | ||
make_sunver.pl | ||
make-obstacks-texi.pl | ||
mklog | ||
paranoia.cc | ||
patch_tester.sh | ||
prepare_patch.sh | ||
repro_fail | ||
test_installed | ||
test_recheck | ||
test_summary | ||
texi2pod.pl | ||
uninclude | ||
update-copyright.py | ||
vimrc | ||
warn_summary |