Home
last modified time | relevance | path

Searched refs:DRD_ (Results 1 – 25 of 42) sorted by relevance

12

/external/valgrind/drd/
Ddrd_thread.h123 extern DrdThreadId DRD_(g_drd_running_tid);
125 extern ThreadInfo* DRD_(g_threadinfo);
127 extern struct bitmap* DRD_(g_conflict_set);
128 extern Bool DRD_(verify_conflict_set);
130 extern Bool DRD_(ignore_thread_creation);
135 void DRD_(thread_trace_context_switches)(const Bool t);
136 void DRD_(thread_trace_conflict_set)(const Bool t);
137 void DRD_(thread_trace_conflict_set_bm)(const Bool t);
138 Bool DRD_(thread_get_trace_fork_join)(void);
139 void DRD_(thread_set_trace_fork_join)(const Bool t);
[all …]
Ddrd_thread_bitmap.h37 DRD_(bm_access_load_1)(DRD_(sg_bm)(DRD_(running_thread_get_segment)()), a1); in bm_access_load_1_triggers_conflict()
38 return DRD_(bm_load_1_has_conflict_with)(DRD_(thread_get_conflict_set)(), in bm_access_load_1_triggers_conflict()
47 bm_access_aligned_load(DRD_(sg_bm)(DRD_(running_thread_get_segment)()), a1, 2); in bm_access_load_2_triggers_conflict()
48 return bm_aligned_load_has_conflict_with(DRD_(thread_get_conflict_set)(), in bm_access_load_2_triggers_conflict()
53 DRD_(bm_access_range)(DRD_(sg_bm)(DRD_(running_thread_get_segment)()), in bm_access_load_2_triggers_conflict()
55 return DRD_(bm_has_conflict_with)(DRD_(thread_get_conflict_set)(), in bm_access_load_2_triggers_conflict()
65 bm_access_aligned_load(DRD_(sg_bm)(DRD_(running_thread_get_segment)()), a1, 4); in bm_access_load_4_triggers_conflict()
66 return bm_aligned_load_has_conflict_with(DRD_(thread_get_conflict_set)(), in bm_access_load_4_triggers_conflict()
71 DRD_(bm_access_range)(DRD_(sg_bm)(DRD_(running_thread_get_segment)()), in bm_access_load_4_triggers_conflict()
73 return DRD_(bm_has_conflict_with)(DRD_(thread_get_conflict_set)(), in bm_access_load_4_triggers_conflict()
[all …]
Ddrd_thread.c67 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);
82 Bool DRD_(ignore_thread_creation) = True;
84 Bool DRD_(ignore_thread_creation) = False;
91 void DRD_(thread_trace_context_switches)(const Bool t) in DRD_() function
98 void DRD_(thread_trace_conflict_set)(const Bool t) in DRD_() function
105 void DRD_(thread_trace_conflict_set_bm)(const Bool t) in DRD_() function
112 Bool DRD_(thread_get_trace_fork_join)(void) in DRD_() function
[all …]
Ddrd_clientreq.c48 Bool DRD_(g_free_is_write);
62 void DRD_(clientreq_init)(void) in DRD_() function
80 const DrdThreadId drd_tid = DRD_(thread_get_running_tid)(); in handle_client_request()
83 tl_assert(DRD_(VgThreadIdToDrdThreadId)(vg_tid) == drd_tid in handle_client_request()
97 if (DRD_(g_free_is_write)) { in handle_client_request()
99 .tid = DRD_(thread_get_running_tid)(), in handle_client_request()
110 DRD_(malloclike_block)(vg_tid, arg[1]/*addr*/, arg[2]/*size*/); in handle_client_request()
114 if (!DRD_(freelike_block)(vg_tid, arg[1]/*addr*/, False)) in handle_client_request()
117 .tid = DRD_(thread_get_running_tid)(), in handle_client_request()
126 DRD_(malloclike_block)(vg_tid, arg[1]/*addr*/, arg[3]/*newSize*/); in handle_client_request()
[all …]
Ddrd_main.c68 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_()
[all …]
Ddrd_rwlock.c61 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) in DRD_() function
72 DRD_(s_trace_rwlock) = trace_rwlock; in DRD_()
75 void DRD_(rwlock_set_exclusive_threshold)(const UInt exclusive_threshold_ms) in DRD_() function
77 DRD_(s_exclusive_threshold_ms) = exclusive_threshold_ms; in DRD_()
80 void DRD_(rwlock_set_shared_threshold)(const UInt shared_threshold_ms) in DRD_() function
82 DRD_(s_shared_threshold_ms) = shared_threshold_ms; in DRD_()
[all …]
Ddrd_cond.c39 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) in DRD_() function
52 DRD_(s_report_signal_unlocked) = r; in DRD_()
55 void DRD_(cond_set_trace)(const Bool trace_cond) in DRD_() function
57 DRD_(s_trace_cond) = trace_cond; in DRD_()
61 void DRD_(cond_initialize)(struct cond_info* const p, const Addr cond) in DRD_() function
67 p->cleanup = (void(*)(DrdClientobj*))(DRD_(cond_cleanup)); in DRD_()
77 static void DRD_(cond_cleanup)(struct cond_info* p) in DRD_() function
[all …]
Dpub_drd_bitmap.h78 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);
90 void DRD_(bm_access_load_2)(struct bitmap* const bm, const Addr a1);
[all …]
Ddrd_hb.c50 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) in DRD_() function
62 DRD_(s_trace_hb) = trace_hb; in DRD_()
69 void DRD_(hb_thread_initialize)(struct hb_thread_info* const p, in DRD_() function
79 static void DRD_(hb_thread_destroy)(struct hb_thread_info* const p) in DRD_() function
82 DRD_(sg_put)(p->sg); in DRD_()
86 void DRD_(hb_initialize)(struct hb_info* const p, const Addr hb) in DRD_() function
92 p->cleanup = (void(*)(DrdClientobj*))(DRD_(hb_cleanup)); in DRD_()
102 static void DRD_(hb_cleanup)(struct hb_info* p) in DRD_() function
[all …]
Ddrd_mutex.c56 void DRD_(mutex_set_trace)(const Bool trace_mutex) in DRD_() function
62 void DRD_(mutex_set_lock_threshold)(const UInt lock_threshold_ms) in DRD_() function
68 void DRD_(mutex_initialize)(struct mutex_info* const p, in DRD_() function
86 void DRD_(mutex_ignore_ordering)(const Addr mutex) in DRD_() function
88 struct mutex_info* p = DRD_(mutex_get)(mutex); in DRD_()
91 DRD_(trace_msg)("[%u] mutex_ignore_ordering %s 0x%lx", in DRD_()
92 DRD_(thread_get_running_tid)(), in DRD_()
93 p ? DRD_(mutex_type_name)(p->mutex_type) : "(?)", in DRD_()
99 DRD_(not_a_mutex)(mutex); in DRD_()
109 DRD_(trace_msg)("[%u] mutex_destroy %s 0x%lx rc %d owner %u", in mutex_cleanup()
[all …]
Ddrd_suppression.c35 Bool DRD_(g_any_address_traced) = False;
47 void DRD_(suppression_set_trace)(const Bool trace_suppression) in DRD_() function
52 void DRD_(suppression_init)(void) in DRD_() function
56 s_suppressed = DRD_(bm_new)(); in DRD_()
57 s_traced = DRD_(bm_new)(); in DRD_()
62 void DRD_(start_suppression)(const Addr a1, const Addr a2, in DRD_() function
70 DRD_(bm_access_range_store)(s_suppressed, a1, a2); in DRD_()
73 void DRD_(finish_suppression)(const Addr a1, const Addr a2) in DRD_() function
82 DRD_(bm_clear_store)(s_suppressed, a1, a2); in DRD_()
90 Bool DRD_(is_suppressed)(const Addr a1, const Addr a2) in DRD_() function
[all …]
Ddrd_segment.c39 Segment* DRD_(g_sg_list);
67 ThreadId vg_created = DRD_(DrdThreadIdToVgThreadId)(created); in sg_init()
71 || DRD_(IsValidDrdThreadId)(creator)); in sg_init()
74 ? DRD_(thread_get_segment)(creator) : 0); in sg_init()
89 DRD_(vc_copy)(&sg->vc, &creator_sg->vc); in sg_init()
91 DRD_(vc_init)(&sg->vc, 0, 0); in sg_init()
92 DRD_(vc_increment)(&sg->vc, created); in sg_init()
93 DRD_(bm_init)(&sg->bm); in sg_init()
99 vc = DRD_(vc_aprint)(&sg->vc); in sg_init()
107 static void DRD_(sg_cleanup)(Segment* const sg) in DRD_() function
[all …]
Ddrd_barrier.c73 void DRD_(barrier_set_trace)(const Bool trace_barrier) in DRD_() function
83 void DRD_(barrier_thread_initialize)(struct barrier_thread_info* const p, in DRD_() function
97 static void DRD_(barrier_thread_destroy)(struct barrier_thread_info* const p) in DRD_() function
100 DRD_(sg_put)(p->sg); in DRD_()
101 DRD_(sg_put)(p->post_wait_sg); in DRD_()
109 void DRD_(barrier_initialize)(struct barrier_info* const p, in DRD_() function
154 DRD_(thread_get_latest_segment)(&latest_sg, DRD_(thread_get_running_tid)()); in barrier_cleanup()
158 BarrierErrInfo bei = { DRD_(thread_get_running_tid)(), p->a1, 0, 0 }; in barrier_cleanup()
169 if (q->post_wait_sg && !DRD_(vc_lte)(&q->post_wait_sg->vc, in barrier_cleanup()
174 DRD_(barrier_thread_destroy)(q); in barrier_cleanup()
[all …]
Ddrd_semaphore.c86 void DRD_(semaphore_set_trace)(const Bool trace_semaphore) in DRD_() function
123 SemaphoreErrInfo sei = { DRD_(thread_get_running_tid)(), p->a1 }; in semaphore_cleanup()
132 DRD_(sg_put)(sg); in semaphore_cleanup()
148 p = &(DRD_(clientobj_get)(semaphore, ClientSemaphore)->semaphore); in drd_semaphore_get_or_allocate()
152 p = &(DRD_(clientobj_add)(semaphore, ClientSemaphore)->semaphore); in drd_semaphore_get_or_allocate()
165 return &(DRD_(clientobj_get)(semaphore, ClientSemaphore)->semaphore); in semaphore_get()
169 struct semaphore_info* DRD_(semaphore_init)(const Addr semaphore, in DRD_() function
177 DRD_(trace_msg)("[%u] sem_init 0x%lx value %u", in DRD_()
178 DRD_(thread_get_running_tid)(), semaphore, value); in DRD_()
184 SemaphoreErrInfo SEI = { DRD_(thread_get_running_tid)(), semaphore }; in DRD_()
[all …]
Ddrd_mutex.h37 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 …]
Ddrd_load_store.c71 Bool DRD_(get_check_stack_accesses)() in DRD_() function
76 void DRD_(set_check_stack_accesses)(const Bool c) in DRD_() function
82 Bool DRD_(get_first_race_only)() in DRD_() function
87 void DRD_(set_first_race_only)(const Bool fro) in DRD_() function
93 void DRD_(trace_mem_access)(const Addr addr, const SizeT size, in DRD_() function
98 if (DRD_(is_any_traced)(addr, addr + size)) in DRD_()
102 vc = DRD_(vc_aprint)(DRD_(thread_get_vc)(DRD_(thread_get_running_tid)())); in DRD_()
104 DRD_(trace_msg_w_bt)("store 0x%lx size %lu val %lu/0x%lx (thread %u /" in DRD_()
106 stored_value_lo, DRD_(thread_get_running_tid)(), in DRD_()
113 DRD_(trace_msg_w_bt)("store 0x%lx size %lu val %llu/0x%llx (thread %u" in DRD_()
[all …]
Ddrd_segment.h63 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 …]
Ddrd_suppression.h9 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 …]
Ddrd_vc.c36 void DRD_(vc_reserve)(VectorClock* const vc, const unsigned new_capacity);
46 void DRD_(vc_init)(VectorClock* const vc, in DRD_() function
54 DRD_(vc_reserve)(vc, size); in DRD_()
62 DRD_(vc_check)(vc); in DRD_()
67 void DRD_(vc_cleanup)(VectorClock* const vc) in DRD_() function
69 DRD_(vc_reserve)(vc, 0); in DRD_()
73 void DRD_(vc_copy)(VectorClock* const new, const VectorClock* const rhs) in DRD_() function
75 DRD_(vc_init)(new, rhs->vc, rhs->size); in DRD_()
79 void DRD_(vc_assign)(VectorClock* const lhs, const VectorClock* const rhs) in DRD_() function
81 DRD_(vc_cleanup)(lhs); in DRD_()
[all …]
Ddrd_bitmap.c54 void DRD_(bm_module_init)(void) in DRD_() function
62 void DRD_(bm_module_cleanup)(void) in DRD_() function
69 struct bitmap* DRD_(bm_new)() in DRD_() function
78 DRD_(bm_init)(bm); in DRD_()
83 void DRD_(bm_delete)(struct bitmap* const bm) in DRD_() function
87 DRD_(bm_cleanup)(bm); in DRD_()
92 void DRD_(bm_init)(struct bitmap* const bm) in DRD_() function
113 void DRD_(bm_cleanup)(struct bitmap* const bm) in DRD_() function
127 void DRD_(bm_access_range)(struct bitmap* const bm, in DRD_() function
134 return DRD_(bm_access_range_load)(bm, a1, a2); in DRD_()
[all …]
Ddrd_cond.h40 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 …]
Ddrd_vc.h73 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 …]
Ddrd_rwlock.h40 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 …]
/external/valgrind/drd/tests/
Dunit_bitmap.c61 Bool DRD_(is_suppressed)(const Addr a1, const Addr a2) in DRD_() function
106 equal = DRD_(bm_equal)(bm1, bm2); in bm_equal_print_diffs()
114 if (DRD_(bm_has_1)(bm1, i, eLoad) != DRD_(bm_has_1)(bm2, i, eLoad) in bm_equal_print_diffs()
115 || DRD_(bm_has_1)(bm1, i, eStore) != DRD_(bm_has_1)(bm2, i, eStore)) in bm_equal_print_diffs()
119 DRD_(bm_has_1)(bm1, i, eLoad) ? 'R' : ' ', in bm_equal_print_diffs()
120 DRD_(bm_has_1)(bm1, i, eStore) ? 'W' : ' ', in bm_equal_print_diffs()
121 DRD_(bm_has_1)(bm2, i, eLoad) ? 'R' : ' ', in bm_equal_print_diffs()
122 DRD_(bm_has_1)(bm2, i, eStore) ? 'W' : ' ' in bm_equal_print_diffs()
138 bm = DRD_(bm_new)(); in bm_test1()
142 DRD_(bm_access_range)(bm, in bm_test1()
[all …]
Dunit_vc.c48 Bool DRD_(is_suppressed)(const Addr a1, const Addr a2) in DRD_() function
68 DRD_(vc_init)(&vc1, vc1elem, sizeof(vc1elem)/sizeof(vc1elem[0])); in vc_unittest()
69 DRD_(vc_init)(&vc2, vc2elem, sizeof(vc2elem)/sizeof(vc2elem[0])); in vc_unittest()
70 DRD_(vc_init)(&vc3, 0, 0); in vc_unittest()
71 DRD_(vc_init)(&vc4, vc4elem, sizeof(vc4elem)/sizeof(vc4elem[0])); in vc_unittest()
72 DRD_(vc_init)(&vc5, vc5elem, sizeof(vc5elem)/sizeof(vc5elem[0])); in vc_unittest()
74 DRD_(vc_combine)(&vc3, &vc1); in vc_unittest()
75 DRD_(vc_combine)(&vc3, &vc2); in vc_unittest()
77 fprintf(stderr, "vc1: %s", (str = DRD_(vc_aprint)(&vc1))); in vc_unittest()
79 fprintf(stderr, "\nvc2: %s", (str = DRD_(vc_aprint)(&vc2))); in vc_unittest()
[all …]

12