Path: blob/main/contrib/llvm-project/compiler-rt/lib/rtsan/rtsan_diagnostics.h
213766 views
//===--- rtsan_diagnostics.h - Realtime Sanitizer ---------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8// Part of the RealtimeSanitizer runtime library9//10//===----------------------------------------------------------------------===//1112#pragma once1314#include "sanitizer_common/sanitizer_common.h"15#include "sanitizer_common/sanitizer_internal_defs.h"1617namespace __rtsan {1819enum class DiagnosticsInfoType {20InterceptedCall,21BlockingCall,22};2324struct DiagnosticsInfo {25DiagnosticsInfoType type;26const char *func_name;27__sanitizer::uptr pc;28__sanitizer::uptr bp;29};3031void PrintDiagnostics(const DiagnosticsInfo &info);32void PrintErrorSummary(const DiagnosticsInfo &info,33const __sanitizer::BufferedStackTrace &stack);34} // namespace __rtsan353637