summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/esan/cache_frag.cpp
diff options
context:
space:
mode:
authorDerek Bruening <bruening@google.com>2016-07-09 04:13:25 +0000
committerDerek Bruening <bruening@google.com>2016-07-09 04:13:25 +0000
commitdec4bd08382ec6d1006063019eba34df4eaa0ccb (patch)
tree33deb8bdb09de6038c1351a4d7592dec187b0b75 /compiler-rt/lib/esan/cache_frag.cpp
parent081fd139b3bd2247c658d7db6c7e3e65d0ce0424 (diff)
downloadbcm5719-llvm-dec4bd08382ec6d1006063019eba34df4eaa0ccb.tar.gz
bcm5719-llvm-dec4bd08382ec6d1006063019eba34df4eaa0ccb.zip
[esan] Add __esan_report for mid-run data
Summary: Adds a new public interface routine __esan_report() which can be used to request profiling results prior to abnormal termination (e.g., for a server process killed by its parent where the normal exit does not allow for normal result reporting). Implements this for the working-set tool. The cache frag tool is left unimplemented as it requires missing iteration capabilities. Adds a new test. Reviewers: aizatsky Subscribers: vitalybuka, zhaoqin, kcc, eugenis, llvm-commits, kubabrecka Differential Revision: http://reviews.llvm.org/D22098 llvm-svn: 274964
Diffstat (limited to 'compiler-rt/lib/esan/cache_frag.cpp')
-rw-r--r--compiler-rt/lib/esan/cache_frag.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler-rt/lib/esan/cache_frag.cpp b/compiler-rt/lib/esan/cache_frag.cpp
index 343abfcd584..a3e612daceb 100644
--- a/compiler-rt/lib/esan/cache_frag.cpp
+++ b/compiler-rt/lib/esan/cache_frag.cpp
@@ -199,4 +199,10 @@ int finalizeCacheFrag() {
return 0;
}
+void reportCacheFrag() {
+ VPrintf(2, "in esan::%s\n", __FUNCTION__);
+ // FIXME: Not yet implemented. We need to iterate over all of the
+ // compilation unit data.
+}
+
} // namespace __esan
OpenPOWER on IntegriCloud