From bcdfb408444c657422499a2274eb377879588e89 Mon Sep 17 00:00:00 2001 From: Derek Bruening Date: Sat, 9 Jul 2016 04:13:25 +0000 Subject: [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 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@274964 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/esan/cache_frag.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/esan/cache_frag.cpp') diff --git a/lib/esan/cache_frag.cpp b/lib/esan/cache_frag.cpp index 343abfcd5..a3e612dac 100644 --- a/lib/esan/cache_frag.cpp +++ b/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 -- cgit v1.2.3