/external/compiler-rt/lib/sanitizer_common/ |
sanitizer_thread_registry.cc | 125 ThreadContextBase *tctx = QuarantinePop(); local 126 if (tctx) { 127 tid = tctx->tid; 131 tctx = context_factory_(tid); 132 threads_[tid] = tctx; 143 CHECK_NE(tctx, 0); 146 CHECK_EQ(tctx->status, ThreadStatusInvalid); 152 tctx->SetCreated(user_id, total_threads_++, detached, 161 ThreadContextBase *tctx = threads_[tid]; local 162 if (tctx == 0 171 ThreadContextBase *tctx = threads_[tid]; local 182 ThreadContextBase *tctx = threads_[tid]; local 203 ThreadContextBase *tctx = threads_[tid]; local 212 ThreadContextBase *tctx = threads_[tid]; local 224 ThreadContextBase *tctx = threads_[tid]; local 242 ThreadContextBase *tctx = threads_[tid]; local 259 ThreadContextBase *tctx = threads_[tid]; local 273 ThreadContextBase *tctx = threads_[tid]; local [all...] |
sanitizer_thread_registry.h | 98 typedef void (*ThreadCallback)(ThreadContextBase *tctx, void *arg); 103 typedef bool (*FindThreadCallback)(ThreadContextBase *tctx, void *arg); 140 void QuarantinePush(ThreadContextBase *tctx);
|
/external/jemalloc/include/jemalloc/internal/ |
prof.h | 106 * UID that distinguishes multiple tctx's created by the same thread, 109 * - A dumper thread can cause a tctx to be retained in the purgatory 111 * - Although a single "producer" thread must create all tctx's which 283 void prof_alloc_rollback(tsd_t *tsd, prof_tctx_t *tctx, bool updated); 285 prof_tctx_t *tctx); 286 void prof_free_sampled_object(tsd_t *tsd, size_t usize, prof_tctx_t *tctx); 337 void prof_tctx_set(const void *ptr, size_t usize, prof_tctx_t *tctx); 339 prof_tctx_t *tctx); 341 prof_tctx_t *tctx); 342 void prof_malloc(const void *ptr, size_t usize, prof_tctx_t *tctx); 534 prof_tctx_t *tctx = prof_tctx_get(ptr); local [all...] |
huge.h | 28 void huge_prof_tctx_set(const void *ptr, prof_tctx_t *tctx);
|
extent.h | 86 void extent_node_prof_tctx_set(extent_node_t *node, prof_tctx_t *tctx); 189 extent_node_prof_tctx_set(extent_node_t *node, prof_tctx_t *tctx) 192 node->en_prof_tctx = tctx;
|
arena.h | 649 void arena_prof_tctx_set(const void *ptr, size_t usize, prof_tctx_t *tctx); [all...] |
/external/tcpdump/ |
signature.c | 61 MD5_CTX tctx; local 63 MD5_Init(&tctx); 64 MD5_Update(&tctx, key, key_len); 65 MD5_Final(tk, &tctx);
|
/external/compiler-rt/lib/tsan/rtl/ |
tsan_rtl_thread.cc | 159 ThreadContext *tctx; member in struct:__tsan::ThreadLeak 165 ThreadContext *tctx = static_cast<ThreadContext*>(tctx_base); local 166 if (tctx->detached || tctx->status != ThreadStatusFinished) 169 if (leaks[i].tctx->creation_stack_id == tctx->creation_stack_id) { 174 ThreadLeak leak = {tctx, 1}; 180 static void ReportIgnoresEnabled(ThreadContext *tctx, IgnoreSet *set) { 181 if (tctx->tid == 0) { 185 " created at:\n", tctx->tid, tctx->name) [all...] |
tsan_rtl_report.cc | 183 void ScopedReport::AddThread(const ThreadContext *tctx, bool suppressable) { 185 if ((u32)rep_->threads[i]->id == tctx->tid) 191 rt->id = tctx->tid; 192 rt->pid = tctx->os_id; 193 rt->running = (tctx->status == ThreadStatusRunning); 194 rt->name = internal_strdup(tctx->name); 195 rt->parent_tid = tctx->parent_tid; 197 rt->stack = SymbolizeStackId(tctx->creation_stack_id); 203 static bool FindThreadByUidLockedCallback(ThreadContextBase *tctx, void *arg) { 205 return tctx->unique_id == (u32)unique_id 223 ThreadContext *tctx = static_cast<ThreadContext*>(tctx_base); local 234 ThreadContext *tctx = static_cast<ThreadContext*>( local 313 ThreadContext *tctx = FindThreadByUidLocked(creat_tid); local 326 ThreadContext *tctx = FindThreadByTidLocked(b->tid); local 643 ThreadContext *tctx = static_cast<ThreadContext*>( local [all...] |
tsan_rtl_mutex.cc | 364 ThreadContext *tctx = static_cast<ThreadContext*>(tctx_base); local 365 if (tctx->status == ThreadStatusRunning) 366 thr->clock.set(tctx->tid, tctx->thr->fast_state.epoch()); 368 thr->clock.set(tctx->tid, tctx->epoch1); 407 ThreadContext *tctx = static_cast<ThreadContext*>(tctx_base); local 408 if (tctx->status == ThreadStatusRunning) 409 thr->last_sleep_clock.set(tctx->tid, tctx->thr->fast_state.epoch()) [all...] |
tsan_platform_mac.cc | 143 if (thr->tctx) {
|
tsan_rtl.h | 383 ThreadContext *tctx; member in struct:__tsan::ThreadState 531 void AddThread(const ThreadContext *tctx, bool suppressable = false);
|
/external/jemalloc/src/ |
prof.c | 124 static bool prof_tctx_should_destroy(prof_tctx_t *tctx); 125 static void prof_tctx_destroy(tsd_t *tsd, prof_tctx_t *tctx); 197 prof_alloc_rollback(tsd_t *tsd, prof_tctx_t *tctx, bool updated) 215 if ((uintptr_t)tctx > (uintptr_t)1U) { 216 malloc_mutex_lock(tctx->tdata->lock); 217 tctx->prepared = false; 218 if (prof_tctx_should_destroy(tctx)) 219 prof_tctx_destroy(tsd, tctx); 221 malloc_mutex_unlock(tctx->tdata->lock); 226 prof_malloc_sample_object(const void *ptr, size_t usize, prof_tctx_t *tctx) 1241 } tctx; local [all...] |
jemalloc.c | 1442 prof_tctx_t *tctx; local 1552 prof_tctx_t *tctx; local 1684 prof_tctx_t *tctx; local 1794 prof_tctx_t *old_tctx, *tctx; local 2106 prof_tctx_t *tctx; local 2226 prof_tctx_t *old_tctx, *tctx; local 2369 prof_tctx_t *old_tctx, *tctx; local [all...] |
huge.c | 428 prof_tctx_t *tctx; local 435 tctx = extent_node_prof_tctx_get(node); 438 return (tctx); 442 huge_prof_tctx_set(const void *ptr, prof_tctx_t *tctx) 450 extent_node_prof_tctx_set(node, tctx);
|
/external/compiler-rt/lib/asan/ |
asan_thread.cc | 254 AsanThreadContext *tctx = static_cast<AsanThreadContext*>(tctx_base); local 255 AsanThread *t = tctx->thread; 273 AsanThreadContext *tctx = GetThreadContextByTidLocked(0); local 274 if (ThreadStackContainsAddress(tctx, &context)) { 275 SetCurrentThread(tctx->thread); 276 return tctx->thread; 301 AsanThreadContext *tctx = static_cast<AsanThreadContext *>( local 304 return tctx ? tctx->thread : nullptr;
|
asan_stats.cc | 77 AsanThreadContext *tctx = static_cast<AsanThreadContext*>(tctx_base); local 78 if (AsanThread *t = tctx->thread)
|
/external/compiler-rt/lib/sanitizer_common/tests/ |
sanitizer_thread_registry_test.cc | 26 template<typename TCTX> 29 return new(tctx_allocator) TCTX(tid); 52 static bool HasName(ThreadContextBase *tctx, void *arg) { 54 return (0 == internal_strcmp(tctx->name, name)); 57 static bool HasUid(ThreadContextBase *tctx, void *arg) { 59 return (tctx->user_id == uid); 62 static void MarkUidAsPresent(ThreadContextBase *tctx, void *arg) { 64 arr[tctx->tid] = true;
|
/external/compiler-rt/lib/lsan/ |
lsan_thread.cc | 109 static bool FindThreadByUid(ThreadContextBase *tctx, void *arg) { 111 if (tctx->user_id == uid && tctx->status != ThreadStatusInvalid) {
|
/system/security/keystore/ |
permissions.cpp | 86 static char* tctx; variable 97 if (getcon(&tctx) != 0) { 130 bool allowed = selinux_check_access(sctx, tctx, selinux_class, str_perm,
|
/frameworks/native/cmds/servicemanager/ |
service_manager.c | 67 static bool check_mac_perms(pid_t spid, uid_t uid, const char *tctx, const char *perm, const char *name) 83 int result = selinux_check_access(sctx, tctx, class, perm, (void *) &ad); 102 char *tctx = NULL; local 113 if (selabel_lookup(sehandle, &tctx, name, 0) != 0) { 118 allowed = check_mac_perms(spid, uid, tctx, perm, name); 119 freecon(tctx);
|
/system/core/init/ |
property_service.cpp | 75 char *tctx = NULL; local 85 if (selabel_lookup(sehandle_prop, &tctx, name, 1) != 0) 91 if (selinux_check_access(sctx, tctx, "property_service", "set", reinterpret_cast<void*>(&audit_data)) == 0) 94 freecon(tctx);
|
/external/boringssl/src/ssl/ |
s3_srvr.c | 2009 SSL_CTX *tctx = ssl->initial_ctx; local [all...] |