Lines Matching refs:VG_
63 if (VG_(clo_xml)) { in DRD_()
64 VG_(printf_xml)(" <trace><text>"); in DRD_()
65 VG_(vprintf_xml)(format, vargs); in DRD_()
66 VG_(printf_xml)("</text></trace>\n"); in DRD_()
68 VG_(vmessage)(Vg_UserMsg, format, vargs); in DRD_()
69 VG_(message)(Vg_UserMsg, "\n"); in DRD_()
78 if (VG_(clo_xml)) { in DRD_()
79 VG_(printf_xml)(" <trace><text>"); in DRD_()
80 VG_(vprintf_xml)(format, vargs); in DRD_()
81 VG_(printf_xml)("</text>\n"); in DRD_()
83 VG_(vmessage)(Vg_UserMsg, format, vargs); in DRD_()
84 VG_(message)(Vg_UserMsg, "\n"); in DRD_()
86 VG_(get_and_pp_StackTrace)(VG_(get_running_tid)(), VG_(clo_backtrace_size)); in DRD_()
88 if (VG_(clo_xml)) in DRD_()
89 VG_(printf_xml)(" </trace>\n"); in DRD_()
100 if (VG_(clo_xml)) in print_err_detail()
101 VG_(vprintf_xml)(format, vargs); in print_err_detail()
103 VG_(vmessage)(Vg_UserMsg, format, vargs); in print_err_detail()
138 if (VG_(clo_xml)) { in first_observed()
143 VG_(pp_ExeContext)(cl->any.first_observed_at); in first_observed()
148 VG_(pp_ExeContext)(cl->any.first_observed_at); in first_observed()
157 const Bool xml = VG_(clo_xml); in drd_report_data_race()
166 = VG_(newXA)( VG_(malloc), "drd.error.drdr2.1", in drd_report_data_race()
167 VG_(free), sizeof(HChar) ); in drd_report_data_race()
169 = VG_(newXA)( VG_(malloc), "drd.error.drdr2.2", in drd_report_data_race()
170 VG_(free), sizeof(HChar) ); in drd_report_data_race()
176 (void) VG_(get_data_description)(descr1, descr2, dri->addr); in drd_report_data_race()
183 if (0 == VG_(strlen)( VG_(indexXA)( descr1, 0 ))) { in drd_report_data_race()
184 VG_(deleteXA)( descr1 ); in drd_report_data_race()
187 if (0 == VG_(strlen)( VG_(indexXA)( descr2, 0 ))) { in drd_report_data_race()
188 VG_(deleteXA)( descr2 ); in drd_report_data_race()
206 VG_(pp_ExeContext)(VG_(get_error_where)(err)); in drd_report_data_race()
208 print_err_detail("%s%s\n", indent, (HChar*)VG_(indexXA)(descr1, 0)); in drd_report_data_race()
210 print_err_detail("%s%s\n", indent, (HChar*)VG_(indexXA)(descr2, 0)); in drd_report_data_race()
220 VG_(pp_ExeContext)(ai.lastchange); in drd_report_data_race()
227 sect_kind = VG_(DebugInfo_sect_kind)(§_name, dri->addr); in drd_report_data_race()
230 auxwhat_prefix, VG_(pp_SectKind)(sect_kind), in drd_report_data_race()
245 VG_(deleteXA)(descr2); in drd_report_data_race()
247 VG_(deleteXA)(descr1); in drd_report_data_race()
260 tl_assert(VG_(get_error_kind)(e1) == VG_(get_error_kind)(e2)); in drd_compare_error_contexts()
262 switch (VG_(get_error_kind)(e1)) in drd_compare_error_contexts()
266 const DataRaceErrInfo* const dri1 = VG_(get_error_extra)(e1); in drd_compare_error_contexts()
267 const DataRaceErrInfo* const dri2 = VG_(get_error_extra)(e2); in drd_compare_error_contexts()
273 const MutexErrInfo* const mei1 = VG_(get_error_extra)(e1); in drd_compare_error_contexts()
274 const MutexErrInfo* const mei2 = VG_(get_error_extra)(e2); in drd_compare_error_contexts()
291 err_extra = VG_(get_error_extra)(e); in drd_tool_error_before_pp()
293 if (err_extra && *err_extra != s_last_tid_printed && !VG_(clo_xml)) { in drd_tool_error_before_pp()
294 VG_(umsg)("%s:\n", DRD_(thread_get_name)(*err_extra)); in drd_tool_error_before_pp()
302 const Bool xml = VG_(clo_xml); in drd_tool_error_pp()
307 VG_(printf_xml)( " <kind>%pS</kind>\n", drd_get_error_name(e)); in drd_tool_error_pp()
309 switch (VG_(get_error_kind)(e)) in drd_tool_error_pp()
312 drd_report_data_race(e, VG_(get_error_extra)(e)); in drd_tool_error_pp()
316 MutexErrInfo* p = (MutexErrInfo*)(VG_(get_error_extra)(e)); in drd_tool_error_pp()
320 "%s\n", what_prefix, VG_(get_error_string)(e), in drd_tool_error_pp()
326 VG_(pp_ExeContext)(VG_(get_error_where)(e)); in drd_tool_error_pp()
331 CondErrInfo* cdei =(CondErrInfo*)(VG_(get_error_extra)(e)); in drd_tool_error_pp()
333 VG_(get_error_string)(e), cdei->cond, what_suffix); in drd_tool_error_pp()
334 VG_(pp_ExeContext)(VG_(get_error_where)(e)); in drd_tool_error_pp()
339 CondDestrErrInfo* cdi = (CondDestrErrInfo*)(VG_(get_error_extra)(e)); in drd_tool_error_pp()
341 what_prefix, VG_(get_error_string)(e), cdi->cond, in drd_tool_error_pp()
343 VG_(pp_ExeContext)(VG_(get_error_where)(e)); in drd_tool_error_pp()
348 CondRaceErrInfo* cei = (CondRaceErrInfo*)(VG_(get_error_extra)(e)); in drd_tool_error_pp()
353 VG_(pp_ExeContext)(VG_(get_error_where)(e)); in drd_tool_error_pp()
359 CondWaitErrInfo* cwei = (CondWaitErrInfo*)(VG_(get_error_extra)(e)); in drd_tool_error_pp()
361 " 0x%lx%s\n", what_prefix, VG_(get_error_string)(e), in drd_tool_error_pp()
363 VG_(pp_ExeContext)(VG_(get_error_where)(e)); in drd_tool_error_pp()
370 SemaphoreErrInfo* sei = (SemaphoreErrInfo*)(VG_(get_error_extra)(e)); in drd_tool_error_pp()
373 VG_(get_error_string)(e), sei->semaphore, what_suffix); in drd_tool_error_pp()
374 VG_(pp_ExeContext)(VG_(get_error_where)(e)); in drd_tool_error_pp()
379 BarrierErrInfo* bei = (BarrierErrInfo*)(VG_(get_error_extra)(e)); in drd_tool_error_pp()
382 VG_(get_error_string)(e), bei->barrier, what_suffix); in drd_tool_error_pp()
383 VG_(pp_ExeContext)(VG_(get_error_where)(e)); in drd_tool_error_pp()
389 VG_(pp_ExeContext)(bei->other_context); in drd_tool_error_pp()
397 RwlockErrInfo* p = (RwlockErrInfo*)(VG_(get_error_extra)(e)); in drd_tool_error_pp()
400 VG_(get_error_string)(e), p->rwlock, what_suffix); in drd_tool_error_pp()
401 VG_(pp_ExeContext)(VG_(get_error_where)(e)); in drd_tool_error_pp()
406 HoldtimeErrInfo* p =(HoldtimeErrInfo*)(VG_(get_error_extra)(e)); in drd_tool_error_pp()
413 VG_(pp_ExeContext)(p->acquired_at); in drd_tool_error_pp()
418 VG_(get_error_string)(e), p->synchronization_object, in drd_tool_error_pp()
420 VG_(pp_ExeContext)(VG_(get_error_where)(e)); in drd_tool_error_pp()
425 GenericErrInfo* gei = (GenericErrInfo*)(VG_(get_error_extra)(e)); in drd_tool_error_pp()
426 print_err_detail("%s%s%s\n", what_prefix, VG_(get_error_string)(e), in drd_tool_error_pp()
428 VG_(pp_ExeContext)(VG_(get_error_where)(e)); in drd_tool_error_pp()
434 InvalidThreadIdInfo* iti =(InvalidThreadIdInfo*)(VG_(get_error_extra)(e)); in drd_tool_error_pp()
435 print_err_detail("%s%s 0x%llx%s\n", what_prefix, VG_(get_error_string)(e), in drd_tool_error_pp()
437 VG_(pp_ExeContext)(VG_(get_error_where)(e)); in drd_tool_error_pp()
441 UnimpClReqInfo* uicr =(UnimpClReqInfo*)(VG_(get_error_extra)(e)); in drd_tool_error_pp()
445 VG_(pp_ExeContext)(VG_(get_error_where)(e)); in drd_tool_error_pp()
449 UnimpClReqInfo* uicr =(UnimpClReqInfo*)(VG_(get_error_extra)(e)); in drd_tool_error_pp()
453 VG_(pp_ExeContext)(VG_(get_error_where)(e)); in drd_tool_error_pp()
457 print_err_detail("%s%s%s\n", what_prefix, VG_(get_error_string)(e), in drd_tool_error_pp()
459 VG_(pp_ExeContext)(VG_(get_error_where)(e)); in drd_tool_error_pp()
466 switch (VG_(get_error_kind)(e)) in drd_tool_error_update_extra()
514 if (VG_(strcmp)(name, STR_DataRaceErr) == 0) in drd_is_recognized_suppression()
516 else if (VG_(strcmp)(name, STR_MutexErr) == 0) in drd_is_recognized_suppression()
518 else if (VG_(strcmp)(name, STR_CondErr) == 0) in drd_is_recognized_suppression()
520 else if (VG_(strcmp)(name, STR_CondDestrErr) == 0) in drd_is_recognized_suppression()
522 else if (VG_(strcmp)(name, STR_CondRaceErr) == 0) in drd_is_recognized_suppression()
524 else if (VG_(strcmp)(name, STR_CondWaitErr) == 0) in drd_is_recognized_suppression()
526 else if (VG_(strcmp)(name, STR_SemaphoreErr) == 0) in drd_is_recognized_suppression()
528 else if (VG_(strcmp)(name, STR_BarrierErr) == 0) in drd_is_recognized_suppression()
530 else if (VG_(strcmp)(name, STR_RwlockErr) == 0) in drd_is_recognized_suppression()
532 else if (VG_(strcmp)(name, STR_HoldtimeErr) == 0) in drd_is_recognized_suppression()
534 else if (VG_(strcmp)(name, STR_GenericErr) == 0) in drd_is_recognized_suppression()
536 else if (VG_(strcmp)(name, STR_InvalidThreadId) == 0) in drd_is_recognized_suppression()
538 else if (VG_(strcmp)(name, STR_UnimpHgClReq) == 0) in drd_is_recognized_suppression()
540 else if (VG_(strcmp)(name, STR_UnimpDrdClReq) == 0) in drd_is_recognized_suppression()
545 VG_(set_supp_kind)(supp, skind); in drd_is_recognized_suppression()
570 return VG_(get_supp_kind)(supp) == VG_(get_error_kind)(e); in drd_error_matches_suppression()
575 switch (VG_(get_error_kind)(e)) in drd_get_error_name()
631 VG_(needs_tool_errors)(drd_compare_error_contexts, in DRD_()