xref: /freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_common_interface.inc (revision 0fca6ea1d4eea4c934cfff25ac9ee8ad6fe95583)
10b57cec5SDimitry Andric//===-- sanitizer_common_interface.inc ------------------------------------===//
20b57cec5SDimitry Andric//
30b57cec5SDimitry Andric// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
40b57cec5SDimitry Andric// See https://llvm.org/LICENSE.txt for license information.
50b57cec5SDimitry Andric// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
60b57cec5SDimitry Andric//
70b57cec5SDimitry Andric//===----------------------------------------------------------------------===//
80b57cec5SDimitry Andric// Sanitizer Common interface list.
90b57cec5SDimitry Andric//===----------------------------------------------------------------------===//
100b57cec5SDimitry AndricINTERFACE_FUNCTION(__sanitizer_acquire_crash_state)
110b57cec5SDimitry AndricINTERFACE_FUNCTION(__sanitizer_annotate_contiguous_container)
12bdd1243dSDimitry AndricINTERFACE_FUNCTION(__sanitizer_annotate_double_ended_contiguous_container)
130b57cec5SDimitry AndricINTERFACE_FUNCTION(__sanitizer_contiguous_container_find_bad_address)
14bdd1243dSDimitry AndricINTERFACE_FUNCTION(
15bdd1243dSDimitry Andric    __sanitizer_double_ended_contiguous_container_find_bad_address)
160b57cec5SDimitry AndricINTERFACE_FUNCTION(__sanitizer_set_death_callback)
170b57cec5SDimitry AndricINTERFACE_FUNCTION(__sanitizer_set_report_path)
180b57cec5SDimitry AndricINTERFACE_FUNCTION(__sanitizer_set_report_fd)
19e8d8bef9SDimitry AndricINTERFACE_FUNCTION(__sanitizer_get_report_path)
200b57cec5SDimitry AndricINTERFACE_FUNCTION(__sanitizer_verify_contiguous_container)
21bdd1243dSDimitry AndricINTERFACE_FUNCTION(__sanitizer_verify_double_ended_contiguous_container)
2268d75effSDimitry AndricINTERFACE_WEAK_FUNCTION(__sanitizer_on_print)
230b57cec5SDimitry AndricINTERFACE_WEAK_FUNCTION(__sanitizer_report_error_summary)
240b57cec5SDimitry AndricINTERFACE_WEAK_FUNCTION(__sanitizer_sandbox_on_notify)
250b57cec5SDimitry Andric// Sanitizer weak hooks
260b57cec5SDimitry AndricINTERFACE_WEAK_FUNCTION(__sanitizer_weak_hook_memcmp)
270b57cec5SDimitry AndricINTERFACE_WEAK_FUNCTION(__sanitizer_weak_hook_strcmp)
280b57cec5SDimitry AndricINTERFACE_WEAK_FUNCTION(__sanitizer_weak_hook_strncmp)
290b57cec5SDimitry AndricINTERFACE_WEAK_FUNCTION(__sanitizer_weak_hook_strstr)
300b57cec5SDimitry Andric// Stacktrace interface.
310b57cec5SDimitry AndricINTERFACE_FUNCTION(__sanitizer_get_module_and_offset_for_pc)
320b57cec5SDimitry AndricINTERFACE_FUNCTION(__sanitizer_symbolize_global)
330b57cec5SDimitry AndricINTERFACE_FUNCTION(__sanitizer_symbolize_pc)
340b57cec5SDimitry Andric// Allocator interface.
3506c3fb27SDimitry AndricINTERFACE_FUNCTION(__sanitizer_get_allocated_begin)
360b57cec5SDimitry AndricINTERFACE_FUNCTION(__sanitizer_get_allocated_size)
3706c3fb27SDimitry AndricINTERFACE_FUNCTION(__sanitizer_get_allocated_size_fast)
380b57cec5SDimitry AndricINTERFACE_FUNCTION(__sanitizer_get_current_allocated_bytes)
390b57cec5SDimitry AndricINTERFACE_FUNCTION(__sanitizer_get_estimated_allocated_size)
400b57cec5SDimitry AndricINTERFACE_FUNCTION(__sanitizer_get_free_bytes)
410b57cec5SDimitry AndricINTERFACE_FUNCTION(__sanitizer_get_heap_size)
420b57cec5SDimitry AndricINTERFACE_FUNCTION(__sanitizer_get_ownership)
430b57cec5SDimitry AndricINTERFACE_FUNCTION(__sanitizer_get_unmapped_bytes)
440b57cec5SDimitry AndricINTERFACE_FUNCTION(__sanitizer_install_malloc_and_free_hooks)
450b57cec5SDimitry AndricINTERFACE_FUNCTION(__sanitizer_purge_allocator)
460b57cec5SDimitry AndricINTERFACE_FUNCTION(__sanitizer_print_memory_profile)
470b57cec5SDimitry AndricINTERFACE_WEAK_FUNCTION(__sanitizer_free_hook)
480b57cec5SDimitry AndricINTERFACE_WEAK_FUNCTION(__sanitizer_malloc_hook)
49*0fca6ea1SDimitry AndricINTERFACE_WEAK_FUNCTION(__sanitizer_ignore_free_hook)
5006c3fb27SDimitry Andric// Memintrinsic functions.
5106c3fb27SDimitry AndricINTERFACE_FUNCTION(__sanitizer_internal_memcpy)
5206c3fb27SDimitry AndricINTERFACE_FUNCTION(__sanitizer_internal_memmove)
5306c3fb27SDimitry AndricINTERFACE_FUNCTION(__sanitizer_internal_memset)
54