HomeSort by: relevance | last modified time | path
    Searched refs:ThreadState (Results 1 - 25 of 90) sorted by relevancy

1 2 3 4

  /src/external/gpl3/gcc/dist/libsanitizer/tsan/
tsan_fd.h 41 void FdAcquire(ThreadState *thr, uptr pc, int fd);
42 void FdRelease(ThreadState *thr, uptr pc, int fd);
43 void FdAccess(ThreadState *thr, uptr pc, int fd);
44 void FdClose(ThreadState *thr, uptr pc, int fd, bool write = true);
45 void FdFileCreate(ThreadState *thr, uptr pc, int fd);
46 void FdDup(ThreadState *thr, uptr pc, int oldfd, int newfd, bool write);
47 void FdPipeCreate(ThreadState *thr, uptr pc, int rfd, int wfd);
48 void FdEventCreate(ThreadState *thr, uptr pc, int fd);
49 void FdSignalCreate(ThreadState *thr, uptr pc, int fd);
50 void FdInotifyCreate(ThreadState *thr, uptr pc, int fd)
    [all...]
tsan_rtl.h 108 // In C++ it is tied to an OS thread just like ThreadState, however ideally
111 // ThreadState's (which are tied to Gs).
112 // A ThreadState must be wired with a Processor to handle events.
114 ThreadState *thr; // currently wired thread, or nullptr
143 ThreadState *thr;
159 struct ThreadState {
174 ThreadState* current;
236 explicit ThreadState(Tid tid);
241 ThreadState *cur_thread();
242 void set_cur_thread(ThreadState *thr)
    [all...]
tsan_mman.h 33 void *user_alloc_internal(ThreadState *thr, uptr pc, uptr sz,
36 void user_free(ThreadState *thr, uptr pc, void *p, bool signal = true);
38 void *user_alloc(ThreadState *thr, uptr pc, uptr sz);
39 void *user_calloc(ThreadState *thr, uptr pc, uptr sz, uptr n);
40 void *user_realloc(ThreadState *thr, uptr pc, void *p, uptr sz);
41 void *user_reallocarray(ThreadState *thr, uptr pc, void *p, uptr sz, uptr n);
42 void *user_memalign(ThreadState *thr, uptr pc, uptr align, uptr sz);
43 int user_posix_memalign(ThreadState *thr, uptr pc, void **memptr, uptr align,
45 void *user_aligned_alloc(ThreadState *thr, uptr pc, uptr align, uptr sz);
46 void *user_valloc(ThreadState *thr, uptr pc, uptr sz)
    [all...]
tsan_interface.cpp 31 ThreadState *thr = cur_thread();
38 ThreadState *thr = cur_thread();
47 ThreadState *thr = cur_thread();
54 ThreadState *thr = cur_thread();
72 FiberDestroy(cur_thread(), CALLERPC, static_cast<ThreadState *>(fiber));
77 FiberSwitch(cur_thread(), CALLERPC, static_cast<ThreadState *>(fiber), flags);
82 ThreadSetName(static_cast<ThreadState *>(fiber), name);
tsan_platform_mac.cpp 49 static char main_thread_state[sizeof(ThreadState)] ALIGNED(
51 static ThreadState *dead_thread_state;
55 // reference to the ThreadState object alive in TLS:
77 auto dts = (ThreadState *)MmapOrDie(sizeof(ThreadState), "ThreadState");
82 res = internal_mprotect(dts, sizeof(ThreadState), PROT_READ); // immutable
87 ThreadState *cur_thread() {
91 return (ThreadState *)main_thread_state;
96 ThreadState *thr = (ThreadState *)pthread_getspecific(thread_state_key)
    [all...]
tsan_rtl_thread.cpp 74 static void ThreadCheckIgnore(ThreadState *thr) {
83 static void ThreadCheckIgnore(ThreadState *thr) {}
86 void ThreadFinalize(ThreadState *thr) {
104 int ThreadCount(ThreadState *thr) {
116 Tid ThreadCreate(ThreadState *thr, uptr pc, uptr uid, bool detached) {
145 ThreadState *thr;
152 void ThreadStart(ThreadState *thr, Tid tid, tid_t os_id,
203 thr = static_cast<ThreadState *>(arg);
205 new (thr) ThreadState(tid);
214 void ThreadFinish(ThreadState *thr)
    [all...]
tsan_fd.cpp 56 static FdSync *allocsync(ThreadState *thr, uptr pc) {
69 static void unref(ThreadState *thr, uptr pc, FdSync *s) {
80 static FdDesc *fddesc(ThreadState *thr, uptr pc, int fd) {
101 static void init(ThreadState *thr, uptr pc, int fd, FdSync *s,
145 void FdOnFork(ThreadState *thr, uptr pc) {
178 void FdAcquire(ThreadState *thr, uptr pc, int fd) {
189 void FdRelease(ThreadState *thr, uptr pc, int fd) {
202 void FdAccess(ThreadState *thr, uptr pc, int fd) {
210 void FdClose(ThreadState *thr, uptr pc, int fd, bool write) {
253 void FdFileCreate(ThreadState *thr, uptr pc, int fd)
    [all...]
tsan_mman.cpp 88 ThreadState *thr = cur_thread();
111 ThreadState *thr = cur_thread();
166 static void SignalUnsafeCall(ThreadState *thr, uptr pc) {
181 void *user_alloc_internal(ThreadState *thr, uptr pc, uptr sz, uptr align,
213 void user_free(ThreadState *thr, uptr pc, void *p, bool signal) {
222 void *user_alloc(ThreadState *thr, uptr pc, uptr sz) {
226 void *user_calloc(ThreadState *thr, uptr pc, uptr size, uptr n) {
239 void *user_reallocarray(ThreadState *thr, uptr pc, void *p, uptr size, uptr n) {
249 void OnUserAlloc(ThreadState *thr, uptr pc, uptr p, uptr sz, bool write) {
267 void OnUserFree(ThreadState *thr, uptr pc, uptr p, bool write)
    [all...]
  /src/sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/
tsan_fd.h 42 void FdAcquire(ThreadState *thr, uptr pc, int fd);
43 void FdRelease(ThreadState *thr, uptr pc, int fd);
44 void FdAccess(ThreadState *thr, uptr pc, int fd);
45 void FdClose(ThreadState *thr, uptr pc, int fd, bool write = true);
46 void FdFileCreate(ThreadState *thr, uptr pc, int fd);
47 void FdDup(ThreadState *thr, uptr pc, int oldfd, int newfd, bool write);
48 void FdPipeCreate(ThreadState *thr, uptr pc, int rfd, int wfd);
49 void FdEventCreate(ThreadState *thr, uptr pc, int fd);
50 void FdSignalCreate(ThreadState *thr, uptr pc, int fd);
51 void FdInotifyCreate(ThreadState *thr, uptr pc, int fd)
    [all...]
tsan_mman.h 30 void *user_alloc_internal(ThreadState *thr, uptr pc, uptr sz,
33 void user_free(ThreadState *thr, uptr pc, void *p, bool signal = true);
35 void *user_alloc(ThreadState *thr, uptr pc, uptr sz);
36 void *user_calloc(ThreadState *thr, uptr pc, uptr sz, uptr n);
37 void *user_realloc(ThreadState *thr, uptr pc, void *p, uptr sz);
38 void *user_memalign(ThreadState *thr, uptr pc, uptr align, uptr sz);
39 int user_posix_memalign(ThreadState *thr, uptr pc, void **memptr, uptr align,
41 void *user_aligned_alloc(ThreadState *thr, uptr pc, uptr align, uptr sz);
42 void *user_valloc(ThreadState *thr, uptr pc, uptr sz);
43 void *user_pvalloc(ThreadState *thr, uptr pc, uptr sz)
    [all...]
tsan_platform_mac.cc 72 // the ThreadState object. The main thread's ThreadState is stored separately
76 ALIGNED(64) static char main_thread_state[sizeof(ThreadState)];
78 ThreadState **cur_thread_location() {
79 ThreadState **thread_identity = (ThreadState **)pthread_self();
84 ThreadState *cur_thread() {
85 ThreadState **thr_state_loc = cur_thread_location();
87 return (ThreadState *)&main_thread_state;
89 ThreadState **fake_tls = (ThreadState **)MemToShadow((uptr)thr_state_loc)
    [all...]
tsan_rtl.h 346 // In C++ it is tied to an OS thread just like ThreadState, however ideally
349 // ThreadState's (which are tied to Gs).
350 // A ThreadState must be wired with a Processor to handle events.
352 ThreadState *thr; // currently wired thread, or nullptr
374 struct ThreadState {
383 // QUESTION: can we can squeeze this into ThreadState::Fast?
384 // E.g. ThreadState::Fast is a 44-bit, 32 are taken by synch_epoch and 12 are
456 explicit ThreadState(Context *ctx, int tid, int unique_id, u64 epoch,
464 ThreadState *cur_thread();
469 INLINE ThreadState *cur_thread()
    [all...]
tsan_interceptors.h 11 ScopedInterceptor(ThreadState *thr, const char *fname, uptr pc);
16 ThreadState *const thr_;
27 ThreadState *thr = cur_thread(); \
tsan_rtl_thread.cc 43 ThreadState *caller_thr = static_cast<ThreadState *>(arg);
49 ThreadState *thr;
77 ThreadState *thr1 = static_cast<ThreadState*>(arg);
82 ThreadState *thr;
96 new(thr) ThreadState(ctx, tid, unique_id, epoch0, reuse_count,
149 thr->~ThreadState();
196 static void ThreadCheckIgnore(ThreadState *thr) {
205 static void ThreadCheckIgnore(ThreadState *thr) {
    [all...]
tsan_fd.cc 50 static FdSync *allocsync(ThreadState *thr, uptr pc) {
63 static void unref(ThreadState *thr, uptr pc, FdSync *s) {
74 static FdDesc *fddesc(ThreadState *thr, uptr pc, int fd) {
94 static void init(ThreadState *thr, uptr pc, int fd, FdSync *s,
128 void FdOnFork(ThreadState *thr, uptr pc) {
160 void FdAcquire(ThreadState *thr, uptr pc, int fd) {
171 void FdRelease(ThreadState *thr, uptr pc, int fd) {
182 void FdAccess(ThreadState *thr, uptr pc, int fd) {
190 void FdClose(ThreadState *thr, uptr pc, int fd, bool write) {
218 void FdFileCreate(ThreadState *thr, uptr pc, int fd)
    [all...]
tsan_mman.cc 87 ThreadState *thr = cur_thread();
110 ThreadState *thr = cur_thread();
140 static void SignalUnsafeCall(ThreadState *thr, uptr pc) {
156 void *user_alloc_internal(ThreadState *thr, uptr pc, uptr sz, uptr align,
179 void user_free(ThreadState *thr, uptr pc, void *p, bool signal) {
188 void *user_alloc(ThreadState *thr, uptr pc, uptr sz) {
192 void *user_calloc(ThreadState *thr, uptr pc, uptr size, uptr n) {
205 void OnUserAlloc(ThreadState *thr, uptr pc, uptr p, uptr sz, bool write) {
214 void OnUserFree(ThreadState *thr, uptr pc, uptr p, bool write) {
222 void *user_realloc(ThreadState *thr, uptr pc, void *p, uptr sz)
    [all...]
  /src/external/gpl3/gcc.old/dist/libsanitizer/tsan/
tsan_fd.h 41 void FdAcquire(ThreadState *thr, uptr pc, int fd);
42 void FdRelease(ThreadState *thr, uptr pc, int fd);
43 void FdAccess(ThreadState *thr, uptr pc, int fd);
44 void FdClose(ThreadState *thr, uptr pc, int fd, bool write = true);
45 void FdFileCreate(ThreadState *thr, uptr pc, int fd);
46 void FdDup(ThreadState *thr, uptr pc, int oldfd, int newfd, bool write);
47 void FdPipeCreate(ThreadState *thr, uptr pc, int rfd, int wfd);
48 void FdEventCreate(ThreadState *thr, uptr pc, int fd);
49 void FdSignalCreate(ThreadState *thr, uptr pc, int fd);
50 void FdInotifyCreate(ThreadState *thr, uptr pc, int fd)
    [all...]
tsan_mman.h 29 void *user_alloc_internal(ThreadState *thr, uptr pc, uptr sz,
32 void user_free(ThreadState *thr, uptr pc, void *p, bool signal = true);
34 void *user_alloc(ThreadState *thr, uptr pc, uptr sz);
35 void *user_calloc(ThreadState *thr, uptr pc, uptr sz, uptr n);
36 void *user_realloc(ThreadState *thr, uptr pc, void *p, uptr sz);
37 void *user_reallocarray(ThreadState *thr, uptr pc, void *p, uptr sz, uptr n);
38 void *user_memalign(ThreadState *thr, uptr pc, uptr align, uptr sz);
39 int user_posix_memalign(ThreadState *thr, uptr pc, void **memptr, uptr align,
41 void *user_aligned_alloc(ThreadState *thr, uptr pc, uptr align, uptr sz);
42 void *user_valloc(ThreadState *thr, uptr pc, uptr sz)
    [all...]
tsan_rtl.h 106 // In C++ it is tied to an OS thread just like ThreadState, however ideally
109 // ThreadState's (which are tied to Gs).
110 // A ThreadState must be wired with a Processor to handle events.
112 ThreadState *thr; // currently wired thread, or nullptr
134 struct ThreadState {
143 // QUESTION: can we can squeeze this into ThreadState::Fast?
144 // E.g. ThreadState::Fast is a 44-bit, 32 are taken by synch_epoch and 12 are
150 ThreadState* current;
223 explicit ThreadState(Context *ctx, Tid tid, int unique_id, u64 epoch,
230 ThreadState *cur_thread()
    [all...]
tsan_interface.cpp 31 ThreadState *thr = cur_thread();
38 ThreadState *thr = cur_thread();
45 ThreadState *thr = cur_thread();
52 ThreadState *thr = cur_thread();
61 ThreadState *thr = cur_thread();
68 ThreadState *thr = cur_thread();
86 FiberDestroy(cur_thread(), CALLERPC, static_cast<ThreadState *>(fiber));
91 FiberSwitch(cur_thread(), CALLERPC, static_cast<ThreadState *>(fiber), flags);
96 ThreadSetName(static_cast<ThreadState *>(fiber), name);
tsan_rtl_thread.cpp 78 static void ThreadCheckIgnore(ThreadState *thr) {
87 static void ThreadCheckIgnore(ThreadState *thr) {}
90 void ThreadFinalize(ThreadState *thr) {
108 int ThreadCount(ThreadState *thr) {
115 ThreadState *thr;
119 Tid ThreadCreate(ThreadState *thr, uptr pc, uptr uid, bool detached) {
144 ThreadState *thr;
151 void ThreadStart(ThreadState *thr, Tid tid, tid_t os_id,
202 ThreadState(ctx, tid, unique_id, epoch0, reuse_count, args->stk_addr,
223 void ThreadFinish(ThreadState *thr)
    [all...]
tsan_platform_mac.cpp 72 // the ThreadState object. The main thread's ThreadState is stored separately
76 ALIGNED(64) static char main_thread_state[sizeof(ThreadState)];
77 static ThreadState *main_thread_state_loc = (ThreadState *)main_thread_state;
82 static ThreadState **cur_thread_location() {
88 return (ThreadState **)MemToShadow(thread_identity);
91 ThreadState *cur_thread() {
92 return (ThreadState *)SignalSafeGetOrAllocate(
93 (uptr *)cur_thread_location(), sizeof(ThreadState));
    [all...]
tsan_mman.cpp 83 ThreadState *thr = cur_thread();
106 ThreadState *thr = cur_thread();
143 static void SignalUnsafeCall(ThreadState *thr, uptr pc) {
158 void *user_alloc_internal(ThreadState *thr, uptr pc, uptr sz, uptr align,
184 void user_free(ThreadState *thr, uptr pc, void *p, bool signal) {
193 void *user_alloc(ThreadState *thr, uptr pc, uptr sz) {
197 void *user_calloc(ThreadState *thr, uptr pc, uptr size, uptr n) {
210 void *user_reallocarray(ThreadState *thr, uptr pc, void *p, uptr size, uptr n) {
220 void OnUserAlloc(ThreadState *thr, uptr pc, uptr p, uptr sz, bool write) {
229 void OnUserFree(ThreadState *thr, uptr pc, uptr p, bool write)
    [all...]
tsan_fd.cpp 49 static FdSync *allocsync(ThreadState *thr, uptr pc) {
62 static void unref(ThreadState *thr, uptr pc, FdSync *s) {
73 static FdDesc *fddesc(ThreadState *thr, uptr pc, int fd) {
94 static void init(ThreadState *thr, uptr pc, int fd, FdSync *s,
128 void FdOnFork(ThreadState *thr, uptr pc) {
160 void FdAcquire(ThreadState *thr, uptr pc, int fd) {
171 void FdRelease(ThreadState *thr, uptr pc, int fd) {
182 void FdAccess(ThreadState *thr, uptr pc, int fd) {
190 void FdClose(ThreadState *thr, uptr pc, int fd, bool write) {
218 void FdFileCreate(ThreadState *thr, uptr pc, int fd)
    [all...]
  /src/sys/external/bsd/compiler_rt/dist/lib/tsan/go/
tsan_go.cc 113 static ThreadState *main_thr;
128 Processor *ThreadState::proc() {
134 static ThreadState *AllocGoroutine() {
135 ThreadState *thr = (ThreadState*)internal_alloc(MBlockThreadContex,
136 sizeof(ThreadState));
141 void __tsan_init(ThreadState **thrp, Processor **procp,
144 ThreadState *thr = AllocGoroutine();
153 ThreadState *thr = main_thr;
162 void __tsan_read(ThreadState *thr, void *addr, void *pc)
    [all...]

Completed in 55 milliseconds

1 2 3 4