/external/valgrind/drd/ |
drd_thread_bitmap.h | 37 DRD_(bm_access_load_1)(DRD_(sg_bm)(DRD_(running_thread_get_segment)()), a1); 38 return DRD_(bm_load_1_has_conflict_with)(DRD_(thread_get_conflict_set)(), 47 bm_access_aligned_load(DRD_(sg_bm)(DRD_(running_thread_get_segment)()), a1, 2); 48 return bm_aligned_load_has_conflict_with(DRD_(thread_get_conflict_set)(), 53 DRD_(bm_access_range)(DRD_(sg_bm)(DRD_(running_thread_get_segment)()) [all...] |
drd_cond.h | 40 extern Addr DRD_(pthread_cond_initializer); 41 extern int DRD_(pthread_cond_initializer_size); 46 void DRD_(cond_set_report_signal_unlocked)(const Bool r); 47 void DRD_(cond_set_trace)(const Bool trace_cond); 48 struct cond_info* DRD_(cond_get)(const Addr cond); 49 void DRD_(cond_pre_init)(const Addr cond); 50 void DRD_(cond_post_destroy)(const Addr cond, const Bool destroy_succeeded); 51 void DRD_(cond_pre_wait)(const Addr cond, const Addr mutex); 52 void DRD_(cond_post_wait)(const Addr cond); 53 void DRD_(cond_pre_signal)(const Addr cond) [all...] |
drd_thread.h | 114 extern DrdThreadId DRD_(g_drd_running_tid); 116 extern ThreadInfo* DRD_(g_threadinfo); 118 extern struct bitmap* DRD_(g_conflict_set); 119 extern Bool DRD_(verify_conflict_set); 124 void DRD_(thread_trace_context_switches)(const Bool t); 125 void DRD_(thread_trace_conflict_set)(const Bool t); 126 void DRD_(thread_trace_conflict_set_bm)(const Bool t); 127 Bool DRD_(thread_get_trace_fork_join)(void); 128 void DRD_(thread_set_trace_fork_join)(const Bool t); 129 void DRD_(thread_set_segment_merging)(const Bool m) [all...] |
drd_clientreq.c | 48 Bool DRD_(g_free_is_write); 62 void DRD_(clientreq_init)(void) 81 const DrdThreadId drd_tid = DRD_(thread_get_running_tid)(); 84 tl_assert(DRD_(VgThreadIdToDrdThreadId)(vg_tid) == drd_tid 98 if (DRD_(g_free_is_write)) { 100 .tid = DRD_(thread_get_running_tid)(), 111 DRD_(malloclike_block)(vg_tid, arg[1]/*addr*/, arg[2]/*size*/); 115 if (!DRD_(freelike_block)(vg_tid, arg[1]/*addr*/, False)) 118 .tid = DRD_(thread_get_running_tid)(), 127 DRD_(malloclike_block)(vg_tid, arg[1]/*addr*/, arg[3]/*newSize*/) [all...] |
drd_cond_initializer.c | 7 Addr DRD_(pthread_cond_initializer) = (Addr)&pthread_cond_initializer; 8 int DRD_(pthread_cond_initializer_size) = sizeof(pthread_cond_initializer);
|
drd_hb.h | 40 void DRD_(hb_set_trace)(const Bool trace_hb); 41 struct hb_info* DRD_(hb_get)(const Addr hb); 42 struct hb_info* DRD_(hb_get_or_allocate)(const Addr hb); 43 void DRD_(hb_init)(const Addr hb); 44 void DRD_(hb_destroy)(const Addr hb); 45 void DRD_(hb_happens_after)(const DrdThreadId tid, const Addr hb); 46 void DRD_(hb_happens_before)(const DrdThreadId tid, const Addr hb); 47 void DRD_(hb_happens_done)(const DrdThreadId tid, const Addr hb);
|
drd_rwlock.h | 40 void DRD_(rwlock_set_trace)(const Bool trace_rwlock); 41 void DRD_(rwlock_set_exclusive_threshold)(const UInt exclusive_threshold_ms); 42 void DRD_(rwlock_set_shared_threshold)(const UInt shared_threshold_ms); 43 struct rwlock_info* DRD_(rwlock_pre_init)(const Addr rwlock, 45 void DRD_(rwlock_post_destroy)(const Addr rwlock, const RwLockT rwlock_type); 46 void DRD_(rwlock_pre_rdlock)(const Addr rwlock, const RwLockT rwlock_type); 47 void DRD_(rwlock_post_rdlock)(const Addr rwlock, const RwLockT rwlock_type, 49 void DRD_(rwlock_pre_wrlock)(const Addr rwlock, const RwLockT rwlock_type); 50 void DRD_(rwlock_post_wrlock)(const Addr rwlock, const RwLockT rwlock_type, 52 void DRD_(rwlock_pre_unlock)(const Addr rwlock, const RwLockT rwlock_type) [all...] |
drd_mutex.h | 37 void DRD_(mutex_set_trace)(const Bool trace_mutex); 38 void DRD_(mutex_set_lock_threshold)(const UInt lock_threshold_ms); 39 struct mutex_info* DRD_(mutex_init)(const Addr mutex, const MutexT mutex_type); 40 void DRD_(mutex_ignore_ordering)(const Addr mutex); 41 void DRD_(mutex_post_destroy)(const Addr mutex); 42 void DRD_(not_a_mutex)(const Addr mutex); 43 struct mutex_info* DRD_(mutex_get)(const Addr mutex); 44 void DRD_(mutex_pre_lock)(const Addr mutex, const MutexT mutex_type, 46 void DRD_(mutex_post_lock)(const Addr mutex, const Bool took_lock, 48 void DRD_(mutex_unlock)(const Addr mutex, const MutexT mutex_type) [all...] |
drd_segment.h | 63 extern Segment* DRD_(g_sg_list); 65 Segment* DRD_(sg_new)(const DrdThreadId creator, const DrdThreadId created); 66 static int DRD_(sg_get_refcnt)(const Segment* const sg); 67 Segment* DRD_(sg_get)(Segment* const sg); 68 void DRD_(sg_put)(Segment* const sg); 69 static struct bitmap* DRD_(sg_bm)(Segment* const sg); 70 void DRD_(sg_merge)(Segment* const sg1, Segment* const sg2); 71 void DRD_(sg_print)(Segment* const sg); 72 Bool DRD_(sg_get_trace)(void); 73 void DRD_(sg_set_trace)(const Bool trace_segment) [all...] |
drd_barrier.h | 40 void DRD_(barrier_set_trace)(const Bool trace_barrier); 41 void DRD_(barrier_init)(const Addr barrier, 44 void DRD_(barrier_destroy)(const Addr barrier, const BarrierT barrier_type); 45 void DRD_(barrier_pre_wait)(const DrdThreadId tid, const Addr barrier, 47 void DRD_(barrier_post_wait)(const DrdThreadId tid, const Addr barrier, 50 void DRD_(barrier_stop_using_mem)(const Addr a1, const Addr a2); 51 ULong DRD_(get_barrier_segment_creation_count)(void);
|
drd_semaphore.h | 39 void DRD_(semaphore_set_trace)(const Bool trace_semaphore); 40 struct semaphore_info* DRD_(semaphore_init)(const Addr semaphore, 43 void DRD_(semaphore_destroy)(const Addr semaphore); 44 struct semaphore_info* DRD_(semaphore_open)(const Addr semaphore, 47 void DRD_(semaphore_close)(const Addr semaphore); 48 void DRD_(semaphore_pre_wait)(const Addr semaphore); 49 void DRD_(semaphore_post_wait)(const DrdThreadId tid, const Addr semaphore, 51 void DRD_(semaphore_pre_post)(const DrdThreadId tid, const Addr semaphore); 52 void DRD_(semaphore_post_post)(const DrdThreadId tid, const Addr semaphore, 54 ULong DRD_(get_semaphore_segment_creation_count)(void) [all...] |
drd_suppression.h | 9 extern Bool DRD_(g_any_address_traced); 12 void DRD_(suppression_set_trace)(const Bool trace_suppression); 13 void DRD_(suppression_init)(void); 14 void DRD_(start_suppression)(const Addr a1, const Addr a2, 16 void DRD_(finish_suppression)(const Addr a1, const Addr a2); 17 Bool DRD_(is_suppressed)(const Addr a1, const Addr a2); 18 Bool DRD_(is_any_suppressed)(const Addr a1, const Addr a2); 19 void DRD_(mark_hbvar)(const Addr a1); 20 Bool DRD_(range_contains_suppression_or_hbvar)(const Addr a1, const Addr a2); 21 void DRD_(start_tracing_address_range)(const Addr a1, const Addr a2 [all...] |
drd_thread.c | 67 DrdThreadId DRD_(g_drd_running_tid) = DRD_INVALID_THREADID; 68 ThreadInfo* DRD_(g_threadinfo); 69 struct bitmap* DRD_(g_conflict_set); 70 Bool DRD_(verify_conflict_set); 86 void DRD_(thread_trace_context_switches)(const Bool t) 93 void DRD_(thread_trace_conflict_set)(const Bool t) 100 void DRD_(thread_trace_conflict_set_bm)(const Bool t) 107 Bool DRD_(thread_get_trace_fork_join)(void) 113 void DRD_(thread_set_trace_fork_join)(const Bool t) 120 void DRD_(thread_set_segment_merging)(const Bool m [all...] |
drd_load_store.h | 38 Bool DRD_(get_check_stack_accesses)(void); 39 void DRD_(set_check_stack_accesses)(const Bool c); 40 Bool DRD_(get_first_race_only)(void); 41 void DRD_(set_first_race_only)(const Bool fro); 42 IRSB* DRD_(instrument)(VgCallbackClosure* const closure, 49 void DRD_(trace_mem_access)(const Addr addr, const SizeT size, 53 VG_REGPARM(2) void DRD_(trace_load)(Addr addr, SizeT size); 54 VG_REGPARM(2) void DRD_(trace_store)(Addr addr, SizeT size); 55 void DRD_(clean_memory)(const Addr a1, const SizeT len);
|
drd_cond.c | 39 static void DRD_(cond_cleanup)(struct cond_info* p); 44 static Bool DRD_(s_report_signal_unlocked) = True; 45 static Bool DRD_(s_trace_cond); 50 void DRD_(cond_set_report_signal_unlocked)(const Bool r) 52 DRD_(s_report_signal_unlocked) = r; 55 void DRD_(cond_set_trace)(const Bool trace_cond) 57 DRD_(s_trace_cond) = trace_cond; 61 void DRD_(cond_initialize)(struct cond_info* const p, const Addr cond) 67 p->cleanup = (void(*)(DrdClientobj*))(DRD_(cond_cleanup)); 75 * DRD_(clientobj_remove)() [all...] |
drd_main.c | 68 static Bool DRD_(process_cmd_line_option)(const HChar* arg) 99 else if VG_BOOL_CLO(arg, "--free-is-write", DRD_(g_free_is_write)) {} 123 else if VG_BOOL_CLO(arg, "--verify-conflict-set", DRD_(verify_conflict_set)) 133 DRD_(set_check_stack_accesses)(check_stack_accesses); 136 DRD_(mutex_set_lock_threshold)(exclusive_threshold_ms); 137 DRD_(rwlock_set_exclusive_threshold)(exclusive_threshold_ms); 141 DRD_(set_first_race_only)(first_race_only); 144 DRD_(thread_set_join_list_vol)(join_list_vol); 147 DRD_(cond_set_report_signal_unlocked)(report_signal_unlocked); 151 DRD_(rwlock_set_shared_threshold)(shared_threshold_ms) [all...] |
pub_drd_bitmap.h | 36 #include "drd_basics.h" /* DRD_() */ 78 void DRD_(bm_module_init)(void); 79 void DRD_(bm_module_cleanup)(void); 80 struct bitmap* DRD_(bm_new)(void); 81 void DRD_(bm_delete)(struct bitmap* const bm); 82 void DRD_(bm_init)(struct bitmap* const bm); 83 void DRD_(bm_cleanup)(struct bitmap* const bm); 84 void DRD_(bm_access_range)(struct bitmap* const bm, 87 void DRD_(bm_access_range_load)(struct bitmap* const bm, 89 void DRD_(bm_access_load_1)(struct bitmap* const bm, const Addr a1) [all...] |
drd_suppression.c | 35 Bool DRD_(g_any_address_traced) = False; 47 void DRD_(suppression_set_trace)(const Bool trace_suppression) 52 void DRD_(suppression_init)(void) 56 s_suppressed = DRD_(bm_new)(); 57 s_traced = DRD_(bm_new)(); 62 void DRD_(start_suppression)(const Addr a1, const Addr a2, 70 DRD_(bm_access_range_store)(s_suppressed, a1, a2); 73 void DRD_(finish_suppression)(const Addr a1, const Addr a2) 82 DRD_(bm_clear_store)(s_suppressed, a1, a2); 90 Bool DRD_(is_suppressed)(const Addr a1, const Addr a2 [all...] |
drd_basics.h | 35 #define DRD_(str) VGAPPEND(vgDrd_, str)
|
drd_rwlock.c | 61 static Bool DRD_(s_trace_rwlock); 62 static UInt DRD_(s_exclusive_threshold_ms); 63 static UInt DRD_(s_shared_threshold_ms); 64 static ULong DRD_(s_rwlock_segment_creation_count); 69 void DRD_(rwlock_set_trace)(const Bool trace_rwlock) 72 DRD_(s_trace_rwlock) = trace_rwlock; 75 void DRD_(rwlock_set_exclusive_threshold)(const UInt exclusive_threshold_ms) 77 DRD_(s_exclusive_threshold_ms) = exclusive_threshold_ms; 80 void DRD_(rwlock_set_shared_threshold)(const UInt shared_threshold_ms) 82 DRD_(s_shared_threshold_ms) = shared_threshold_ms [all...] |
drd_hb.c | 50 static void DRD_(hb_cleanup)(struct hb_info* p); 55 static Bool DRD_(s_trace_hb); 60 void DRD_(hb_set_trace)(const Bool trace_hb) 62 DRD_(s_trace_hb) = trace_hb; 69 void DRD_(hb_thread_initialize)(struct hb_thread_info* const p, 79 static void DRD_(hb_thread_destroy)(struct hb_thread_info* const p) 82 DRD_(sg_put)(p->sg); 86 void DRD_(hb_initialize)(struct hb_info* const p, const Addr hb) 92 p->cleanup = (void(*)(DrdClientobj*))(DRD_(hb_cleanup)); 100 * DRD_(clientobj_remove)() [all...] |
drd_malloc_wrappers.h | 28 #include "drd_basics.h" /* DRD_() */ 37 void DRD_(register_malloc_wrappers)(const StartUsingMem start_callback, 39 void DRD_(malloclike_block)(const ThreadId tid, const Addr p, const SizeT size); 40 Bool DRD_(freelike_block)(const ThreadId tid, const Addr p, const Bool dealloc); 41 Bool DRD_(heap_addrinfo)(Addr const a, 45 void DRD_(print_malloc_stats)(void);
|
drd_mutex.c | 56 void DRD_(mutex_set_trace)(const Bool trace_mutex) 62 void DRD_(mutex_set_lock_threshold)(const UInt lock_threshold_ms) 68 void DRD_(mutex_initialize)(struct mutex_info* const p, 86 void DRD_(mutex_ignore_ordering)(const Addr mutex) 88 struct mutex_info* p = DRD_(mutex_get)(mutex); 91 DRD_(trace_msg)("[%d] mutex_ignore_ordering %s 0x%lx", 92 DRD_(thread_get_running_tid)(), 93 p ? DRD_(mutex_type_name)(p->mutex_type) : "(?)", 99 DRD_(not_a_mutex)(mutex); 109 DRD_(trace_msg)("[%d] mutex_destroy %s 0x%lx rc %d owner %d" [all...] |
drd_vc.h | 73 void DRD_(vc_init)(VectorClock* const vc, 76 void DRD_(vc_cleanup)(VectorClock* const vc); 77 void DRD_(vc_copy)(VectorClock* const new, const VectorClock* const rhs); 78 void DRD_(vc_assign)(VectorClock* const lhs, const VectorClock* const rhs); 79 void DRD_(vc_increment)(VectorClock* const vc, DrdThreadId const tid); 81 Bool DRD_(vc_lte)(const VectorClock* const vc1, 83 Bool DRD_(vc_ordered)(const VectorClock* const vc1, 85 void DRD_(vc_min)(VectorClock* const result, 87 void DRD_(vc_combine)(VectorClock* const result, 89 void DRD_(vc_print)(const VectorClock* const vc) [all...] |
/external/valgrind/drd/tests/ |
unit_bitmap.c | 59 Bool DRD_(is_suppressed)(const Addr a1, const Addr a2) 104 equal = DRD_(bm_equal)(bm1, bm2); 112 if (DRD_(bm_has_1)(bm1, i, eLoad) != DRD_(bm_has_1)(bm2, i, eLoad) 113 || DRD_(bm_has_1)(bm1, i, eStore) != DRD_(bm_has_1)(bm2, i, eStore)) 117 DRD_(bm_has_1)(bm1, i, eLoad) ? 'R' : ' ', 118 DRD_(bm_has_1)(bm1, i, eStore) ? 'W' : ' ', 119 DRD_(bm_has_1)(bm2, i, eLoad) ? 'R' : ' ', 120 DRD_(bm_has_1)(bm2, i, eStore) ? 'W' : ' [all...] |