scudo_interface_internal.h 984 B

1234567891011121314151617181920212223242526272829303132
  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. #ifndef SCUDO_INTERFACE_INTERNAL_H_
  13. #define SCUDO_INTERFACE_INTERNAL_H_
  14. #include "sanitizer_common/sanitizer_internal_defs.h"
  15. using __sanitizer::uptr;
  16. using __sanitizer::s32;
  17. extern "C" {
  18. SANITIZER_INTERFACE_ATTRIBUTE SANITIZER_WEAK_ATTRIBUTE
  19. const char* __scudo_default_options();
  20. SANITIZER_INTERFACE_ATTRIBUTE
  21. void __scudo_set_rss_limit(uptr LimitMb, s32 HardLimit);
  22. SANITIZER_INTERFACE_ATTRIBUTE
  23. void __scudo_print_stats();
  24. } // extern "C"
  25. #endif // SCUDO_INTERFACE_INTERNAL_H_