[compiler-rt] [rtsan][NFC] Remove rtsan_ prefix from stats variables (PR #112762)

Chris Apple via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 17 11:55:57 PDT 2024


https://github.com/cjappl created https://github.com/llvm/llvm-project/pull/112762

None

>From ee2fe12702b5486d48084626b0b8957749804604 Mon Sep 17 00:00:00 2001
From: Chris Apple <cja-private at pm.me>
Date: Thu, 17 Oct 2024 11:52:03 -0700
Subject: [PATCH] [rtsan][NFC] Remove rtsan_ prefix from stats variables

---
 compiler-rt/lib/rtsan/rtsan_stats.cpp | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/compiler-rt/lib/rtsan/rtsan_stats.cpp b/compiler-rt/lib/rtsan/rtsan_stats.cpp
index 1562b73cf94cd8..277182a7abc840 100644
--- a/compiler-rt/lib/rtsan/rtsan_stats.cpp
+++ b/compiler-rt/lib/rtsan/rtsan_stats.cpp
@@ -19,32 +19,32 @@
 using namespace __sanitizer;
 using namespace __rtsan;
 
-static atomic_uint32_t rtsan_total_error_count{0};
-static atomic_uint32_t rtsan_unique_error_count{0};
-static atomic_uint32_t rtsan_suppressed_count{0};
+static atomic_uint32_t total_error_count{0};
+static atomic_uint32_t unique_error_count{0};
+static atomic_uint32_t suppressed_count{0};
 
 void __rtsan::IncrementTotalErrorCount() {
-  atomic_fetch_add(&rtsan_total_error_count, 1, memory_order_relaxed);
+  atomic_fetch_add(&total_error_count, 1, memory_order_relaxed);
 }
 
 void __rtsan::IncrementUniqueErrorCount() {
-  atomic_fetch_add(&rtsan_unique_error_count, 1, memory_order_relaxed);
+  atomic_fetch_add(&unique_error_count, 1, memory_order_relaxed);
 }
 
 static u32 GetTotalErrorCount() {
-  return atomic_load(&rtsan_total_error_count, memory_order_relaxed);
+  return atomic_load(&total_error_count, memory_order_relaxed);
 }
 
 static u32 GetUniqueErrorCount() {
-  return atomic_load(&rtsan_unique_error_count, memory_order_relaxed);
+  return atomic_load(&unique_error_count, memory_order_relaxed);
 }
 
 void __rtsan::IncrementSuppressedCount() {
-  atomic_fetch_add(&rtsan_suppressed_count, 1, memory_order_relaxed);
+  atomic_fetch_add(&suppressed_count, 1, memory_order_relaxed);
 }
 
 static u32 GetSuppressedCount() {
-  return atomic_load(&rtsan_suppressed_count, memory_order_relaxed);
+  return atomic_load(&suppressed_count, memory_order_relaxed);
 }
 
 void __rtsan::PrintStatisticsSummary() {



More information about the llvm-commits mailing list