|
19 | 19 | using namespace __sanitizer; |
20 | 20 | using namespace __rtsan; |
21 | 21 |
|
22 | | -static atomic_uint32_t rtsan_total_error_count{0}; |
23 | | -static atomic_uint32_t rtsan_unique_error_count{0}; |
24 | | -static atomic_uint32_t rtsan_suppressed_count{0}; |
| 22 | +static atomic_uint32_t total_error_count{0}; |
| 23 | +static atomic_uint32_t unique_error_count{0}; |
| 24 | +static atomic_uint32_t suppressed_count{0}; |
25 | 25 |
|
26 | 26 | void __rtsan::IncrementTotalErrorCount() { |
27 | | - atomic_fetch_add(&rtsan_total_error_count, 1, memory_order_relaxed); |
| 27 | + atomic_fetch_add(&total_error_count, 1, memory_order_relaxed); |
28 | 28 | } |
29 | 29 |
|
30 | 30 | void __rtsan::IncrementUniqueErrorCount() { |
31 | | - atomic_fetch_add(&rtsan_unique_error_count, 1, memory_order_relaxed); |
| 31 | + atomic_fetch_add(&unique_error_count, 1, memory_order_relaxed); |
32 | 32 | } |
33 | 33 |
|
34 | 34 | static u32 GetTotalErrorCount() { |
35 | | - return atomic_load(&rtsan_total_error_count, memory_order_relaxed); |
| 35 | + return atomic_load(&total_error_count, memory_order_relaxed); |
36 | 36 | } |
37 | 37 |
|
38 | 38 | static u32 GetUniqueErrorCount() { |
39 | | - return atomic_load(&rtsan_unique_error_count, memory_order_relaxed); |
| 39 | + return atomic_load(&unique_error_count, memory_order_relaxed); |
40 | 40 | } |
41 | 41 |
|
42 | 42 | void __rtsan::IncrementSuppressedCount() { |
43 | | - atomic_fetch_add(&rtsan_suppressed_count, 1, memory_order_relaxed); |
| 43 | + atomic_fetch_add(&suppressed_count, 1, memory_order_relaxed); |
44 | 44 | } |
45 | 45 |
|
46 | 46 | static u32 GetSuppressedCount() { |
47 | | - return atomic_load(&rtsan_suppressed_count, memory_order_relaxed); |
| 47 | + return atomic_load(&suppressed_count, memory_order_relaxed); |
48 | 48 | } |
49 | 49 |
|
50 | 50 | void __rtsan::PrintStatisticsSummary() { |
|
0 commit comments