Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(400)

Unified Diff: docs/ASAN.rst

Issue 2266593002: Subzero: Updated documentation to describe building spec2k benchmarks (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: docs/ASAN.rst
diff --git a/docs/ASAN.rst b/docs/ASAN.rst
index c51c905e04db5e535013c0b7aea1edf7a254f26b..e587818b4c6625b122897b5a1e74c8988595e4e0 100644
--- a/docs/ASAN.rst
+++ b/docs/ASAN.rst
@@ -43,3 +43,25 @@ contain widened loads that would cause false positives. To avoid reporting such
loads as errors, we treat any word-aligned, four byte load as a potentially
widened load and only check the first byte of the loaded word against shadow
memory.
+
+Building SPEC2000 Benchmark Suite
+=================================
+
+Most of the SPEC2000 benchmarks can be built with Subzero and AddressSanitizer,
+however due to the nature of our solution for LLVM's aggressive inlining of
+calloc, 300.twolf and 252.eon will not build. AddressSanitizer correctly finds
+bugs in 197.parser and 253.perlbmk. 176.gcc crashes for unknown reasons. Among
+the benchmarks that do run to completion, the average slowdown introduced is
+4.6x.
+
+To build the benchmarks with AddressSanitizer, some small changes to the
+Makefile are needed. They can be found `here
+<https://codereview.chromium.org/2266553002/>`_.
+
+Once the Makefile has been patched, build and run with these commands::
+
+ cd native_client/tests/spec2k
+ ./run_all.sh BuildBenchmarks 0 SetupPnaclX8632Opt <benchmarks>
+ ../../toolchain_build/src/subzero/pydir/szbuild_spec2k.py -v -O2 \
+ --fsanitize-address <benchmarks>
+ ./run_all.sh RunTimedBenchmarks SetupGccX8632Opt train <benchmarks>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698