xref: /freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_common_interface.inc (revision 7fdf597e96a02165cfe22ff357b857d5fa15ed8a)
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//===----------------------------------------------------------------------===//
10INTERFACE_FUNCTION(__sanitizer_acquire_crash_state)
11INTERFACE_FUNCTION(__sanitizer_annotate_contiguous_container)
12INTERFACE_FUNCTION(__sanitizer_annotate_double_ended_contiguous_container)
13INTERFACE_FUNCTION(__sanitizer_contiguous_container_find_bad_address)
14INTERFACE_FUNCTION(
15    __sanitizer_double_ended_contiguous_container_find_bad_address)
16INTERFACE_FUNCTION(__sanitizer_set_death_callback)
17INTERFACE_FUNCTION(__sanitizer_set_report_path)
18INTERFACE_FUNCTION(__sanitizer_set_report_fd)
19INTERFACE_FUNCTION(__sanitizer_get_report_path)
20INTERFACE_FUNCTION(__sanitizer_verify_contiguous_container)
21INTERFACE_FUNCTION(__sanitizer_verify_double_ended_contiguous_container)
22INTERFACE_WEAK_FUNCTION(__sanitizer_on_print)
23INTERFACE_WEAK_FUNCTION(__sanitizer_report_error_summary)
24INTERFACE_WEAK_FUNCTION(__sanitizer_sandbox_on_notify)
25// Sanitizer weak hooks
26INTERFACE_WEAK_FUNCTION(__sanitizer_weak_hook_memcmp)
27INTERFACE_WEAK_FUNCTION(__sanitizer_weak_hook_strcmp)
28INTERFACE_WEAK_FUNCTION(__sanitizer_weak_hook_strncmp)
29INTERFACE_WEAK_FUNCTION(__sanitizer_weak_hook_strstr)
30// Stacktrace interface.
31INTERFACE_FUNCTION(__sanitizer_get_module_and_offset_for_pc)
32INTERFACE_FUNCTION(__sanitizer_symbolize_global)
33INTERFACE_FUNCTION(__sanitizer_symbolize_pc)
34// Allocator interface.
35INTERFACE_FUNCTION(__sanitizer_get_allocated_begin)
36INTERFACE_FUNCTION(__sanitizer_get_allocated_size)
37INTERFACE_FUNCTION(__sanitizer_get_allocated_size_fast)
38INTERFACE_FUNCTION(__sanitizer_get_current_allocated_bytes)
39INTERFACE_FUNCTION(__sanitizer_get_estimated_allocated_size)
40INTERFACE_FUNCTION(__sanitizer_get_free_bytes)
41INTERFACE_FUNCTION(__sanitizer_get_heap_size)
42INTERFACE_FUNCTION(__sanitizer_get_ownership)
43INTERFACE_FUNCTION(__sanitizer_get_unmapped_bytes)
44INTERFACE_FUNCTION(__sanitizer_install_malloc_and_free_hooks)
45INTERFACE_FUNCTION(__sanitizer_purge_allocator)
46INTERFACE_FUNCTION(__sanitizer_print_memory_profile)
47INTERFACE_WEAK_FUNCTION(__sanitizer_free_hook)
48INTERFACE_WEAK_FUNCTION(__sanitizer_malloc_hook)
49INTERFACE_WEAK_FUNCTION(__sanitizer_ignore_free_hook)
50// Memintrinsic functions.
51INTERFACE_FUNCTION(__sanitizer_internal_memcpy)
52INTERFACE_FUNCTION(__sanitizer_internal_memmove)
53INTERFACE_FUNCTION(__sanitizer_internal_memset)
54