]> git.proxmox.com Git - rustc.git/blame - src/compiler-rt/lib/msan/msan_chained_origin_depot.h
New upstream version 1.19.0+dfsg3
[rustc.git] / src / compiler-rt / lib / msan / msan_chained_origin_depot.h
CommitLineData
92a42be0
SL
1//===-- msan_chained_origin_depot.h --------------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// A storage for chained origins.
11//===----------------------------------------------------------------------===//
12#ifndef MSAN_CHAINED_ORIGIN_DEPOT_H
13#define MSAN_CHAINED_ORIGIN_DEPOT_H
14
15#include "sanitizer_common/sanitizer_common.h"
16
17namespace __msan {
18
19StackDepotStats *ChainedOriginDepotGetStats();
20bool ChainedOriginDepotPut(u32 here_id, u32 prev_id, u32 *new_id);
21// Retrieves a stored stack trace by the id.
22u32 ChainedOriginDepotGet(u32 id, u32 *other);
23
24void ChainedOriginDepotLockAll();
25void ChainedOriginDepotUnlockAll();
26
27} // namespace __msan
28
29#endif // MSAN_CHAINED_ORIGIN_DEPOT_H