1 //===-- msan_chained_origin_depot.h --------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // A storage for chained origins.
11 //===----------------------------------------------------------------------===//
12 #ifndef MSAN_CHAINED_ORIGIN_DEPOT_H
13 #define MSAN_CHAINED_ORIGIN_DEPOT_H
15 #include "sanitizer_common/sanitizer_common.h"
19 StackDepotStats *ChainedOriginDepotGetStats();
20 bool ChainedOriginDepotPut(u32 here_id, u32 prev_id, u32 *new_id);
21 // Retrieves a stored stack trace by the id.
22 u32 ChainedOriginDepotGet(u32 id, u32 *other);
24 void ChainedOriginDepotLockAll();
25 void ChainedOriginDepotUnlockAll();
29 #endif // MSAN_CHAINED_ORIGIN_DEPOT_H