gem5: allow prof and perf builds, and comment on them

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2020-02-18 00:00:00 +00:00
parent fc98b543d1
commit e33f6d5bf9
2 changed files with 10 additions and 1 deletions

View File

@@ -12167,6 +12167,15 @@ Benchmarks present at:
* xref:benchmark-emulators-on-userland-executables[xrefstyle=full]
==== gem5 prof and perf builds
Profiling builds as of 3cea7d9ce49bda49c50e756339ff1287fd55df77 both use: `-g -O3` and disable asserts and logging like the <<gem5-fast-build>> and:
* `prof` uses `-pg` for gprof
* `perf` uses `-lprofile` for google-pprof
See also: <<profiling-userland-programs>>.
==== gem5 clang build
TODO test properly, benchmark vs GCC.

View File

@@ -151,7 +151,7 @@ consts['build_type_choices'] = [
'debug'
]
consts['gem5_build_type_choices'] = consts['build_type_choices'] + [
'fast',
'fast', 'prof', 'perf',
]
consts['build_type_default'] = 'opt'
# Files whose basename start with this are gitignored.