/external/valgrind/main/drd/ |
drd_thread_bitmap.h | 38 DRD_(bm_access_load_1)(DRD_(sg_bm)(DRD_(running_thread_get_segment)()), a1); 39 return DRD_(bm_load_1_has_conflict_with)(DRD_(thread_get_conflict_set)(), 48 bm_access_aligned_load(DRD_(sg_bm)(DRD_(running_thread_get_segment)()), a1, 2); 49 return bm_aligned_load_has_conflict_with(DRD_(thread_get_conflict_set)(), 54 DRD_(bm_access_range)(DRD_(sg_bm)(DRD_(running_thread_get_segment)()) [all...] |
drd_cond.h | 41 extern Addr DRD_(pthread_cond_initializer); 42 extern int DRD_(pthread_cond_initializer_size); 47 void DRD_(cond_set_report_signal_unlocked)(const Bool r); 48 void DRD_(cond_set_trace)(const Bool trace_cond); 49 struct cond_info* DRD_(cond_get)(const Addr cond); 50 void DRD_(cond_pre_init)(const Addr cond); 51 void DRD_(cond_post_destroy)(const Addr cond); 52 void DRD_(cond_pre_wait)(const Addr cond, const Addr mutex); 53 void DRD_(cond_post_wait)(const Addr cond); 54 void DRD_(cond_pre_signal)(const Addr cond) [all...] |
drd_suppression.h | 10 extern Bool DRD_(g_any_address_traced); 13 void DRD_(suppression_set_trace)(const Bool trace_suppression); 14 void DRD_(suppression_init)(void); 15 void DRD_(start_suppression)(const Addr a1, const Addr a2, 17 void DRD_(finish_suppression)(const Addr a1, const Addr a2); 18 Bool DRD_(is_suppressed)(const Addr a1, const Addr a2); 19 Bool DRD_(is_any_suppressed)(const Addr a1, const Addr a2); 20 void DRD_(mark_hbvar)(const Addr a1); 21 Bool DRD_(range_contains_suppression_or_hbvar)(const Addr a1, const Addr a2); 22 void DRD_(start_tracing_address_range)(const Addr a1, const Addr a2) [all...] |
drd_suppression.c | 36 Bool DRD_(g_any_address_traced) = False; 41 static struct bitmap* DRD_(s_suppressed); 42 static struct bitmap* DRD_(s_traced); 43 static Bool DRD_(s_trace_suppression); 48 void DRD_(suppression_set_trace)(const Bool trace_suppression) 50 DRD_(s_trace_suppression) = trace_suppression; 53 void DRD_(suppression_init)(void) 55 tl_assert(DRD_(s_suppressed) == 0); 56 tl_assert(DRD_(s_traced) == 0); 57 DRD_(s_suppressed) = DRD_(bm_new)() [all...] |
drd_thread.h | 111 extern DrdThreadId DRD_(g_drd_running_tid); 113 extern ThreadInfo DRD_(g_threadinfo)[DRD_N_THREADS]; 115 extern struct bitmap* DRD_(g_conflict_set); 120 void DRD_(thread_trace_context_switches)(const Bool t); 121 void DRD_(thread_trace_conflict_set)(const Bool t); 122 void DRD_(thread_trace_conflict_set_bm)(const Bool t); 123 Bool DRD_(thread_get_trace_fork_join)(void); 124 void DRD_(thread_set_trace_fork_join)(const Bool t); 125 void DRD_(thread_set_segment_merging)(const Bool m); 126 int DRD_(thread_get_segment_merge_interval)(void) [all...] |
drd_thread.c | 69 DrdThreadId DRD_(g_drd_running_tid) = DRD_INVALID_THREADID; 70 ThreadInfo DRD_(g_threadinfo)[DRD_N_THREADS]; 71 struct bitmap* DRD_(g_conflict_set); 84 void DRD_(thread_trace_context_switches)(const Bool t) 91 void DRD_(thread_trace_conflict_set)(const Bool t) 98 void DRD_(thread_trace_conflict_set_bm)(const Bool t) 105 Bool DRD_(thread_get_trace_fork_join)(void) 111 void DRD_(thread_set_trace_fork_join)(const Bool t) 118 void DRD_(thread_set_segment_merging)(const Bool m) 125 int DRD_(thread_get_segment_merge_interval)(void [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 | 41 void DRD_(hb_set_trace)(const Bool trace_hb); 42 struct hb_info* DRD_(hb_get)(const Addr hb); 43 struct hb_info* DRD_(hb_get_or_allocate)(const Addr hb); 44 void DRD_(hb_init)(const Addr hb); 45 void DRD_(hb_destroy)(const Addr hb); 46 void DRD_(hb_happens_after)(const DrdThreadId tid, const Addr hb); 47 void DRD_(hb_happens_before)(const DrdThreadId tid, const Addr hb); 48 void DRD_(hb_happens_done)(const DrdThreadId tid, const Addr hb);
|
drd_rwlock.h | 41 void DRD_(rwlock_set_trace)(const Bool trace_rwlock); 42 void DRD_(rwlock_set_exclusive_threshold)(const UInt exclusive_threshold_ms); 43 void DRD_(rwlock_set_shared_threshold)(const UInt shared_threshold_ms); 44 struct rwlock_info* DRD_(rwlock_pre_init)(const Addr rwlock, 46 void DRD_(rwlock_post_destroy)(const Addr rwlock, const RwLockT rwlock_type); 47 void DRD_(rwlock_pre_rdlock)(const Addr rwlock, const RwLockT rwlock_type); 48 void DRD_(rwlock_post_rdlock)(const Addr rwlock, const RwLockT rwlock_type, 50 void DRD_(rwlock_pre_wrlock)(const Addr rwlock, const RwLockT rwlock_type); 51 void DRD_(rwlock_post_wrlock)(const Addr rwlock, const RwLockT rwlock_type, 53 void DRD_(rwlock_pre_unlock)(const Addr rwlock, const RwLockT rwlock_type) [all...] |
drd_clientreq.c | 59 void DRD_(clientreq_init)(void) 71 const DrdThreadId drd_tid = DRD_(thread_get_running_tid)(); 74 tl_assert(DRD_(VgThreadIdToDrdThreadId)(vg_tid) == drd_tid); 80 DRD_(malloclike_block)(vg_tid, arg[1]/*addr*/, arg[2]/*size*/); 84 if (arg[1] && ! DRD_(freelike_block)(vg_tid, arg[1]/*addr*/)) 87 .tid = DRD_(thread_get_running_tid)(), 107 DRD_(thread_set_name)(drd_tid, (const char*)arg[1]); 113 DRD_(start_suppression)(arg[1], arg[1] + arg[2], "client"); 119 DRD_(finish_suppression)(arg[1], arg[1] + arg[2]); 123 DRD_(hb_happens_before)(drd_tid, arg[1]) [all...] |
drd_mutex.h | 38 void DRD_(mutex_set_trace)(const Bool trace_mutex); 39 void DRD_(mutex_set_lock_threshold)(const UInt lock_threshold_ms); 40 struct mutex_info* DRD_(mutex_init)(const Addr mutex, const MutexT mutex_type); 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); 49 void DRD_(spinlock_init_or_unlock)(const Addr spinlock) [all...] |
drd_barrier.h | 41 void DRD_(barrier_set_trace)(const Bool trace_barrier); 42 void DRD_(barrier_init)(const Addr barrier, 45 void DRD_(barrier_destroy)(const Addr barrier, const BarrierT barrier_type); 46 void DRD_(barrier_pre_wait)(const DrdThreadId tid, const Addr barrier, 48 void DRD_(barrier_post_wait)(const DrdThreadId tid, const Addr barrier, 51 void DRD_(barrier_stop_using_mem)(const Addr a1, const Addr a2); 52 ULong DRD_(get_barrier_segment_creation_count)(void);
|
drd_semaphore.h | 40 void DRD_(semaphore_set_trace)(const Bool trace_semaphore); 41 struct semaphore_info* DRD_(semaphore_init)(const Addr semaphore, 44 void DRD_(semaphore_destroy)(const Addr semaphore); 45 struct semaphore_info* DRD_(semaphore_open)(const Addr semaphore, 48 void DRD_(semaphore_close)(const Addr semaphore); 49 void DRD_(semaphore_pre_wait)(const Addr semaphore); 50 void DRD_(semaphore_post_wait)(const DrdThreadId tid, const Addr semaphore, 52 void DRD_(semaphore_pre_post)(const DrdThreadId tid, const Addr semaphore); 53 void DRD_(semaphore_post_post)(const DrdThreadId tid, const Addr semaphore, 55 ULong DRD_(get_semaphore_segment_creation_count)(void) [all...] |
drd_segment.h | 63 Segment* DRD_(sg_new)(const DrdThreadId creator, const DrdThreadId created); 64 static int DRD_(sg_get_refcnt)(const Segment* const sg); 65 Segment* DRD_(sg_get)(Segment* const sg); 66 void DRD_(sg_put)(Segment* const sg); 67 static struct bitmap* DRD_(sg_bm)(Segment* const sg); 68 void DRD_(sg_merge)(Segment* const sg1, Segment* const sg2); 69 void DRD_(sg_print)(Segment* const sg); 70 Bool DRD_(sg_get_trace)(void); 71 void DRD_(sg_set_trace)(const Bool trace_segment); 72 ULong DRD_(sg_get_segments_created_count)(void) [all...] |
drd_load_store.h | 39 Bool DRD_(get_check_stack_accesses)(void); 40 void DRD_(set_check_stack_accesses)(const Bool c); 41 Bool DRD_(get_first_race_only)(void); 42 void DRD_(set_first_race_only)(const Bool fro); 43 IRSB* DRD_(instrument)(VgCallbackClosure* const closure, 49 void DRD_(trace_mem_access)(const Addr addr, const SizeT size, 51 VG_REGPARM(2) void DRD_(trace_load)(Addr addr, SizeT size); 52 VG_REGPARM(2) void DRD_(trace_store)(Addr addr, SizeT size); 53 void DRD_(clean_memory)(const Addr a1, const SizeT len);
|
drd_cond.c | 40 static void DRD_(cond_cleanup)(struct cond_info* p); 45 static Bool DRD_(s_report_signal_unlocked) = True; 46 static Bool DRD_(s_trace_cond); 51 Addr DRD_(pthread_cond_initializer); 52 int DRD_(pthread_cond_initializer_size); 57 void DRD_(cond_set_report_signal_unlocked)(const Bool r) 59 DRD_(s_report_signal_unlocked) = r; 62 void DRD_(cond_set_trace)(const Bool trace_cond) 64 DRD_(s_trace_cond) = trace_cond; 68 void DRD_(cond_initialize)(struct cond_info* const p, const Addr cond [all...] |
pub_drd_bitmap.h | 37 #include "drd_basics.h" /* DRD_() */ 79 struct bitmap* DRD_(bm_new)(void); 80 void DRD_(bm_delete)(struct bitmap* const bm); 81 void DRD_(bm_init)(struct bitmap* const bm); 82 void DRD_(bm_cleanup)(struct bitmap* const bm); 83 void DRD_(bm_access_range)(struct bitmap* const bm, 86 void DRD_(bm_access_range_load)(struct bitmap* const bm, 88 void DRD_(bm_access_load_1)(struct bitmap* const bm, const Addr a1); 89 void DRD_(bm_access_load_2)(struct bitmap* const bm, const Addr a1); 90 void DRD_(bm_access_load_4)(struct bitmap* const bm, const Addr a1) [all...] |
drd_segment.c | 63 ThreadId vg_created = DRD_(DrdThreadIdToVgThreadId)(created); 67 || DRD_(IsValidDrdThreadId)(creator)); 70 ? DRD_(thread_get_segment)(creator) : 0); 83 DRD_(vc_copy)(&sg->vc, &creator_sg->vc); 85 DRD_(vc_init)(&sg->vc, 0, 0); 86 DRD_(vc_increment)(&sg->vc, created); 87 DRD_(bm_init)(&sg->bm); 93 vc = DRD_(vc_aprint)(&sg->vc); 101 static void DRD_(sg_cleanup)(Segment* const sg) 106 DRD_(vc_cleanup)(&sg->vc) [all...] |
drd_basics.h | 36 #define DRD_(str) VGAPPEND(vgDrd_, str)
|
drd_main.c | 69 static Bool DRD_(process_cmd_line_option)(Char* arg) 125 DRD_(set_check_stack_accesses)(check_stack_accesses); 128 DRD_(mutex_set_lock_threshold)(exclusive_threshold_ms); 129 DRD_(rwlock_set_exclusive_threshold)(exclusive_threshold_ms); 133 DRD_(set_first_race_only)(first_race_only); 137 DRD_(cond_set_report_signal_unlocked)(report_signal_unlocked); 141 DRD_(rwlock_set_shared_threshold)(shared_threshold_ms); 144 DRD_(thread_set_segment_merging)(segment_merging); 146 DRD_(thread_set_segment_merge_interval)(segment_merge_interval); 148 DRD_(set_show_conflicting_segments)(show_confl_seg) [all...] |
drd_malloc_wrappers.h | 29 #include "drd_basics.h" /* DRD_() */ 38 void DRD_(register_malloc_wrappers)(const StartUsingMem start_callback, 40 void DRD_(malloclike_block)(const ThreadId tid, const Addr p, const SizeT size); 41 Bool DRD_(freelike_block)(const ThreadId tid, const Addr p); 42 Bool DRD_(heap_addrinfo)(Addr const a, 46 void DRD_(print_malloc_stats)(void);
|
drd_rwlock.c | 62 static Bool DRD_(s_trace_rwlock); 63 static UInt DRD_(s_exclusive_threshold_ms); 64 static UInt DRD_(s_shared_threshold_ms); 65 static ULong DRD_(s_rwlock_segment_creation_count); 70 void DRD_(rwlock_set_trace)(const Bool trace_rwlock) 73 DRD_(s_trace_rwlock) = trace_rwlock; 76 void DRD_(rwlock_set_exclusive_threshold)(const UInt exclusive_threshold_ms) 78 DRD_(s_exclusive_threshold_ms) = exclusive_threshold_ms; 81 void DRD_(rwlock_set_shared_threshold)(const UInt shared_threshold_ms) 83 DRD_(s_shared_threshold_ms) = shared_threshold_ms [all...] |
drd_hb.c | 51 static void DRD_(hb_cleanup)(struct hb_info* p); 56 static Bool DRD_(s_trace_hb); 61 void DRD_(hb_set_trace)(const Bool trace_hb) 63 DRD_(s_trace_hb) = trace_hb; 70 void DRD_(hb_thread_initialize)(struct hb_thread_info* const p, 80 static void DRD_(hb_thread_destroy)(struct hb_thread_info* const p) 83 DRD_(sg_put)(p->sg); 87 void DRD_(hb_initialize)(struct hb_info* const p, const Addr hb) 93 p->cleanup = (void(*)(DrdClientobj*))(DRD_(hb_cleanup)); 101 * DRD_(clientobj_remove)() [all...] |
drd_vc.h | 74 void DRD_(vc_init)(VectorClock* const vc, 77 void DRD_(vc_cleanup)(VectorClock* const vc); 78 void DRD_(vc_copy)(VectorClock* const new, const VectorClock* const rhs); 79 void DRD_(vc_assign)(VectorClock* const lhs, const VectorClock* const rhs); 80 void DRD_(vc_increment)(VectorClock* const vc, DrdThreadId const tid); 82 Bool DRD_(vc_lte)(const VectorClock* const vc1, 84 Bool DRD_(vc_ordered)(const VectorClock* const vc1, 86 void DRD_(vc_min)(VectorClock* const result, 88 void DRD_(vc_combine)(VectorClock* const result, 90 void DRD_(vc_print)(const VectorClock* const vc) [all...] |
/external/valgrind/main/drd/tests/ |
unit_bitmap.c | 55 Bool DRD_(is_suppressed)(const Addr a1, const Addr a2) 93 equal = DRD_(bm_equal)(bm1, bm2); 101 if (DRD_(bm_has_1)(bm1, i, eLoad) != DRD_(bm_has_1)(bm2, i, eLoad) 102 || DRD_(bm_has_1)(bm1, i, eStore) != DRD_(bm_has_1)(bm2, i, eStore)) 106 DRD_(bm_has_1)(bm1, i, eLoad) ? 'R' : ' ', 107 DRD_(bm_has_1)(bm1, i, eStore) ? 'W' : ' ', 108 DRD_(bm_has_1)(bm2, i, eLoad) ? 'R' : ' ', 109 DRD_(bm_has_1)(bm2, i, eStore) ? 'W' : ' [all...] |