Home
last modified time | relevance | path

Searched refs:ThreadId (Results 1 – 25 of 126) sorted by relevance

123456

/external/valgrind/main/coregrind/
Dpub_core_tooliface.h139 Bool (*tool_handle_client_request)(ThreadId, UWord*, UWord*);
142 void (*tool_pre_syscall) (ThreadId, UInt, UWord*, UInt);
143 void (*tool_post_syscall)(ThreadId, UInt, UWord*, UInt, SysRes);
150 void* (*tool_malloc) (ThreadId, SizeT);
151 void* (*tool___builtin_new) (ThreadId, SizeT);
152 void* (*tool___builtin_vec_new) (ThreadId, SizeT);
153 void* (*tool_memalign) (ThreadId, SizeT, SizeT);
154 void* (*tool_calloc) (ThreadId, SizeT, SizeT);
155 void (*tool_free) (ThreadId, void*);
156 void (*tool___builtin_delete) (ThreadId, void*);
[all …]
Dpub_core_replacemalloc.h43 void* (*tl_malloc) (ThreadId tid, SizeT n);
44 void* (*tl___builtin_new) (ThreadId tid, SizeT n);
45 void* (*tl___builtin_vec_new) (ThreadId tid, SizeT n);
46 void* (*tl_memalign) (ThreadId tid, SizeT align, SizeT n);
47 void* (*tl_calloc) (ThreadId tid, SizeT nmemb, SizeT n);
48 void (*tl_free) (ThreadId tid, void* p);
49 void (*tl___builtin_delete) (ThreadId tid, void* p);
50 void (*tl___builtin_vec_delete)(ThreadId tid, void* p);
51 void* (*tl_realloc) (ThreadId tid, void* p, SizeT size);
52 SizeT (*tl_malloc_usable_size) (ThreadId tid, void* payload);
[all …]
Dpub_core_scheduler.h41 extern ThreadId VG_(alloc_ThreadState)(void);
44 extern void VG_(exit_thread)(ThreadId tid);
49 extern void VG_(get_thread_out_of_syscall)(ThreadId tid);
52 extern void VG_(nuke_all_threads_except) ( ThreadId me,
60 extern void VG_(acquire_BigLock) ( ThreadId tid, HChar* who );
75 extern void VG_(release_BigLock) ( ThreadId tid,
82 extern Bool VG_(owns_BigLock_LL) ( ThreadId tid );
89 extern VgSchedReturnCode VG_(scheduler) ( ThreadId tid );
93 extern ThreadId VG_(scheduler_init_phase1) ( void );
97 extern void VG_(scheduler_init_phase2) ( ThreadId main_tid,
Dpub_core_signals.h54 extern void VG_(poll_signals) ( ThreadId );
57 extern SysRes VG_(do_sys_sigaltstack) ( ThreadId tid, vki_stack_t* ss,
62 extern SysRes VG_(do_sys_sigprocmask) ( ThreadId tid, Int how,
67 ( ThreadId tid, /* OUT */ vki_sigset_t* saved_mask );
74 extern void VG_(synth_fault) (ThreadId tid);
75 extern void VG_(synth_fault_mapping)(ThreadId tid, Addr addr);
76 extern void VG_(synth_fault_perms) (ThreadId tid, Addr addr);
77 extern void VG_(synth_sigill) (ThreadId tid, Addr addr);
78 extern void VG_(synth_sigtrap) (ThreadId tid);
79 extern void VG_(synth_sigbus) (ThreadId tid);
Dm_threadstate.c45 ThreadId VG_(running_tid) = VG_INVALID_THREADID;
55 ThreadId tid; in VG_()
81 ThreadState *VG_(get_ThreadState)(ThreadId tid) in VG_()
88 Bool VG_(is_valid_tid) ( ThreadId tid ) in VG_()
98 ThreadId VG_(get_running_tid)(void) in VG_()
103 Bool VG_(is_running_thread)(ThreadId tid) in VG_()
114 inline Bool VG_(is_exiting)(ThreadId tid) in VG_()
124 ThreadId tid; in VG_()
138 ThreadId tid; in VG_()
149 ThreadId VG_(lwpid_to_vgtid)(Int lwp) in VG_()
[all …]
Dm_tooliface.c265 Bool (*handle)(ThreadId, UWord*, UWord*) in VG_()
273 void(*pre) (ThreadId, UInt, UWord*, UInt), in VG_()
274 void(*post)(ThreadId, UInt, UWord*, UInt, SysRes res) in VG_()
293 void* (*malloc) ( ThreadId, SizeT ), in VG_()
294 void* (*__builtin_new) ( ThreadId, SizeT ), in VG_()
295 void* (*__builtin_vec_new) ( ThreadId, SizeT ), in VG_()
296 void* (*memalign) ( ThreadId, SizeT, SizeT ), in VG_()
297 void* (*calloc) ( ThreadId, SizeT, SizeT ), in VG_()
298 void (*free) ( ThreadId, void* ), in VG_()
299 void (*__builtin_delete) ( ThreadId, void* ), in VG_()
[all …]
Dpub_core_syswrap.h41 extern void VG_(main_thread_wrapper_NORETURN)(ThreadId tid);
43 extern void VG_(client_syscall) ( ThreadId tid, UInt trc );
45 extern void VG_(post_syscall) ( ThreadId tid );
52 ThreadId tid,
59 extern void VG_(reap_threads)(ThreadId self);
75 (ThreadId,VgSchedReturnCode);
Dpub_core_threadstate.h135 ThreadId parent; // parent tid (if any)
147 void (*post_mach_trap_fn)(ThreadId tid,
286 ThreadId tid;
371 extern ThreadId VG_(running_tid);
385 extern ThreadState *VG_(get_ThreadState) ( ThreadId tid );
388 extern Bool VG_(is_valid_tid) ( ThreadId tid );
391 extern Bool VG_(is_running_thread)(ThreadId tid);
394 extern Bool VG_(is_exiting)(ThreadId tid);
404 extern ThreadId VG_(lwpid_to_vgtid)(Int lwpid);
Dpub_core_libcproc.h83 extern void VG_(do_atfork_pre) ( ThreadId tid );
84 extern void VG_(do_atfork_parent) ( ThreadId tid );
85 extern void VG_(do_atfork_child) ( ThreadId tid );
Dpub_core_gdbserver.h44 void VG_(gdbserver_prerun_action) (ThreadId tid);
49 extern Bool VG_(gdbserver_activity) (ThreadId tid);
84 extern Bool VG_(gdbserver_report_signal) (Int signo, ThreadId tid);
/external/valgrind/main/include/
Dpub_tool_tooliface.h69 ThreadId tid; /* tid requesting translation */
410 Bool (*handle_client_request)(ThreadId tid, UWord* arg_block, UWord* ret)
425 void (* pre_syscall)(ThreadId tid, UInt syscallno,
427 void (*post_syscall)(ThreadId tid, UInt syscallno,
448 void* (*pmalloc) ( ThreadId tid, SizeT n ),
449 void* (*p__builtin_new) ( ThreadId tid, SizeT n ),
450 void* (*p__builtin_vec_new) ( ThreadId tid, SizeT n ),
451 void* (*pmemalign) ( ThreadId tid, SizeT align, SizeT n ),
452 void* (*pcalloc) ( ThreadId tid, SizeT nmemb, SizeT size1 ),
453 void (*pfree) ( ThreadId tid, void* p ),
[all …]
Dpub_tool_machine.h99 Addr VG_(get_IP) ( ThreadId tid );
100 Addr VG_(get_SP) ( ThreadId tid );
110 VG_(get_shadow_regs_area) ( ThreadId tid,
114 VG_(set_shadow_regs_area) ( ThreadId tid,
120 void VG_(set_syscall_return_shadows) ( ThreadId tid,
130 extern void VG_(apply_to_GP_regs)(void (*f)(ThreadId tid,
136 extern void VG_(thread_stack_reset_iter) ( /*OUT*/ThreadId* tid );
137 extern Bool VG_(thread_stack_next) ( /*MOD*/ThreadId* tid,
142 extern Addr VG_(thread_get_stack_max) ( ThreadId tid );
145 extern SizeT VG_(thread_get_stack_size) ( ThreadId tid );
[all …]
/external/valgrind/main/exp-sgcheck/
Dh_main.h59 void* h_replace_malloc ( ThreadId tid, SizeT n );
60 void* h_replace___builtin_new ( ThreadId tid, SizeT n );
61 void* h_replace___builtin_vec_new ( ThreadId tid, SizeT n );
62 void* h_replace_memalign ( ThreadId tid, SizeT align, SizeT n );
63 void* h_replace_calloc ( ThreadId tid, SizeT nmemb, SizeT size1 );
64 void h_replace_free ( ThreadId tid, void* p );
65 void h_replace___builtin_delete ( ThreadId tid, void* p );
66 void h_replace___builtin_vec_delete ( ThreadId tid, void* p );
67 void* h_replace_realloc ( ThreadId tid, void* p_old, SizeT new_size );
68 SizeT h_replace_malloc_usable_size ( ThreadId tid, void* p );
Dh_main.c286 static Seg* add_new_segment ( ThreadId tid, Addr p, SizeT size ) in add_new_segment()
303 void* alloc_and_new_mem_heap ( ThreadId tid, in alloc_and_new_mem_heap()
319 static void die_and_free_mem_heap ( ThreadId tid, Seg* seg ) in die_and_free_mem_heap()
335 static void handle_free_heap( ThreadId tid, void* p ) in handle_free_heap()
350 void* h_replace_malloc ( ThreadId tid, SizeT n ) in h_replace_malloc()
356 void* h_replace___builtin_new ( ThreadId tid, SizeT n ) in h_replace___builtin_new()
362 void* h_replace___builtin_vec_new ( ThreadId tid, SizeT n ) in h_replace___builtin_vec_new()
368 void* h_replace_memalign ( ThreadId tid, SizeT align, SizeT n ) in h_replace_memalign()
374 void* h_replace_calloc ( ThreadId tid, SizeT nmemb, SizeT size1 ) in h_replace_calloc()
380 void h_replace_free ( ThreadId tid, void* p ) in h_replace_free()
[all …]
/external/valgrind/main/memcheck/
Dmc_include.h86 void* MC_(new_block) ( ThreadId tid,
90 void MC_(handle_free) ( ThreadId tid,
95 void MC_(mempool_alloc) ( ThreadId tid, Addr pool,
131 void* MC_(malloc) ( ThreadId tid, SizeT n );
132 void* MC_(__builtin_new) ( ThreadId tid, SizeT n );
133 void* MC_(__builtin_vec_new) ( ThreadId tid, SizeT n );
134 void* MC_(memalign) ( ThreadId tid, SizeT align, SizeT n );
135 void* MC_(calloc) ( ThreadId tid, SizeT nmemb, SizeT size1 );
136 void MC_(free) ( ThreadId tid, void* p );
137 void MC_(__builtin_delete) ( ThreadId tid, void* p );
[all …]
Dmc_malloc_wrappers.c252 void* MC_(new_block) ( ThreadId tid, in MC_()
296 void* MC_(malloc) ( ThreadId tid, SizeT n ) in MC_()
306 void* MC_(__builtin_new) ( ThreadId tid, SizeT n ) in MC_()
316 void* MC_(__builtin_vec_new) ( ThreadId tid, SizeT n ) in MC_()
326 void* MC_(memalign) ( ThreadId tid, SizeT alignB, SizeT n ) in MC_()
336 void* MC_(calloc) ( ThreadId tid, SizeT nmemb, SizeT size1 ) in MC_()
347 void die_and_free_mem ( ThreadId tid, MC_Chunk* mc, SizeT rzB ) in die_and_free_mem()
370 void MC_(handle_free) ( ThreadId tid, Addr p, UInt rzB, MC_AllocKind kind ) in MC_()
389 void MC_(free) ( ThreadId tid, void* p ) in MC_()
395 void MC_(__builtin_delete) ( ThreadId tid, void* p ) in MC_()
[all …]
/external/v8/src/
Dv8threads.h46 void set_id(ThreadId id) { id_ = id; } in set_id()
47 ThreadId id() { return id_; } in id()
63 ThreadId id_;
102 return mutex_owner_.Equals(ThreadId::Current()); in IsLockedByCurrentThread()
105 ThreadId CurrentId();
107 void TerminateExecution(ThreadId thread_id);
120 ThreadId mutex_owner_;
121 ThreadId lazily_archived_thread_;
Dv8threads.cc160 if (lazily_archived_thread_.Equals(ThreadId::Current())) { in RestoreThread()
161 lazily_archived_thread_ = ThreadId::Invalid(); in RestoreThread()
166 lazily_archived_thread_state_->set_id(ThreadId::Invalid()); in RestoreThread()
205 state->set_id(ThreadId::Invalid()); in RestoreThread()
214 mutex_owner_ = ThreadId::Current(); in Lock()
220 mutex_owner_ = ThreadId::Invalid(); in Unlock()
239 : id_(ThreadId::Invalid()), in ThreadState()
297 mutex_owner_(ThreadId::Invalid()), in ThreadManager()
298 lazily_archived_thread_(ThreadId::Invalid()), in ThreadManager()
315 ASSERT(lazily_archived_thread_.Equals(ThreadId::Invalid())); in ArchiveThread()
[all …]
Disolate.h147 class ThreadId {
150 ThreadId() : id_(kInvalidId) {} in ThreadId() function
153 static ThreadId Current() { return ThreadId(GetCurrentThreadId()); } in Current()
156 static ThreadId Invalid() { return ThreadId(kInvalidId); } in Invalid()
159 INLINE(bool Equals(const ThreadId& other) const) { in INLINE()
174 static ThreadId FromInteger(int id) { return ThreadId(id); } in FromInteger()
179 explicit ThreadId(int id) : id_(id) {} in ThreadId() function
238 ThreadId thread_id_;
370 PerIsolateThreadData(Isolate* isolate, ThreadId thread_id) in PerIsolateThreadData()
382 ThreadId thread_id() const { return thread_id_; } in thread_id()
[all …]
/external/valgrind/main/drd/
Ddrd_malloc_wrappers.c70 static void* new_block(ThreadId tid, SizeT size, SizeT align, Bool is_zeroed) in new_block()
89 void DRD_(malloclike_block)(const ThreadId tid, const Addr p, const SizeT size) in DRD_()
109 static void handle_free(ThreadId tid, void* p) in handle_free()
122 Bool DRD_(freelike_block)(const ThreadId tid, const Addr p, const Bool dealloc) in DRD_()
146 static void* drd_malloc(ThreadId tid, SizeT n) in drd_malloc()
152 static void* drd_memalign(ThreadId tid, SizeT align, SizeT n) in drd_memalign()
158 static void* drd_calloc(ThreadId tid, SizeT nmemb, SizeT size1) in drd_calloc()
165 static void drd_free(ThreadId tid, void* p) in drd_free()
178 static void* drd_realloc(ThreadId tid, void* p_old, SizeT new_size) in drd_realloc()
253 static void* drd___builtin_new(ThreadId tid, SizeT n) in drd___builtin_new()
[all …]
Ddrd_main.c264 const ThreadId tid, in drd_pre_mem_read()
276 const ThreadId tid, in drd_pre_mem_read_asciiz()
304 const ThreadId tid, in drd_post_mem_write()
364 ThreadId tid) in drd_start_using_mem_w_tid()
516 ThreadId vg_tid; in on_alt_stack()
544 void drd_pre_deliver_signal(const ThreadId vg_tid, const Int sigNo, in drd_pre_deliver_signal()
568 void drd_post_deliver_signal(const ThreadId vg_tid, const Int sigNo) in drd_post_deliver_signal()
591 ThreadId tid) in drd_start_using_mem_stack_signal()
603 void drd_pre_thread_create(const ThreadId creator, const ThreadId created) in drd_pre_thread_create()
624 void drd_post_thread_create(const ThreadId vg_created) in drd_post_thread_create()
[all …]
Ddrd_thread.h71 ThreadId vg_threadid; /**< Valgrind thread ID. */
134 DrdThreadId DRD_(VgThreadIdToDrdThreadId)(const ThreadId tid);
135 DrdThreadId DRD_(NewVgThreadIdToDrdThreadId)(const ThreadId tid);
137 ThreadId DRD_(DrdThreadIdToVgThreadId)(const DrdThreadId tid);
139 const ThreadId vg_created);
140 DrdThreadId DRD_(thread_post_create)(const ThreadId vg_created);
163 void DRD_(thread_set_vg_running_tid)(const ThreadId vg_tid);
164 void DRD_(thread_set_running_tid)(const ThreadId vg_tid,
/external/v8/test/cctest/
Dtest-threads.cc144 i::List<i::ThreadId>* refs, in ThreadIdValidationThread()
153 i::ThreadId thread_id = i::ThreadId::Current(); in Run()
166 i::List<i::ThreadId>* refs_;
175 i::List<i::ThreadId> refs(kNThreads); in TEST()
183 refs.Add(i::ThreadId::Invalid()); in TEST()
/external/valgrind/main/coregrind/m_scheduler/
Dscheduler.c123 static void do_client_request ( ThreadId tid );
124 static void scheduler_sanity ( ThreadId tid );
125 static void mostly_clear_thread_record ( ThreadId tid );
174 void print_sched_event ( ThreadId tid, Char* what ) in print_sched_event()
229 ThreadId VG_(alloc_ThreadState) ( void ) in VG_()
253 void VG_(acquire_BigLock)(ThreadId tid, HChar* who) in VG_()
301 void VG_(release_BigLock)(ThreadId tid, ThreadStatus sleepstate, HChar* who) in VG_()
352 Bool VG_(owns_BigLock_LL) ( ThreadId tid ) in VG_()
362 void VG_(exit_thread)(ThreadId tid) in VG_()
383 void VG_(get_thread_out_of_syscall)(ThreadId tid) in VG_()
[all …]
/external/valgrind/main/coregrind/m_syswrap/
Dpriv_syswrap-generic.h40 Bool ML_(valid_client_addr)(Addr start, SizeT size, ThreadId tid,
53 Bool ML_(fd_allowed)(Int fd, const Char *syscallname, ThreadId tid, Bool isNewFD);
55 extern void ML_(record_fd_open_named) (ThreadId tid, Int fd);
56 extern void ML_(record_fd_open_nameless) (ThreadId tid, Int fd);
57 extern void ML_(record_fd_open_with_given_name)(ThreadId tid, Int fd,
76 ML_(buf_and_len_pre_check) ( ThreadId tid, Addr buf_p, Addr buflen_p,
79 ML_(buf_and_len_post_check) ( ThreadId tid, SysRes res,
84 void ML_(PRE_unknown_ioctl)(ThreadId tid, UWord request, UWord arg);
86 void ML_(POST_unknown_ioctl)(ThreadId tid, UInt res, UWord request, UWord arg);
216 #define TId ThreadId

123456