• Home
  • Raw
  • Download

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()
156 const Bool xml = VG_(clo_xml); in drd_report_data_race()
165 = VG_(newXA)( VG_(malloc), "drd.error.drdr2.1", in drd_report_data_race()
166 VG_(free), sizeof(HChar) ); in drd_report_data_race()
168 = VG_(newXA)( VG_(malloc), "drd.error.drdr2.2", in drd_report_data_race()
169 VG_(free), sizeof(HChar) ); in drd_report_data_race()
177 (void) VG_(get_data_description)(descr1, descr2, dri->addr); in drd_report_data_race()
184 if (0 == VG_(strlen)( VG_(indexXA)( descr1, 0 ))) { in drd_report_data_race()
185 VG_(deleteXA)( descr1 ); in drd_report_data_race()
188 if (0 == VG_(strlen)( VG_(indexXA)( descr2, 0 ))) { in drd_report_data_race()
189 VG_(deleteXA)( descr2 ); in drd_report_data_race()
207 VG_(pp_ExeContext)(VG_(get_error_where)(err)); in drd_report_data_race()
209 print_err_detail("%s%s\n", indent, (HChar*)VG_(indexXA)(descr1, 0)); in drd_report_data_race()
211 print_err_detail("%s%s\n", indent, (HChar*)VG_(indexXA)(descr2, 0)); in drd_report_data_race()
221 VG_(pp_ExeContext)(ai.lastchange); in drd_report_data_race()
228 sect_kind = VG_(DebugInfo_sect_kind)(sect_name, sizeof(sect_name), in drd_report_data_race()
232 auxwhat_prefix, VG_(pp_SectKind)(sect_kind), in drd_report_data_race()
247 VG_(deleteXA)(descr2); in drd_report_data_race()
249 VG_(deleteXA)(descr1); in drd_report_data_race()
261 tl_assert(VG_(get_error_kind)(e1) == VG_(get_error_kind)(e2)); in drd_compare_error_contexts()
263 switch (VG_(get_error_kind)(e1)) in drd_compare_error_contexts()
267 const DataRaceErrInfo* const dri1 = VG_(get_error_extra)(e1); in drd_compare_error_contexts()
268 const DataRaceErrInfo* const dri2 = VG_(get_error_extra)(e2); in drd_compare_error_contexts()
274 const MutexErrInfo* const mei1 = VG_(get_error_extra)(e1); in drd_compare_error_contexts()
275 const MutexErrInfo* const mei2 = VG_(get_error_extra)(e2); in drd_compare_error_contexts()
292 err_extra = VG_(get_error_extra)(e); in drd_tool_error_before_pp()
294 if (err_extra && *err_extra != s_last_tid_printed && !VG_(clo_xml)) { in drd_tool_error_before_pp()
295 VG_(umsg)("%s:\n", DRD_(thread_get_name)(*err_extra)); in drd_tool_error_before_pp()
303 const Bool xml = VG_(clo_xml); in drd_tool_error_pp()
308 VG_(printf_xml)( " <kind>%pS</kind>\n", drd_get_error_name(e)); in drd_tool_error_pp()
310 switch (VG_(get_error_kind)(e)) in drd_tool_error_pp()
313 drd_report_data_race(e, VG_(get_error_extra)(e)); in drd_tool_error_pp()
317 MutexErrInfo* p = (MutexErrInfo*)(VG_(get_error_extra)(e)); in drd_tool_error_pp()
321 "%s\n", what_prefix, VG_(get_error_string)(e), in drd_tool_error_pp()
327 VG_(pp_ExeContext)(VG_(get_error_where)(e)); in drd_tool_error_pp()
332 CondErrInfo* cdei =(CondErrInfo*)(VG_(get_error_extra)(e)); in drd_tool_error_pp()
334 VG_(get_error_string)(e), cdei->cond, what_suffix); in drd_tool_error_pp()
335 VG_(pp_ExeContext)(VG_(get_error_where)(e)); in drd_tool_error_pp()
340 CondDestrErrInfo* cdi = (CondDestrErrInfo*)(VG_(get_error_extra)(e)); in drd_tool_error_pp()
342 what_prefix, VG_(get_error_string)(e), cdi->cond, in drd_tool_error_pp()
344 VG_(pp_ExeContext)(VG_(get_error_where)(e)); in drd_tool_error_pp()
349 CondRaceErrInfo* cei = (CondRaceErrInfo*)(VG_(get_error_extra)(e)); in drd_tool_error_pp()
354 VG_(pp_ExeContext)(VG_(get_error_where)(e)); in drd_tool_error_pp()
360 CondWaitErrInfo* cwei = (CondWaitErrInfo*)(VG_(get_error_extra)(e)); in drd_tool_error_pp()
362 " 0x%lx%s\n", what_prefix, VG_(get_error_string)(e), in drd_tool_error_pp()
364 VG_(pp_ExeContext)(VG_(get_error_where)(e)); in drd_tool_error_pp()
371 SemaphoreErrInfo* sei = (SemaphoreErrInfo*)(VG_(get_error_extra)(e)); in drd_tool_error_pp()
374 VG_(get_error_string)(e), sei->semaphore, what_suffix); in drd_tool_error_pp()
375 VG_(pp_ExeContext)(VG_(get_error_where)(e)); in drd_tool_error_pp()
380 BarrierErrInfo* bei = (BarrierErrInfo*)(VG_(get_error_extra)(e)); in drd_tool_error_pp()
383 VG_(get_error_string)(e), bei->barrier, what_suffix); in drd_tool_error_pp()
384 VG_(pp_ExeContext)(VG_(get_error_where)(e)); in drd_tool_error_pp()
390 VG_(pp_ExeContext)(bei->other_context); in drd_tool_error_pp()
398 RwlockErrInfo* p = (RwlockErrInfo*)(VG_(get_error_extra)(e)); in drd_tool_error_pp()
401 VG_(get_error_string)(e), p->rwlock, what_suffix); in drd_tool_error_pp()
402 VG_(pp_ExeContext)(VG_(get_error_where)(e)); in drd_tool_error_pp()
407 HoldtimeErrInfo* p =(HoldtimeErrInfo*)(VG_(get_error_extra)(e)); in drd_tool_error_pp()
414 VG_(pp_ExeContext)(p->acquired_at); in drd_tool_error_pp()
419 VG_(get_error_string)(e), p->synchronization_object, in drd_tool_error_pp()
421 VG_(pp_ExeContext)(VG_(get_error_where)(e)); in drd_tool_error_pp()
426 GenericErrInfo* gei = (GenericErrInfo*)(VG_(get_error_extra)(e)); in drd_tool_error_pp()
427 print_err_detail("%s%s%s\n", what_prefix, VG_(get_error_string)(e), in drd_tool_error_pp()
429 VG_(pp_ExeContext)(VG_(get_error_where)(e)); in drd_tool_error_pp()
435 InvalidThreadIdInfo* iti =(InvalidThreadIdInfo*)(VG_(get_error_extra)(e)); in drd_tool_error_pp()
436 print_err_detail("%s%s 0x%llx%s\n", what_prefix, VG_(get_error_string)(e), in drd_tool_error_pp()
438 VG_(pp_ExeContext)(VG_(get_error_where)(e)); in drd_tool_error_pp()
442 UnimpClReqInfo* uicr =(UnimpClReqInfo*)(VG_(get_error_extra)(e)); in drd_tool_error_pp()
446 VG_(pp_ExeContext)(VG_(get_error_where)(e)); in drd_tool_error_pp()
450 UnimpClReqInfo* uicr =(UnimpClReqInfo*)(VG_(get_error_extra)(e)); in drd_tool_error_pp()
454 VG_(pp_ExeContext)(VG_(get_error_where)(e)); in drd_tool_error_pp()
458 print_err_detail("%s%s%s\n", what_prefix, VG_(get_error_string)(e), in drd_tool_error_pp()
460 VG_(pp_ExeContext)(VG_(get_error_where)(e)); in drd_tool_error_pp()
467 switch (VG_(get_error_kind)(e)) in drd_tool_error_update_extra()
515 if (VG_(strcmp)(name, STR_DataRaceErr) == 0) in drd_is_recognized_suppression()
517 else if (VG_(strcmp)(name, STR_MutexErr) == 0) in drd_is_recognized_suppression()
519 else if (VG_(strcmp)(name, STR_CondErr) == 0) in drd_is_recognized_suppression()
521 else if (VG_(strcmp)(name, STR_CondDestrErr) == 0) in drd_is_recognized_suppression()
523 else if (VG_(strcmp)(name, STR_CondRaceErr) == 0) in drd_is_recognized_suppression()
525 else if (VG_(strcmp)(name, STR_CondWaitErr) == 0) in drd_is_recognized_suppression()
527 else if (VG_(strcmp)(name, STR_SemaphoreErr) == 0) in drd_is_recognized_suppression()
529 else if (VG_(strcmp)(name, STR_BarrierErr) == 0) in drd_is_recognized_suppression()
531 else if (VG_(strcmp)(name, STR_RwlockErr) == 0) in drd_is_recognized_suppression()
533 else if (VG_(strcmp)(name, STR_HoldtimeErr) == 0) in drd_is_recognized_suppression()
535 else if (VG_(strcmp)(name, STR_GenericErr) == 0) in drd_is_recognized_suppression()
537 else if (VG_(strcmp)(name, STR_InvalidThreadId) == 0) in drd_is_recognized_suppression()
539 else if (VG_(strcmp)(name, STR_UnimpHgClReq) == 0) in drd_is_recognized_suppression()
541 else if (VG_(strcmp)(name, STR_UnimpDrdClReq) == 0) in drd_is_recognized_suppression()
546 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()
627 VG_(needs_tool_errors)(drd_compare_error_contexts, in DRD_()