From e33f6d5bf93567267947a140a7086db76ff71815 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciro=20Santilli=20=E5=85=AD=E5=9B=9B=E4=BA=8B=E4=BB=B6=20?= =?UTF-8?q?=E6=B3=95=E8=BD=AE=E5=8A=9F?= Date: Tue, 18 Feb 2020 00:00:00 +0000 Subject: [PATCH] gem5: allow prof and perf builds, and comment on them --- README.adoc | 9 +++++++++ common.py | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/README.adoc b/README.adoc index 3a5ed9a..28e7879 100644 --- a/README.adoc +++ b/README.adoc @@ -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 <> and: + +* `prof` uses `-pg` for gprof +* `perf` uses `-lprofile` for google-pprof + +See also: <>. + ==== gem5 clang build TODO test properly, benchmark vs GCC. diff --git a/common.py b/common.py index 6edcc2f..7204908 100644 --- a/common.py +++ b/common.py @@ -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.