//===--- rtsan_stats.cpp - Realtime Sanitizer -------------------*- 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 // //===----------------------------------------------------------------------===// // // Part of the RealtimeSanitizer runtime library // //===----------------------------------------------------------------------===// #include "rtsan/rtsan_stats.h" #include "sanitizer_common/sanitizer_atomic.h" #include "sanitizer_common/sanitizer_common.h" usingnamespace__sanitizer; usingnamespace__rtsan; static atomic_uint32_t rtsan_total_error_count{ … }; static atomic_uint32_t rtsan_unique_error_count{ … }; void __rtsan::IncrementTotalErrorCount() { … } void __rtsan::IncrementUniqueErrorCount() { … } static u32 GetTotalErrorCount() { … } static u32 GetUniqueErrorCount() { … } void __rtsan::PrintStatisticsSummary() { … }