]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm-project/compiler-rt/lib/scudo/scudo_interface_internal.h
MFV r355890:
[FreeBSD/FreeBSD.git] / contrib / llvm-project / compiler-rt / lib / scudo / scudo_interface_internal.h
1 //===-- scudo_interface_internal.h ------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 ///
9 /// Private Scudo interface header.
10 ///
11 //===----------------------------------------------------------------------===//
12
13 #ifndef SCUDO_INTERFACE_INTERNAL_H_
14 #define SCUDO_INTERFACE_INTERNAL_H_
15
16 #include "sanitizer_common/sanitizer_internal_defs.h"
17
18 using __sanitizer::uptr;
19 using __sanitizer::s32;
20
21 extern "C" {
22 SANITIZER_INTERFACE_ATTRIBUTE SANITIZER_WEAK_ATTRIBUTE
23 const char* __scudo_default_options();
24
25 SANITIZER_INTERFACE_ATTRIBUTE
26 void __scudo_set_rss_limit(uptr LimitMb, s32 HardLimit);
27
28 SANITIZER_INTERFACE_ATTRIBUTE
29 void __scudo_print_stats();
30 }  // extern "C"
31
32 #endif  // SCUDO_INTERFACE_INTERNAL_H_