• Home
  • Raw
  • Download

Lines Matching refs:DRD_

68 static Bool DRD_(process_cmd_line_option)(const HChar* arg)  in DRD_()  function
99 else if VG_BOOL_CLO(arg, "--free-is-write", DRD_(g_free_is_write)) {} in DRD_()
108 DRD_(ignore_thread_creation)) {} in DRD_()
125 else if VG_BOOL_CLO(arg, "--verify-conflict-set", DRD_(verify_conflict_set)) in DRD_()
135 DRD_(set_check_stack_accesses)(check_stack_accesses); in DRD_()
138 DRD_(mutex_set_lock_threshold)(exclusive_threshold_ms); in DRD_()
139 DRD_(rwlock_set_exclusive_threshold)(exclusive_threshold_ms); in DRD_()
143 DRD_(set_first_race_only)(first_race_only); in DRD_()
146 DRD_(thread_set_join_list_vol)(join_list_vol); in DRD_()
149 DRD_(cond_set_report_signal_unlocked)(report_signal_unlocked); in DRD_()
153 DRD_(rwlock_set_shared_threshold)(shared_threshold_ms); in DRD_()
156 DRD_(thread_set_segment_merging)(segment_merging); in DRD_()
158 DRD_(thread_set_segment_merge_interval)(segment_merge_interval); in DRD_()
160 DRD_(set_show_conflicting_segments)(show_confl_seg); in DRD_()
163 DRD_(start_tracing_address_range)(addr, addr + 1, False); in DRD_()
172 DRD_(start_tracing_address_range)(addr, addr + length, True); in DRD_()
175 DRD_(barrier_set_trace)(trace_barrier); in DRD_()
177 DRD_(clientobj_set_trace)(trace_clientobj); in DRD_()
179 DRD_(cond_set_trace)(trace_cond); in DRD_()
181 DRD_(thread_trace_context_switches)(trace_csw); in DRD_()
183 DRD_(thread_set_trace_fork_join)(trace_fork_join); in DRD_()
185 DRD_(hb_set_trace)(trace_hb); in DRD_()
187 DRD_(thread_trace_conflict_set)(trace_conflict_set); in DRD_()
189 DRD_(thread_trace_conflict_set_bm)(trace_conflict_set_bm); in DRD_()
191 DRD_(mutex_set_trace)(trace_mutex); in DRD_()
193 DRD_(rwlock_set_trace)(trace_rwlock); in DRD_()
195 DRD_(sg_set_trace)(trace_segment); in DRD_()
197 DRD_(semaphore_set_trace)(trace_semaphore); in DRD_()
199 DRD_(suppression_set_trace)(trace_suppression); in DRD_()
204 static void DRD_(print_usage)(void) in DRD_() function
252 DRD_(thread_get_segment_merge_interval)(), in DRD_()
253 DRD_(ignore_thread_creation) ? "yes" : "no" in DRD_()
257 static void DRD_(print_debug_usage)(void) in DRD_() function
286 DRD_(thread_set_vg_running_tid)(VG_(get_running_tid)()); in drd_pre_mem_read()
289 DRD_(trace_load)(a, size); in drd_pre_mem_read()
317 DRD_(trace_load)(a, size); in drd_pre_mem_read_asciiz()
326 DRD_(thread_set_vg_running_tid)(VG_(get_running_tid)()); in drd_post_mem_write()
329 DRD_(trace_store)(a, size); in drd_post_mem_write()
342 DRD_(trace_msg)("Started using memory range 0x%lx + %lu%s", in drd_start_using_mem()
343 a1, len, DRD_(running_thread_inside_pthread_create)() in drd_start_using_mem()
346 if (!is_stack_mem && DRD_(g_free_is_write)) in drd_start_using_mem()
347 DRD_(thread_stop_using_mem)(a1, a2); in drd_start_using_mem()
349 if (UNLIKELY(DRD_(any_address_is_traced)())) in drd_start_using_mem()
351 DRD_(trace_mem_access)(a1, len, eStart, 0, 0); in drd_start_using_mem()
354 if (UNLIKELY(DRD_(running_thread_inside_pthread_create)())) in drd_start_using_mem()
356 DRD_(start_suppression)(a1, a2, "pthread_create()"); in drd_start_using_mem()
382 if (UNLIKELY(DRD_(any_address_is_traced)())) in drd_stop_using_mem()
383 DRD_(trace_mem_access)(a1, len, eEnd, 0, 0); in drd_stop_using_mem()
386 DRD_(trace_msg)("Stopped using memory range 0x%lx + %lu", in drd_stop_using_mem()
389 if (!is_stack_mem || DRD_(get_check_stack_accesses)()) in drd_stop_using_mem()
391 if (is_stack_mem || !DRD_(g_free_is_write)) in drd_stop_using_mem()
392 DRD_(thread_stop_using_mem)(a1, a2); in drd_stop_using_mem()
393 else if (DRD_(g_free_is_write)) in drd_stop_using_mem()
394 DRD_(trace_store)(a1, len); in drd_stop_using_mem()
395 DRD_(clientobj_stop_using_mem)(a1, a2); in drd_stop_using_mem()
396 DRD_(suppression_stop_using_mem)(a1, a2); in drd_stop_using_mem()
410 void DRD_(clean_memory)(const Addr a1, const SizeT len) in DRD_() function
412 const Bool is_stack_memory = DRD_(thread_address_on_any_stack)(a1); in DRD_()
428 static void DRD_(suppress_relocation_conflicts)(const Addr a, const SizeT len) in DRD_() function
456 DRD_(start_suppression)(avma, avma + size, ".bss"); in DRD_()
466 DRD_(start_suppression)(avma, avma + size, ".plt"); in DRD_()
476 DRD_(start_suppression)(avma, avma + size, ".gotplt"); in DRD_()
486 DRD_(start_suppression)(avma, avma + size, ".got"); in DRD_()
496 DRD_(thread_set_vg_running_tid)(VG_(get_running_tid)()); in drd_start_using_mem_w_perms()
500 DRD_(suppress_relocation_conflicts)(a, len); in drd_start_using_mem_w_perms()
512 DRD_(thread_set_stack_min)(tid, a - VG_STACK_REDZONE_SZB); in drd_start_using_mem_stack2()
520 drd_start_using_mem_stack2(DRD_(thread_get_running_tid)(), a, len); in drd_start_using_mem_stack()
532 DRD_(thread_set_stack_min)(tid, a + len - VG_STACK_REDZONE_SZB); in drd_stop_using_mem_stack2()
540 drd_stop_using_mem_stack2(DRD_(thread_get_running_tid)(), a, len); in drd_stop_using_mem_stack()
579 drd_tid = DRD_(VgThreadIdToDrdThreadId)(vg_tid); in drd_pre_deliver_signal()
580 DRD_(thread_set_on_alt_stack)(drd_tid, alt_stack); in drd_pre_deliver_signal()
602 drd_tid = DRD_(VgThreadIdToDrdThreadId)(vg_tid); in drd_post_deliver_signal()
603 DRD_(thread_set_on_alt_stack)(drd_tid, False); in drd_post_deliver_signal()
604 if (DRD_(thread_get_threads_on_alt_stack)() == 0) in drd_post_deliver_signal()
623 DRD_(thread_set_vg_running_tid)(VG_(get_running_tid)()); in drd_start_using_mem_stack_signal()
637 const DrdThreadId drd_creator = DRD_(VgThreadIdToDrdThreadId)(creator); in drd_pre_thread_create()
639 DRD_(thread_pre_create)(drd_creator, created); in drd_pre_thread_create()
640 if (DRD_(IsValidDrdThreadId)(drd_creator)) in drd_pre_thread_create()
642 DRD_(thread_new_segment)(drd_creator); in drd_pre_thread_create()
644 if (DRD_(thread_get_trace_fork_join)()) in drd_pre_thread_create()
646 DRD_(trace_msg)("drd_pre_thread_create creator = %u, created = %u", in drd_pre_thread_create()
663 drd_created = DRD_(thread_post_create)(vg_created); in drd_post_thread_create()
666 stack_max = DRD_(thread_get_stack_max)(drd_created); in drd_post_thread_create()
669 if (DRD_(thread_get_trace_fork_join)()) in drd_post_thread_create()
671 DRD_(trace_msg)("drd_post_thread_create created = %u", drd_created); in drd_post_thread_create()
673 if (! DRD_(get_check_stack_accesses)()) in drd_post_thread_create()
675 DRD_(start_suppression)(DRD_(thread_get_stack_max)(drd_created) in drd_post_thread_create()
676 - DRD_(thread_get_stack_size)(drd_created), in drd_post_thread_create()
677 DRD_(thread_get_stack_max)(drd_created), in drd_post_thread_create()
694 drd_tid = DRD_(VgThreadIdToDrdThreadId)(vg_tid); in drd_thread_finished()
696 if (DRD_(thread_get_trace_fork_join)()) in drd_thread_finished()
698 DRD_(trace_msg)("drd_thread_finished tid = %u%s", drd_tid, in drd_thread_finished()
699 DRD_(thread_get_joinable)(drd_tid) in drd_thread_finished()
703 const SizeT stack_size = DRD_(thread_get_stack_size)(drd_tid); in drd_thread_finished()
705 = (DRD_(thread_get_stack_max)(drd_tid) in drd_thread_finished()
706 - DRD_(thread_get_stack_min_min)(drd_tid)); in drd_thread_finished()
711 DRD_(thread_get_joinable)(drd_tid) in drd_thread_finished()
716 drd_stop_using_mem(DRD_(thread_get_stack_min)(drd_tid), in drd_thread_finished()
717 DRD_(thread_get_stack_max)(drd_tid) in drd_thread_finished()
718 - DRD_(thread_get_stack_min)(drd_tid), in drd_thread_finished()
720 DRD_(thread_set_record_loads)(drd_tid, False); in drd_thread_finished()
721 DRD_(thread_set_record_stores)(drd_tid, False); in drd_thread_finished()
722 DRD_(thread_finished)(drd_tid); in drd_thread_finished()
733 DRD_(drd_thread_atfork_child)(tid); in drd__atfork_child()
741 static void DRD_(post_clo_init)(void) in DRD_() function
758 DRD_(thread_set_vg_running_tid)(tid); in drd_start_client_code()
761 static void DRD_(fini)(Int exitcode) in DRD_() function
771 ULong pu = DRD_(thread_get_update_conflict_set_count)(); in DRD_()
772 ULong pu_seg_cr = DRD_(thread_get_update_conflict_set_new_sg_count)(); in DRD_()
773 ULong pu_mtx_cv = DRD_(thread_get_update_conflict_set_sync_count)(); in DRD_()
774 ULong pu_join = DRD_(thread_get_update_conflict_set_join_count)(); in DRD_()
778 DRD_(thread_get_context_switch_count)()); in DRD_()
781 DRD_(thread_get_compute_conflict_set_count)(), in DRD_()
798 DRD_(sg_get_segments_created_count)(), in DRD_()
799 DRD_(sg_get_max_segments_alive_count)()); in DRD_()
802 DRD_(thread_get_discard_ordered_segments_count)(), in DRD_()
803 DRD_(sg_get_segment_merge_count)()); in DRD_()
807 DRD_(get_mutex_segment_creation_count)(), in DRD_()
808 DRD_(get_rwlock_segment_creation_count)(), in DRD_()
809 DRD_(get_semaphore_segment_creation_count)(), in DRD_()
810 DRD_(get_barrier_segment_creation_count)()); in DRD_()
814 DRD_(bm_get_bitmap_creation_count)(), in DRD_()
815 DRD_(bm_get_bitmap2_creation_count)()); in DRD_()
818 DRD_(get_mutex_lock_count)()); in DRD_()
819 DRD_(print_malloc_stats)(); in DRD_()
822 DRD_(bm_module_cleanup)(); in DRD_()
836 VG_(basic_tool_funcs) (DRD_(post_clo_init), in drd_pre_clo_init()
837 DRD_(instrument), in drd_pre_clo_init()
838 DRD_(fini)); in drd_pre_clo_init()
841 VG_(needs_command_line_options)(DRD_(process_cmd_line_option), in drd_pre_clo_init()
842 DRD_(print_usage), in drd_pre_clo_init()
843 DRD_(print_debug_usage)); in drd_pre_clo_init()
847 DRD_(register_error_handlers)(); in drd_pre_clo_init()
872 DRD_(register_malloc_wrappers)(drd_start_using_mem_w_ecu, in drd_pre_clo_init()
875 DRD_(bm_module_init)(); in drd_pre_clo_init()
877 DRD_(clientreq_init)(); in drd_pre_clo_init()
879 DRD_(suppression_init)(); in drd_pre_clo_init()
881 DRD_(clientobj_init)(); in drd_pre_clo_init()
883 DRD_(thread_init)(); in drd_pre_clo_init()
888 DRD_(thread_set_segment_merge_interval)(VG_(strtoll10)(smi, NULL)); in drd_pre_clo_init()
892 DRD_(verify_conflict_set) = True; in drd_pre_clo_init()