diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2013-09-21 21:41:08 +0000 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2013-09-21 21:41:08 +0000 |
commit | 821acfaccc7d11b987e2882b022e8d167b0c8a54 (patch) | |
tree | 7531d3ca18a6a33b70d08c3051abc76622aa62b2 /lib/sanitizer_common/sanitizer_procmaps.h | |
parent | 6c21e11b36bb5ebf625463ca6724cf936ef0dc39 (diff) | |
download | compiler-rt-821acfaccc7d11b987e2882b022e8d167b0c8a54.tar.gz |
tsan: allow to obtain code range for a particular module
this is required to ignore interceptors when called from the module
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191149 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_procmaps.h')
-rw-r--r-- | lib/sanitizer_common/sanitizer_procmaps.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/sanitizer_common/sanitizer_procmaps.h b/lib/sanitizer_common/sanitizer_procmaps.h index ed281997f..65bcac633 100644 --- a/lib/sanitizer_common/sanitizer_procmaps.h +++ b/lib/sanitizer_common/sanitizer_procmaps.h @@ -126,6 +126,9 @@ typedef void (*fill_profile_f)(uptr start, uptr rss, bool file, // |stats_size| elements. void GetMemoryProfile(fill_profile_f cb, uptr *stats, uptr stats_size); +// Returns code range for the specified module. +bool GetCodeRangeForFile(const char *module, uptr *start, uptr *end); + #endif // SANITIZER_WINDOWS } // namespace __sanitizer |