Home
last modified time | relevance | path

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

12

/external/valgrind/main/drd/
Ddrd_thread_bitmap.h38 DRD_(bm_access_load_1)(DRD_(sg_bm)(DRD_(running_thread_get_segment)()), a1); in bm_access_load_1_triggers_conflict()
39 return DRD_(bm_load_1_has_conflict_with)(DRD_(thread_get_conflict_set)(), in bm_access_load_1_triggers_conflict()
48 bm_access_aligned_load(DRD_(sg_bm)(DRD_(running_thread_get_segment)()), a1, 2); in bm_access_load_2_triggers_conflict()
49 return bm_aligned_load_has_conflict_with(DRD_(thread_get_conflict_set)(), in bm_access_load_2_triggers_conflict()
54 DRD_(bm_access_range)(DRD_(sg_bm)(DRD_(running_thread_get_segment)()), in bm_access_load_2_triggers_conflict()
56 return DRD_(bm_has_conflict_with)(DRD_(thread_get_conflict_set)(), in bm_access_load_2_triggers_conflict()
66 bm_access_aligned_load(DRD_(sg_bm)(DRD_(running_thread_get_segment)()), a1, 4); in bm_access_load_4_triggers_conflict()
67 return bm_aligned_load_has_conflict_with(DRD_(thread_get_conflict_set)(), in bm_access_load_4_triggers_conflict()
72 DRD_(bm_access_range)(DRD_(sg_bm)(DRD_(running_thread_get_segment)()), in bm_access_load_4_triggers_conflict()
74 return DRD_(bm_has_conflict_with)(DRD_(thread_get_conflict_set)(), in bm_access_load_4_triggers_conflict()
[all …]
Ddrd_thread.h115 extern DrdThreadId DRD_(g_drd_running_tid);
117 extern ThreadInfo DRD_(g_threadinfo)[DRD_N_THREADS];
119 extern struct bitmap* DRD_(g_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);
130 int DRD_(thread_get_segment_merge_interval)(void);
[all …]
Ddrd_thread.c69 DrdThreadId DRD_(g_drd_running_tid) = DRD_INVALID_THREADID;
70 ThreadInfo DRD_(g_threadinfo)[DRD_N_THREADS];
71 struct bitmap* DRD_(g_conflict_set);
87 void DRD_(thread_trace_context_switches)(const Bool t) in DRD_() function
94 void DRD_(thread_trace_conflict_set)(const Bool t) in DRD_() function
101 void DRD_(thread_trace_conflict_set_bm)(const Bool t) in DRD_() function
108 Bool DRD_(thread_get_trace_fork_join)(void) in DRD_() function
114 void DRD_(thread_set_trace_fork_join)(const Bool t) in DRD_() function
121 void DRD_(thread_set_segment_merging)(const Bool m) in DRD_() function
128 int DRD_(thread_get_segment_merge_interval)(void) in DRD_() function
[all …]
Ddrd_clientreq.c50 Bool DRD_(g_free_is_write);
64 void DRD_(clientreq_init)(void) in DRD_() function
76 const DrdThreadId drd_tid = DRD_(thread_get_running_tid)(); in handle_client_request()
79 tl_assert(DRD_(VgThreadIdToDrdThreadId)(vg_tid) == drd_tid); in handle_client_request()
84 if (DRD_(g_free_is_write)) { in handle_client_request()
86 .tid = DRD_(thread_get_running_tid)(), in handle_client_request()
97 DRD_(malloclike_block)(vg_tid, arg[1]/*addr*/, arg[2]/*size*/); in handle_client_request()
101 if (!DRD_(freelike_block)(vg_tid, arg[1]/*addr*/, False)) in handle_client_request()
104 .tid = DRD_(thread_get_running_tid)(), in handle_client_request()
113 DRD_(malloclike_block)(vg_tid, arg[1]/*addr*/, arg[3]/*newSize*/); in handle_client_request()
[all …]
Ddrd_suppression.c36 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) in DRD_() function
50 DRD_(s_trace_suppression) = trace_suppression; in DRD_()
53 void DRD_(suppression_init)(void) in DRD_() function
55 tl_assert(DRD_(s_suppressed) == 0); in DRD_()
56 tl_assert(DRD_(s_traced) == 0); in DRD_()
57 DRD_(s_suppressed) = DRD_(bm_new)(); in DRD_()
[all …]
Ddrd_main.c69 static Bool DRD_(process_cmd_line_option)(Char* arg) in DRD_() function
99 else if VG_BOOL_CLO(arg, "--free-is-write", DRD_(g_free_is_write)) {} in DRD_()
129 DRD_(set_check_stack_accesses)(check_stack_accesses); in DRD_()
132 DRD_(mutex_set_lock_threshold)(exclusive_threshold_ms); in DRD_()
133 DRD_(rwlock_set_exclusive_threshold)(exclusive_threshold_ms); in DRD_()
137 DRD_(set_first_race_only)(first_race_only); in DRD_()
140 DRD_(thread_set_join_list_vol)(join_list_vol); in DRD_()
143 DRD_(cond_set_report_signal_unlocked)(report_signal_unlocked); in DRD_()
147 DRD_(rwlock_set_shared_threshold)(shared_threshold_ms); in DRD_()
150 DRD_(thread_set_segment_merging)(segment_merging); in DRD_()
[all …]
Ddrd_rwlock.c62 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) in DRD_() function
73 DRD_(s_trace_rwlock) = trace_rwlock; in DRD_()
76 void DRD_(rwlock_set_exclusive_threshold)(const UInt exclusive_threshold_ms) in DRD_() function
78 DRD_(s_exclusive_threshold_ms) = exclusive_threshold_ms; in DRD_()
81 void DRD_(rwlock_set_shared_threshold)(const UInt shared_threshold_ms) in DRD_() function
83 DRD_(s_shared_threshold_ms) = shared_threshold_ms; in DRD_()
[all …]
Ddrd_cond.c40 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 void DRD_(cond_set_report_signal_unlocked)(const Bool r) in DRD_() function
53 DRD_(s_report_signal_unlocked) = r; in DRD_()
56 void DRD_(cond_set_trace)(const Bool trace_cond) in DRD_() function
58 DRD_(s_trace_cond) = trace_cond; in DRD_()
62 void DRD_(cond_initialize)(struct cond_info* const p, const Addr cond) in DRD_() function
68 p->cleanup = (void(*)(DrdClientobj*))(DRD_(cond_cleanup)); in DRD_()
78 static void DRD_(cond_cleanup)(struct cond_info* p) in DRD_() function
[all …]
Dpub_drd_bitmap.h79 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);
91 void DRD_(bm_access_load_8)(struct bitmap* const bm, const Addr a1);
[all …]
Ddrd_hb.c51 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) in DRD_() function
63 DRD_(s_trace_hb) = trace_hb; in DRD_()
70 void DRD_(hb_thread_initialize)(struct hb_thread_info* const p, in DRD_() function
80 static void DRD_(hb_thread_destroy)(struct hb_thread_info* const p) in DRD_() function
83 DRD_(sg_put)(p->sg); in DRD_()
87 void DRD_(hb_initialize)(struct hb_info* const p, const Addr hb) in DRD_() function
93 p->cleanup = (void(*)(DrdClientobj*))(DRD_(hb_cleanup)); in DRD_()
103 static void DRD_(hb_cleanup)(struct hb_info* p) in DRD_() function
[all …]
Ddrd_mutex.c57 void DRD_(mutex_set_trace)(const Bool trace_mutex) in DRD_() function
63 void DRD_(mutex_set_lock_threshold)(const UInt lock_threshold_ms) in DRD_() function
69 void DRD_(mutex_initialize)(struct mutex_info* const p, in DRD_() function
92 DRD_(trace_msg)("[%d] mutex_destroy %s 0x%lx rc %d owner %d", in mutex_cleanup()
93 DRD_(thread_get_running_tid)(), in mutex_cleanup()
94 DRD_(mutex_get_typename)(p), p->a1, in mutex_cleanup()
100 MutexErrInfo MEI = { DRD_(thread_get_running_tid)(), in mutex_cleanup()
109 DRD_(sg_put)(p->last_locked_segment); in mutex_cleanup()
114 void DRD_(not_a_mutex)(const Addr mutex) in DRD_() function
116 MutexErrInfo MEI = { DRD_(thread_get_running_tid)(), in DRD_()
[all …]
Ddrd_segment.c63 ThreadId vg_created = DRD_(DrdThreadIdToVgThreadId)(created); in sg_init()
67 || DRD_(IsValidDrdThreadId)(creator)); in sg_init()
70 ? DRD_(thread_get_segment)(creator) : 0); in sg_init()
83 DRD_(vc_copy)(&sg->vc, &creator_sg->vc); in sg_init()
85 DRD_(vc_init)(&sg->vc, 0, 0); in sg_init()
86 DRD_(vc_increment)(&sg->vc, created); in sg_init()
87 DRD_(bm_init)(&sg->bm); in sg_init()
93 vc = DRD_(vc_aprint)(&sg->vc); in sg_init()
101 static void DRD_(sg_cleanup)(Segment* const sg) in DRD_() function
106 DRD_(vc_cleanup)(&sg->vc); in DRD_()
[all …]
Ddrd_barrier.c74 void DRD_(barrier_set_trace)(const Bool trace_barrier) in DRD_() function
84 void DRD_(barrier_thread_initialize)(struct barrier_thread_info* const p, in DRD_() function
98 static void DRD_(barrier_thread_destroy)(struct barrier_thread_info* const p) in DRD_() function
101 DRD_(sg_put)(p->sg); in DRD_()
102 DRD_(sg_put)(p->post_wait_sg); in DRD_()
110 void DRD_(barrier_initialize)(struct barrier_info* const p, in DRD_() function
155 DRD_(thread_get_latest_segment)(&latest_sg, DRD_(thread_get_running_tid)()); in barrier_cleanup()
159 BarrierErrInfo bei = { DRD_(thread_get_running_tid)(), p->a1, 0, 0 }; in barrier_cleanup()
170 if (q->post_wait_sg && !DRD_(vc_lte)(&q->post_wait_sg->vc, in barrier_cleanup()
175 DRD_(barrier_thread_destroy)(q); in barrier_cleanup()
[all …]
Ddrd_semaphore.c87 void DRD_(semaphore_set_trace)(const Bool trace_semaphore) in DRD_() function
124 SemaphoreErrInfo sei = { DRD_(thread_get_running_tid)(), p->a1 }; in semaphore_cleanup()
133 DRD_(sg_put)(sg); in semaphore_cleanup()
149 p = &(DRD_(clientobj_get)(semaphore, ClientSemaphore)->semaphore); in drd_semaphore_get_or_allocate()
153 p = &(DRD_(clientobj_add)(semaphore, ClientSemaphore)->semaphore); in drd_semaphore_get_or_allocate()
166 return &(DRD_(clientobj_get)(semaphore, ClientSemaphore)->semaphore); in semaphore_get()
170 struct semaphore_info* DRD_(semaphore_init)(const Addr semaphore, in DRD_() function
178 DRD_(trace_msg)("[%d] sem_init 0x%lx value %u", in DRD_()
179 DRD_(thread_get_running_tid)(), semaphore, value); in DRD_()
185 SemaphoreErrInfo SEI = { DRD_(thread_get_running_tid)(), semaphore }; in DRD_()
[all …]
Ddrd_load_store.c66 Bool DRD_(get_check_stack_accesses)() in DRD_() function
71 void DRD_(set_check_stack_accesses)(const Bool c) in DRD_() function
77 Bool DRD_(get_first_race_only)() in DRD_() function
82 void DRD_(set_first_race_only)(const Bool fro) in DRD_() function
88 void DRD_(trace_mem_access)(const Addr addr, const SizeT size, in DRD_() function
91 if (DRD_(is_any_traced)(addr, addr + size)) in DRD_()
95 vc = DRD_(vc_aprint)(DRD_(thread_get_vc)(DRD_(thread_get_running_tid)())); in DRD_()
96 DRD_(trace_msg_w_bt)("%s 0x%lx size %ld (thread %d / vc %s)", in DRD_()
101 addr, size, DRD_(thread_get_running_tid)(), vc); in DRD_()
103 tl_assert(DRD_(DrdThreadIdToVgThreadId)(DRD_(thread_get_running_tid)()) in DRD_()
[all …]
Ddrd_mutex.h38 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 …]
Ddrd_suppression.h10 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 …]
Ddrd_segment.h63 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 …]
Ddrd_cond.h41 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 …]
Ddrd_rwlock.h41 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 …]
Ddrd_vc.h74 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 …]
Ddrd_vc.c37 void DRD_(vc_reserve)(VectorClock* const vc, const unsigned new_capacity);
47 void DRD_(vc_init)(VectorClock* const vc, in DRD_() function
55 DRD_(vc_reserve)(vc, size); in DRD_()
65 void DRD_(vc_cleanup)(VectorClock* const vc) in DRD_() function
67 DRD_(vc_reserve)(vc, 0); in DRD_()
71 void DRD_(vc_copy)(VectorClock* const new, const VectorClock* const rhs) in DRD_() function
73 DRD_(vc_init)(new, rhs->vc, rhs->size); in DRD_()
77 void DRD_(vc_assign)(VectorClock* const lhs, const VectorClock* const rhs) in DRD_() function
79 DRD_(vc_cleanup)(lhs); in DRD_()
80 DRD_(vc_copy)(lhs, rhs); in DRD_()
[all …]
Ddrd_semaphore.h40 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);
/external/valgrind/main/drd/tests/
Dunit_bitmap.c55 Bool DRD_(is_suppressed)(const Addr a1, const Addr a2) in DRD_() function
93 equal = DRD_(bm_equal)(bm1, bm2); in bm_equal_print_diffs()
101 if (DRD_(bm_has_1)(bm1, i, eLoad) != DRD_(bm_has_1)(bm2, i, eLoad) in bm_equal_print_diffs()
102 || DRD_(bm_has_1)(bm1, i, eStore) != DRD_(bm_has_1)(bm2, i, eStore)) in bm_equal_print_diffs()
106 DRD_(bm_has_1)(bm1, i, eLoad) ? 'R' : ' ', in bm_equal_print_diffs()
107 DRD_(bm_has_1)(bm1, i, eStore) ? 'W' : ' ', in bm_equal_print_diffs()
108 DRD_(bm_has_1)(bm2, i, eLoad) ? 'R' : ' ', in bm_equal_print_diffs()
109 DRD_(bm_has_1)(bm2, i, eStore) ? 'W' : ' ' in bm_equal_print_diffs()
125 bm = DRD_(bm_new)(); in bm_test1()
129 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