hwasan_interface.h revision 327952
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 17#include <sanitizer/common_interface_defs.h> 18 19#ifdef __cplusplus 20extern "C" { 21#endif 22 // This function may be optionally provided by user and should return 23 // a string containing HWASan runtime options. See asan_flags.h for details. 24 const char* __hwasan_default_options(void); 25 26 void __hwasan_enable_allocator_tagging(void); 27 void __hwasan_disable_allocator_tagging(void); 28 29#ifdef __cplusplus 30} // extern "C" 31#endif 32 33#endif // SANITIZER_HWASAN_INTERFACE_H 34