more cleanup
[m6w6/libmemcached] / contrib / bin / memaslap / ms_stats.c
index dce5ed8bec49ad94f58d185528a873a7f15e6888..4a82a8db3609e8f641956bf3e0b20c66ea1f81d3 100644 (file)
@@ -110,6 +110,9 @@ void ms_record_event(ms_stat_t *stat, uint64_t total_time, int get_miss) {
  *
  * @return total events recorded
  */
+#if HAVE_TSAN
+__attribute__ (( no_sanitize_thread, no_sanitize("thread")))
+#endif
 static uint64_t ms_get_events(ms_stat_t *stat) {
   uint64_t events = 0;
 
@@ -182,6 +185,9 @@ void ms_dump_stats(ms_stat_t *stat) {
  * @param freq, statistic frequency
  * @param obj_size, average object size
  */
+#if HAVE_TSAN
+__attribute__ (( no_sanitize_thread, no_sanitize("thread")))
+#endif
 void ms_dump_format_stats(ms_stat_t *stat, int run_time, int freq, int obj_size) {
   uint64_t events = 0;
   double global_average = 0;