Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_thread_registry.cpp153 ThreadContextBase *tctx = QuarantinePop(); in CreateThread() local
154 if (tctx) { in CreateThread()
155 tid = tctx->tid; in CreateThread()
159 tctx = context_factory_(tid); in CreateThread()
160 threads_.push_back(tctx); in CreateThread()
173 CHECK_NE(tctx, 0); in CreateThread()
176 CHECK_EQ(tctx->status, ThreadStatusInvalid); in CreateThread()
188 tctx->SetCreated(user_id, total_threads_++, detached, parent_tid, stack_tid, in CreateThread()
197 ThreadContextBase *tctx = threads_[tid]; in RunCallbackForEachThreadLocked() local
198 if (tctx == 0) in RunCallbackForEachThreadLocked()
[all …]
H A Dsanitizer_thread_registry.h116 typedef void (*ThreadCallback)(ThreadContextBase *tctx, void *arg);
121 typedef bool (*FindThreadCallback)(ThreadContextBase *tctx, void *arg);
165 void QuarantinePush(ThreadContextBase *tctx);
/freebsd/sbin/hastd/
H A Dproto_tcp.c193 struct tcp_ctx *tctx; in tcp_setup_new() local
201 tctx = malloc(sizeof(*tctx)); in tcp_setup_new()
202 if (tctx == NULL) in tcp_setup_new()
206 if ((ret = tcp_addr(addr, PROTO_TCP_DEFAULT_PORT, &tctx->tc_sa)) != 0) { in tcp_setup_new()
207 free(tctx); in tcp_setup_new()
211 PJDLOG_ASSERT(tctx->tc_sa.ss_family != AF_UNSPEC); in tcp_setup_new()
213 tctx->tc_fd = socket(tctx->tc_sa.ss_family, SOCK_STREAM, 0); in tcp_setup_new()
214 if (tctx->tc_fd == -1) { in tcp_setup_new()
216 free(tctx); in tcp_setup_new()
220 PJDLOG_ASSERT(tctx->tc_sa.ss_family != AF_UNSPEC); in tcp_setup_new()
[all …]
/freebsd/contrib/openbsm/bin/auditdistd/
H A Dproto_tcp.c199 struct tcp_ctx *tctx; in tcp_setup_new() local
207 tctx = malloc(sizeof(*tctx)); in tcp_setup_new()
208 if (tctx == NULL) in tcp_setup_new()
212 error = tcp_addr(addr, atoi(proto_get("tcp:port")), &tctx->tc_sa); in tcp_setup_new()
214 free(tctx); in tcp_setup_new()
218 PJDLOG_ASSERT(tctx->tc_sa.ss_family != AF_UNSPEC); in tcp_setup_new()
220 tctx->tc_fd = socket(tctx->tc_sa.ss_family, SOCK_STREAM, 0); in tcp_setup_new()
221 if (tctx->tc_fd == -1) { in tcp_setup_new()
223 free(tctx); in tcp_setup_new()
227 PJDLOG_ASSERT(tctx->tc_sa.ss_family != AF_UNSPEC); in tcp_setup_new()
[all …]
/freebsd/crypto/openssl/providers/implementations/ciphers/
H A Dcipher_tdes_default_hw.c26 PROV_TDES_CTX *tctx = (PROV_TDES_CTX *)ctx; in ossl_cipher_hw_tdes_ede2_initkey() local
29 tctx->tstream.cbc = NULL; in ossl_cipher_hw_tdes_ede2_initkey()
33 des_t4_key_expand(&deskey[0], &tctx->ks1); in ossl_cipher_hw_tdes_ede2_initkey()
34 des_t4_key_expand(&deskey[1], &tctx->ks2); in ossl_cipher_hw_tdes_ede2_initkey()
35 memcpy(&tctx->ks3, &tctx->ks1, sizeof(tctx->ks1)); in ossl_cipher_hw_tdes_ede2_initkey()
36 tctx->tstream.cbc = ctx->enc ? des_t4_ede3_cbc_encrypt : des_t4_ede3_cbc_decrypt; in ossl_cipher_hw_tdes_ede2_initkey()
41 DES_set_key_unchecked(&deskey[0], &tctx->ks1); in ossl_cipher_hw_tdes_ede2_initkey()
42 DES_set_key_unchecked(&deskey[1], &tctx->ks2); in ossl_cipher_hw_tdes_ede2_initkey()
43 memcpy(&tctx->ks3, &tctx->ks1, sizeof(tctx->ks1)); in ossl_cipher_hw_tdes_ede2_initkey()
50 PROV_TDES_CTX *tctx = (PROV_TDES_CTX *)ctx; in ossl_cipher_hw_tdes_ofb() local
[all …]
H A Dcipher_tdes_hw.c26 PROV_TDES_CTX *tctx = (PROV_TDES_CTX *)ctx; in ossl_cipher_hw_tdes_ede3_initkey() local
29 tctx->tstream.cbc = NULL; in ossl_cipher_hw_tdes_ede3_initkey()
33 des_t4_key_expand(&deskey[0], &tctx->ks1); in ossl_cipher_hw_tdes_ede3_initkey()
34 des_t4_key_expand(&deskey[1], &tctx->ks2); in ossl_cipher_hw_tdes_ede3_initkey()
35 des_t4_key_expand(&deskey[2], &tctx->ks3); in ossl_cipher_hw_tdes_ede3_initkey()
36 tctx->tstream.cbc = ctx->enc ? des_t4_ede3_cbc_encrypt : des_t4_ede3_cbc_decrypt; in ossl_cipher_hw_tdes_ede3_initkey()
41 DES_set_key_unchecked(&deskey[0], &tctx->ks1); in ossl_cipher_hw_tdes_ede3_initkey()
42 DES_set_key_unchecked(&deskey[1], &tctx->ks2); in ossl_cipher_hw_tdes_ede3_initkey()
43 DES_set_key_unchecked(&deskey[2], &tctx->ks3); in ossl_cipher_hw_tdes_ede3_initkey()
60 PROV_TDES_CTX *tctx = (PROV_TDES_CTX *)ctx; in ossl_cipher_hw_tdes_cbc() local
[all …]
H A Dcipher_desx_hw.c30 PROV_TDES_CTX *tctx = (PROV_TDES_CTX *)ctx; in cipher_hw_desx_cbc_initkey() local
33 DES_set_key_unchecked(deskey, &tctx->ks1); in cipher_hw_desx_cbc_initkey()
34 memcpy(&tctx->ks2, &key[8], 8); in cipher_hw_desx_cbc_initkey()
35 memcpy(&tctx->ks3, &key[16], 8); in cipher_hw_desx_cbc_initkey()
53 PROV_TDES_CTX *tctx = (PROV_TDES_CTX *)ctx; in cipher_hw_desx_cbc() local
56 DES_xcbc_encrypt(in, out, (long)MAXCHUNK, &tctx->ks1, in cipher_hw_desx_cbc()
57 (DES_cblock *)ctx->iv, &tctx->ks2, &tctx->ks3, in cipher_hw_desx_cbc()
64 DES_xcbc_encrypt(in, out, (long)inl, &tctx->ks1, in cipher_hw_desx_cbc()
65 (DES_cblock *)ctx->iv, &tctx->ks2, &tctx->ks3, in cipher_hw_desx_cbc()
H A Dcipher_tdes_common.c26 PROV_TDES_CTX *tctx; in ossl_tdes_newctx() local
31 tctx = OPENSSL_zalloc(sizeof(*tctx)); in ossl_tdes_newctx()
32 if (tctx != NULL) { in ossl_tdes_newctx()
33 OSSL_FIPS_IND_INIT(tctx) in ossl_tdes_newctx()
34 ossl_cipher_generic_initkey(tctx, kbits, blkbits, ivbits, mode, flags, in ossl_tdes_newctx()
37 return tctx; in ossl_tdes_newctx()
/freebsd/contrib/jemalloc/include/jemalloc/internal/
H A Dprof_inlines_b.h
H A Dprof_externs.h62 void prof_alloc_rollback(tsd_t *tsd, prof_tctx_t *tctx);
64 size_t usize, prof_tctx_t *tctx);
H A Darena_inlines_b.h109 arena_prof_info_set(tsd_t *tsd, edata_t *edata, prof_tctx_t *tctx, in arena_prof_alloc_time_set()
114 large_prof_info_set(edata, tctx, size); in arena_decay_ticks()
58 arena_prof_tctx_set(tsdn_t * tsdn,const void * ptr,size_t usize,alloc_ctx_t * alloc_ctx,prof_tctx_t * tctx) arena_prof_tctx_set() argument
76 arena_prof_tctx_reset(tsdn_t * tsdn,const void * ptr,prof_tctx_t * tctx) arena_prof_tctx_reset() argument
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_rtl_thread.cpp35 ThreadContext *tctx; member
41 auto *tctx = static_cast<ThreadContext *>(tctx_base); in CollectThreadLeaks() local
42 if (tctx->detached || tctx->status != ThreadStatusFinished) in CollectThreadLeaks()
45 if (leaks[i].tctx->creation_stack_id == tctx->creation_stack_id) { in CollectThreadLeaks()
50 leaks.PushBack({tctx, 1}); in CollectThreadLeaks()
57 static void ReportIgnoresEnabled(ThreadContext *tctx, IgnoreSet *set) { in ReportIgnoresEnabled() argument
58 if (tctx->tid == kMainTid) { in ReportIgnoresEnabled()
62 " created at:\n", tctx->tid, tctx->name); in ReportIgnoresEnabled()
63 PrintStack(SymbolizeStackId(tctx->creation_stack_id)); in ReportIgnoresEnabled()
78 ReportIgnoresEnabled(thr->tctx, &thr->mop_ignore_set); in ThreadCheckIgnore()
[all …]
H A Dtsan_rtl_report.cpp206 void ScopedReportBase::AddThread(const ThreadContext *tctx, bool suppressable) { in AddThread() argument
208 if ((u32)rep_->threads[i]->id == tctx->tid) in AddThread()
213 rt->id = tctx->tid; in AddThread()
214 rt->os_id = tctx->os_id; in AddThread()
215 rt->running = (tctx->status == ThreadStatusRunning); in AddThread()
216 rt->name = internal_strdup(tctx->name); in AddThread()
217 rt->parent_tid = tctx->parent_tid; in AddThread()
218 rt->thread_type = tctx->thread_type; in AddThread()
220 rt->stack = SymbolizeStackId(tctx->creation_stack_id); in AddThread()
234 ThreadContext *tctx = static_cast<ThreadContext*>(tctx_base); in IsInStackOrTls() local
[all …]
H A Dtsan_rtl.cpp85 Trace* trace = &thr->tctx->trace; in TracePartAlloc()
144 ThreadContext* tctx = (ThreadContext*)ctx->thread_registry.GetThreadLocked( in DoResetImpl() local
150 auto trace = &tctx->trace; in DoResetImpl()
152 bool attached = tctx->thr && tctx->thr->slot; in DoResetImpl()
172 &tctx->thr->trace_pos, in DoResetImpl()
181 if (tctx->thr && !tctx->thr->slot) { in DoResetImpl()
182 atomic_store_relaxed(&tctx->thr->trace_pos, 0); in DoResetImpl()
183 tctx->thr->trace_prev_pc = 0; in DoResetImpl()
327 auto* trace = &thr->tctx->trace; in SlotDetachImpl()
336 thr->tctx->trace.local_head = nullptr; in SlotDetachImpl()
[all …]
H A Dtsan_debugging.cpp221 ThreadContext *tctx = IsThreadStackOrTls(addr, &is_stack); in __tsan_locate_address()
223 if (tctx) { in __tsan_locate_address()
257 ThreadContextBase *tctx = ctx->thread_registry.GetThreadLocked(b->tid); in __tsan_get_alloc_stack()
258 *os_id = tctx->os_id; in __tsan_get_alloc_stack()
219 ThreadContext *tctx = IsThreadStackOrTls(addr, &is_stack); __tsan_locate_address() local
255 ThreadContextBase *tctx = ctx->thread_registry.GetThreadLocked(b->tid); __tsan_get_alloc_stack() local
/freebsd/contrib/jemalloc/src/
H A Dprof.c83 prof_alloc_rollback(tsd_t *tsd, prof_tctx_t *tctx) {
87 assert((uintptr_t)tctx == (uintptr_t)1U);
91 if ((uintptr_t)tctx > (uintptr_t)1U) {
92 malloc_mutex_lock(tsd_tsdn(tsd), tctx->tdata->lock);
93 tctx->prepared = false;
94 prof_tctx_try_destroy(tsd, tctx);
100 size_t usize, prof_tctx_t *tctx) {
109 prof_info_set(tsd, edata, tctx, size);
113 malloc_mutex_lock(tsd_tsdn(tsd), tctx->tdata->lock);
121 * the prof_reset call is about to mark our tctx a
344 prof_malloc_sample_object(tsdn_t * tsdn,const void * ptr,size_t usize,prof_tctx_t * tctx) prof_malloc_sample_object() argument
444 prof_try_log(tsd_t * tsd,const void * ptr,size_t usize,prof_tctx_t * tctx) prof_try_log() argument
522 prof_free_sampled_object(tsd_t * tsd,const void * ptr,size_t usize,prof_tctx_t * tctx) prof_free_sampled_object() argument
882 prof_tctx_should_destroy(tsdn_t * tsdn,prof_tctx_t * tctx) prof_tctx_should_destroy() argument
912 prof_tctx_destroy(tsd_t * tsd,prof_tctx_t * tctx) prof_tctx_destroy() argument
1327 prof_tctx_merge_tdata(tsdn_t * tsdn,prof_tctx_t * tctx,prof_tdata_t * tdata) prof_tctx_merge_tdata() argument
1358 prof_tctx_merge_gctx(tsdn_t * tsdn,prof_tctx_t * tctx,prof_gctx_t * gctx) prof_tctx_merge_gctx() argument
1370 prof_tctx_merge_iter(prof_tctx_tree_t * tctxs,prof_tctx_t * tctx,void * arg) prof_tctx_merge_iter() argument
1396 prof_tctx_dump_iter(prof_tctx_tree_t * tctxs,prof_tctx_t * tctx,void * opaque) prof_tctx_dump_iter() argument
1424 prof_tctx_finish_iter(prof_tctx_tree_t * tctxs,prof_tctx_t * tctx,void * arg) prof_tctx_finish_iter() argument
1552 } tctx; prof_tdata_merge_iter() local
[all...]
/freebsd/contrib/llvm-project/compiler-rt/lib/asan/
H A Dasan_thread.cpp409 AsanThreadContext *tctx = static_cast<AsanThreadContext *>(tctx_base); in ThreadStackContainsAddress() local
410 AsanThread *t = tctx->thread; in ThreadStackContainsAddress()
431 AsanThreadContext *tctx = GetThreadContextByTidLocked(kMainTid); in GetCurrentThread() local
432 if (tctx && ThreadStackContainsAddress(tctx, &context)) { in GetCurrentThread()
433 SetCurrentThread(tctx->thread); in GetCurrentThread()
434 return tctx->thread; in GetCurrentThread()
459 AsanThreadContext *tctx = static_cast<AsanThreadContext *>( in FindThreadByStackAddress() local
462 return tctx ? tctx->thread : nullptr; in FindThreadByStackAddress()
538 [](ThreadContextBase *tctx, void *arg) { in GetThreadExtraStackRangesLocked() argument
540 tctx->os_id, reinterpret_cast<InternalMmapVector<Range> *>(arg)); in GetThreadExtraStackRangesLocked()
[all …]
/freebsd/sys/nfs/
H A Dbootp_subr.c258 static unsigned char *bootpc_tag(struct bootpc_tagcontext *tctx,
260 static void bootpc_tag_helper(struct bootpc_tagcontext *tctx,
1252 bootpc_tag_helper(struct bootpc_tagcontext *tctx, in bootpc_tag_helper() argument
1259 if (tctx->badtag != 0 || tctx->badopt != 0) in bootpc_tag_helper()
1272 tctx->badopt = 1; in bootpc_tag_helper()
1277 if (tctx->taglen + len > TAG_MAXLEN) { in bootpc_tag_helper()
1278 tctx->badtag = 1; in bootpc_tag_helper()
1281 tctx->foundopt = 1; in bootpc_tag_helper()
1283 memcpy(tctx->buf + tctx->taglen, in bootpc_tag_helper()
1285 tctx->taglen += len; in bootpc_tag_helper()
[all …]
/freebsd/contrib/tcpdump/
H A Dsignature.c61 MD5_CTX tctx; in signature_compute_hmac_md5() local
63 MD5_Init(&tctx); in signature_compute_hmac_md5()
64 MD5_Update(&tctx, key, key_len); in signature_compute_hmac_md5()
65 MD5_Final(tk, &tctx); in signature_compute_hmac_md5()
/freebsd/contrib/llvm-project/compiler-rt/lib/lsan/
H A Dlsan_thread.cpp104 [](ThreadContextBase *tctx, void *threads) { in GetRunningThreadsLocked() argument
105 if (tctx->status == ThreadStatusRunning) { in GetRunningThreadsLocked()
107 tctx->os_id); in GetRunningThreadsLocked()
H A Dlsan_linux.cpp24 void SetCurrentThread(ThreadContextLsanBase *tctx) { current_thread = tctx; } in SetCurrentThread() argument
H A Dlsan_fuchsia.cpp78 [](ThreadContextBase *tctx, void *arg) { in GetAllThreadAllocatorCachesLocked() argument
79 auto ctx = static_cast<ThreadContext *>(tctx); in GetAllThreadAllocatorCachesLocked()
/freebsd/sys/dev/ixl/
H A Dixl_pf_iflib.c518 struct i40e_hmc_obj_txq tctx; in ixl_initialize_vsi() local
522 bzero(&tctx, sizeof(tctx)); in ixl_initialize_vsi()
523 tctx.new_context = 1; in ixl_initialize_vsi()
524 tctx.base = (txr->tx_paddr/IXL_TX_CTX_BASE_UNITS); in ixl_initialize_vsi()
525 tctx.qlen = scctx->isc_ntxd[0]; in ixl_initialize_vsi()
526 tctx.fc_ena = 0; /* Disable FCoE */ in ixl_initialize_vsi()
531 tctx.rdylist = vsi->info.qs_handle[0]; in ixl_initialize_vsi()
538 tctx.head_wb_ena = 1; in ixl_initialize_vsi()
539 tctx.head_wb_addr = txr->tx_paddr + in ixl_initialize_vsi()
542 tctx.head_wb_ena = 0; in ixl_initialize_vsi()
[all …]
/freebsd/contrib/dma/
H A Dcrypto.c239 MD5_CTX tctx; in hmac_md5() local
241 MD5_Init(&tctx); in hmac_md5()
242 MD5_Update(&tctx, key, key_len); in hmac_md5()
243 MD5_Final(tk, &tctx); in hmac_md5()
/freebsd/contrib/llvm-project/compiler-rt/lib/memprof/
H A Dmemprof_stats.cpp76 MemprofThreadContext *tctx = static_cast<MemprofThreadContext *>(tctx_base); in MergeThreadStats() local
77 if (MemprofThread *t = tctx->thread) in MergeThreadStats()

12