hwasan_interface.h 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. //===-- sanitizer/asan_interface.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. // This file is a part of HWAddressSanitizer.
  11. //
  12. // Public interface header.
  13. //===----------------------------------------------------------------------===//
  14. #ifndef SANITIZER_HWASAN_INTERFACE_H
  15. #define SANITIZER_HWASAN_INTERFACE_H
  16. #include <sanitizer/common_interface_defs.h>
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. // This function may be optionally provided by user and should return
  21. // a string containing HWASan runtime options. See asan_flags.h for details.
  22. const char* __hwasan_default_options(void);
  23. void __hwasan_enable_allocator_tagging(void);
  24. void __hwasan_disable_allocator_tagging(void);
  25. #ifdef __cplusplus
  26. } // extern "C"
  27. #endif
  28. #endif // SANITIZER_HWASAN_INTERFACE_H