CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
65 lines
2.4 KiB
C++
65 lines
2.4 KiB
C++
//===-- sanitizer/ubsan_interface.h -----------------------------*- C++ -*-===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file is a part of UBSanitizer (UBSan).
|
|
//
|
|
// Public interface header.
|
|
//===----------------------------------------------------------------------===//
|
|
#ifndef SANITIZER_UBSAN_INTERFACE_H
|
|
#define SANITIZER_UBSAN_INTERFACE_H
|
|
|
|
#include <sanitizer/common_interface_defs.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
/// User-provided default option settings.
|
|
///
|
|
/// You can provide your own implementation of this function to return a string
|
|
/// containing UBSan runtime options (for example,
|
|
/// <c>verbosity=1:halt_on_error=0</c>).
|
|
///
|
|
/// \returns Default options string.
|
|
const char *SANITIZER_CDECL __ubsan_default_options(void);
|
|
|
|
/// User-provided default suppressions.
|
|
///
|
|
/// You can provide your own implementation of this function to return a string
|
|
/// containing UBSan suppressions.
|
|
///
|
|
/// \returns Default suppressions string.
|
|
const char *SANITIZER_CDECL __ubsan_default_suppressions(void);
|
|
|
|
/// Set up an interval timer and install a SIGPROF signal handler that crashes
|
|
/// the program if it is stuck in a trap loop generated by -fsanitize-trap-loop.
|
|
///
|
|
/// This function is only intended to be called by single-threaded programs.
|
|
/// Because interval timers are delivered to an arbitrary thread in the process,
|
|
/// it is possible that a thread in a trap loop will never have the signal
|
|
/// delivered to it. For multi-threaded programs, it is recommended to call
|
|
/// OS-specific APIs such as timer_create(CLOCK_THREAD_CPUTIME_ID) on Linux to
|
|
/// install a timer on each thread.
|
|
///
|
|
/// Programs with their own signal handlers can call __ubsan_is_trap_loop from
|
|
/// the signal handler to implement trap loop handling.
|
|
///
|
|
/// This function is currently only supported on Linux/x86.
|
|
void __ubsan_install_trap_loop_detection(void);
|
|
|
|
/// Returns whether uc (actually a pointer to ucontext_t) indicates that the
|
|
/// thread is stuck in a trap loop generated by -fsanitize-trap-loop.
|
|
///
|
|
/// This function is currently only supported on Linux/x86.
|
|
int __ubsan_is_trap_loop(void *uc);
|
|
|
|
#ifdef __cplusplus
|
|
} // extern "C"
|
|
#endif
|
|
|
|
#endif // SANITIZER_UBSAN_INTERFACE_H
|