| 1 | //===-- sanitizer_common_interface.inc ------------------------------------===// |
| 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 | // Sanitizer Common interface list. |
| 9 | //===----------------------------------------------------------------------===// |
| 10 | INTERFACE_FUNCTION(__sanitizer_acquire_crash_state) |
| 11 | INTERFACE_FUNCTION(__sanitizer_annotate_contiguous_container) |
| 12 | INTERFACE_FUNCTION(__sanitizer_annotate_double_ended_contiguous_container) |
| 13 | INTERFACE_FUNCTION(__sanitizer_copy_contiguous_container_annotations) |
| 14 | INTERFACE_FUNCTION(__sanitizer_contiguous_container_find_bad_address) |
| 15 | INTERFACE_FUNCTION( |
| 16 | __sanitizer_double_ended_contiguous_container_find_bad_address) |
| 17 | INTERFACE_FUNCTION(__sanitizer_set_death_callback) |
| 18 | INTERFACE_FUNCTION(__sanitizer_set_report_path) |
| 19 | INTERFACE_FUNCTION(__sanitizer_set_report_fd) |
| 20 | INTERFACE_FUNCTION(__sanitizer_get_report_path) |
| 21 | INTERFACE_FUNCTION(__sanitizer_verify_contiguous_container) |
| 22 | INTERFACE_FUNCTION(__sanitizer_verify_double_ended_contiguous_container) |
| 23 | INTERFACE_WEAK_FUNCTION(__sanitizer_on_print) |
| 24 | INTERFACE_WEAK_FUNCTION(__sanitizer_report_error_summary) |
| 25 | INTERFACE_WEAK_FUNCTION(__sanitizer_sandbox_on_notify) |
| 26 | INTERFACE_WEAK_FUNCTION(__sanitizer_get_dtls_size) |
| 27 | // Sanitizer weak hooks |
| 28 | INTERFACE_WEAK_FUNCTION(__sanitizer_weak_hook_memcmp) |
| 29 | INTERFACE_WEAK_FUNCTION(__sanitizer_weak_hook_strcmp) |
| 30 | INTERFACE_WEAK_FUNCTION(__sanitizer_weak_hook_strncmp) |
| 31 | INTERFACE_WEAK_FUNCTION(__sanitizer_weak_hook_strstr) |
| 32 | // Stacktrace interface. |
| 33 | INTERFACE_FUNCTION(__sanitizer_get_module_and_offset_for_pc) |
| 34 | INTERFACE_FUNCTION(__sanitizer_symbolize_global) |
| 35 | INTERFACE_FUNCTION(__sanitizer_symbolize_pc) |
| 36 | // Allocator interface. |
| 37 | INTERFACE_FUNCTION(__sanitizer_get_allocated_begin) |
| 38 | INTERFACE_FUNCTION(__sanitizer_get_allocated_size) |
| 39 | INTERFACE_FUNCTION(__sanitizer_get_allocated_size_fast) |
| 40 | INTERFACE_FUNCTION(__sanitizer_get_current_allocated_bytes) |
| 41 | INTERFACE_FUNCTION(__sanitizer_get_estimated_allocated_size) |
| 42 | INTERFACE_FUNCTION(__sanitizer_get_free_bytes) |
| 43 | INTERFACE_FUNCTION(__sanitizer_get_heap_size) |
| 44 | INTERFACE_FUNCTION(__sanitizer_get_ownership) |
| 45 | INTERFACE_FUNCTION(__sanitizer_get_unmapped_bytes) |
| 46 | INTERFACE_FUNCTION(__sanitizer_install_malloc_and_free_hooks) |
| 47 | INTERFACE_FUNCTION(__sanitizer_purge_allocator) |
| 48 | INTERFACE_FUNCTION(__sanitizer_print_memory_profile) |
| 49 | INTERFACE_WEAK_FUNCTION(__sanitizer_free_hook) |
| 50 | INTERFACE_WEAK_FUNCTION(__sanitizer_malloc_hook) |
| 51 | INTERFACE_WEAK_FUNCTION(__sanitizer_ignore_free_hook) |
| 52 | // Memintrinsic functions. |
| 53 | INTERFACE_FUNCTION(__sanitizer_internal_memcpy) |
| 54 | INTERFACE_FUNCTION(__sanitizer_internal_memmove) |
| 55 | INTERFACE_FUNCTION(__sanitizer_internal_memset) |
| 56 | |
| 57 | #if SANITIZER_WINDOWS |
| 58 | INTERFACE_FUNCTION(__sanitizer_override_function) |
| 59 | INTERFACE_FUNCTION(__sanitizer_override_function_by_addr) |
| 60 | INTERFACE_FUNCTION(__sanitizer_register_weak_function) |
| 61 | #endif |