summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_stackdepot.h
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2012-12-26 06:30:02 +0000
committerKostya Serebryany <kcc@google.com>2012-12-26 06:30:02 +0000
commit9e3bd38388a7c182db57f6e3fc0943e6d12f012e (patch)
tree5c14af17f552d06189b6982d82f858bbb158f802 /lib/sanitizer_common/sanitizer_stackdepot.h
parent111a0716d714aa2597e333d160cf1f271695bab7 (diff)
[asan] asan_allocator2: by default use the StackDepot to store the stack traces instead of storing them in the redzones
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@171099 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_stackdepot.h')
-rw-r--r--lib/sanitizer_common/sanitizer_stackdepot.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/sanitizer_common/sanitizer_stackdepot.h b/lib/sanitizer_common/sanitizer_stackdepot.h
index 98db08a9f..49e6669dd 100644
--- a/lib/sanitizer_common/sanitizer_stackdepot.h
+++ b/lib/sanitizer_common/sanitizer_stackdepot.h
@@ -24,6 +24,13 @@ u32 StackDepotPut(const uptr *stack, uptr size);
// Retrieves a stored stack trace by the id.
const uptr *StackDepotGet(u32 id, uptr *size);
+struct StackDepotStats {
+ uptr n_uniq_ids;
+ uptr mapped;
+};
+
+StackDepotStats *StackDepotGetStats();
+
} // namespace __sanitizer
#endif // SANITIZER_STACKDEPOT_H