Home
last modified time | relevance | path

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

12

/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_thread_registry.cc125 ThreadContextBase *tctx = QuarantinePop(); in CreateThread() local
126 if (tctx) { in CreateThread()
127 tid = tctx->tid; in CreateThread()
131 tctx = context_factory_(tid); in CreateThread()
132 threads_[tid] = tctx; in CreateThread()
143 CHECK_NE(tctx, 0); in CreateThread()
146 CHECK_EQ(tctx->status, ThreadStatusInvalid); in CreateThread()
152 tctx->SetCreated(user_id, total_threads_++, detached, in CreateThread()
161 ThreadContextBase *tctx = threads_[tid]; in RunCallbackForEachThreadLocked() local
162 if (tctx == 0) in RunCallbackForEachThreadLocked()
[all …]
Dsanitizer_thread_registry.h98 typedef void (*ThreadCallback)(ThreadContextBase *tctx, void *arg);
103 typedef bool (*FindThreadCallback)(ThreadContextBase *tctx, void *arg);
140 void QuarantinePush(ThreadContextBase *tctx);
/external/mesa3d/src/mesa/state_tracker/
Dst_tgsi_lower_yuv.c57 tgsi_yuv_transform(struct tgsi_transform_context *tctx) in tgsi_yuv_transform() argument
59 return (struct tgsi_yuv_transform *)tctx; in tgsi_yuv_transform()
145 emit_immed(struct tgsi_transform_context *tctx, int idx, in emit_immed() argument
148 struct tgsi_yuv_transform *ctx = tgsi_yuv_transform(tctx); in emit_immed()
158 tctx->emit_immediate(tctx, &immed); in emit_immed()
169 emit_samp(struct tgsi_transform_context *tctx, unsigned samp) in emit_samp() argument
171 tgsi_transform_sampler_decl(tctx, samp); in emit_samp()
172 tgsi_transform_sampler_view_decl(tctx, samp, PIPE_TEXTURE_2D, in emit_samp()
183 emit_decls(struct tgsi_transform_context *tctx) in emit_decls() argument
185 struct tgsi_yuv_transform *ctx = tgsi_yuv_transform(tctx); in emit_decls()
[all …]
Dst_cb_bitmap_shader.c46 tgsi_bitmap_transform(struct tgsi_transform_context *tctx) in tgsi_bitmap_transform() argument
48 return (struct tgsi_bitmap_transform *)tctx; in tgsi_bitmap_transform()
52 transform_instr(struct tgsi_transform_context *tctx, in transform_instr() argument
55 struct tgsi_bitmap_transform *ctx = tgsi_bitmap_transform(tctx); in transform_instr()
63 tctx->emit_instruction(tctx, current_inst); in transform_instr()
71 tgsi_transform_temp_decl(tctx, 0); in transform_instr()
87 tgsi_transform_input_decl(tctx, texcoord_index, in transform_instr()
92 tgsi_transform_sampler_decl(tctx, ctx->sampler_index); in transform_instr()
95 tgsi_transform_sampler_view_decl(tctx, ctx->sampler_index, in transform_instr()
99 tgsi_transform_tex_inst(tctx, in transform_instr()
[all …]
Dst_cb_drawpixels_shader.c50 tgsi_drawpix_transform(struct tgsi_transform_context *tctx) in tgsi_drawpix_transform() argument
52 return (struct tgsi_drawpix_transform *)tctx; in tgsi_drawpix_transform()
72 transform_instr(struct tgsi_transform_context *tctx, in transform_instr() argument
75 struct tgsi_drawpix_transform *ctx = tgsi_drawpix_transform(tctx); in transform_instr()
90 tgsi_transform_const_decl(tctx, ctx->scale_const, ctx->scale_const); in transform_instr()
94 tgsi_transform_const_decl(tctx, ctx->bias_const, ctx->bias_const); in transform_instr()
99 tgsi_transform_const_decl(tctx, ctx->texcoord_const, ctx->texcoord_const); in transform_instr()
104 tgsi_transform_temp_decl(tctx, ctx->color_temp); in transform_instr()
117 tgsi_transform_input_decl(tctx, texcoord_index, sem_texcoord, 0, in transform_instr()
123 tgsi_transform_sampler_decl(tctx, ctx->drawpix_sampler); in transform_instr()
[all …]
Dst_atifs_to_tgsi.c620 tgsi_atifs_transform(struct tgsi_transform_context *tctx) in tgsi_atifs_transform() argument
622 return (struct tgsi_atifs_transform *)tctx; in tgsi_atifs_transform()
647 transform_decl(struct tgsi_transform_context *tctx, in transform_decl() argument
650 struct tgsi_atifs_transform *ctx = tgsi_atifs_transform(tctx); in transform_decl()
659 tctx->emit_declaration(tctx, decl); in transform_decl()
663 transform_instr(struct tgsi_transform_context *tctx, in transform_instr() argument
666 struct tgsi_atifs_transform *ctx = tgsi_atifs_transform(tctx); in transform_instr()
676 tgsi_transform_temp_decl(tctx, ctx->fog_factor_temp); in transform_instr()
702 tctx->emit_instruction(tctx, current_inst); in transform_instr()
722 tctx->emit_instruction(tctx, &inst); in transform_instr()
[all …]
/external/mesa3d/src/gallium/auxiliary/tgsi/
Dtgsi_lowering.c57 tgsi_lowering_context(struct tgsi_transform_context *tctx) in tgsi_lowering_context() argument
59 return (struct tgsi_lowering_context *)tctx; in tgsi_lowering_context()
130 create_mov(struct tgsi_transform_context *tctx, in create_mov() argument
144 tctx->emit_instruction(tctx, &new_inst); in create_mov()
196 transform_dst(struct tgsi_transform_context *tctx, in transform_dst() argument
199 struct tgsi_lowering_context *ctx = tgsi_lowering_context(tctx); in transform_dst()
206 create_mov(tctx, &ctx->tmp[A].dst, src0, TGSI_WRITEMASK_YZ, 0); in transform_dst()
211 create_mov(tctx, &ctx->tmp[B].dst, src1, TGSI_WRITEMASK_YW, 0); in transform_dst()
224 tctx->emit_instruction(tctx, &new_inst); in transform_dst()
235 tctx->emit_instruction(tctx, &new_inst); in transform_dst()
[all …]
Dtgsi_emulate.c41 tgsi_emulation_context(struct tgsi_transform_context *tctx) in tgsi_emulation_context() argument
43 return (struct tgsi_emulation_context *)tctx; in tgsi_emulation_context()
47 transform_decl(struct tgsi_transform_context *tctx, in transform_decl() argument
50 struct tgsi_emulation_context *ctx = tgsi_emulation_context(tctx); in transform_decl()
58 tctx->emit_declaration(tctx, decl); in transform_decl()
62 passthrough_edgeflag(struct tgsi_transform_context *tctx) in passthrough_edgeflag() argument
64 struct tgsi_emulation_context *ctx = tgsi_emulation_context(tctx); in passthrough_edgeflag()
72 tctx->emit_declaration(tctx, &decl); in passthrough_edgeflag()
81 tctx->emit_declaration(tctx, &decl); in passthrough_edgeflag()
100 tctx->emit_instruction(tctx, &new_inst); in passthrough_edgeflag()
[all …]
/external/jemalloc_new/include/jemalloc/internal/
Dprof_inlines_b.h49 alloc_ctx_t *alloc_ctx, prof_tctx_t *tctx) { in prof_tctx_set() argument
53 arena_prof_tctx_set(tsdn, ptr, usize, alloc_ctx, tctx); in prof_tctx_set()
57 prof_tctx_reset(tsdn_t *tsdn, const void *ptr, prof_tctx_t *tctx) { in prof_tctx_reset() argument
61 arena_prof_tctx_reset(tsdn, ptr, tctx); in prof_tctx_reset()
123 prof_tctx_t *tctx) { in prof_malloc() argument
128 if (unlikely((uintptr_t)tctx > (uintptr_t)1U)) { in prof_malloc()
129 prof_malloc_sample_object(tsdn, ptr, usize, tctx); in prof_malloc()
137 prof_realloc(tsd_t *tsd, const void *ptr, size_t usize, prof_tctx_t *tctx, in prof_realloc() argument
143 assert(ptr != NULL || (uintptr_t)tctx <= (uintptr_t)1U); in prof_realloc()
155 prof_alloc_rollback(tsd, tctx, true); in prof_realloc()
[all …]
Dprof_externs.h45 void prof_alloc_rollback(tsd_t *tsd, prof_tctx_t *tctx, bool updated);
47 prof_tctx_t *tctx);
48 void prof_free_sampled_object(tsd_t *tsd, size_t usize, prof_tctx_t *tctx);
/external/libusb/tests/
Dstress.c29 static libusb_testlib_result test_init_and_exit(libusb_testlib_ctx * tctx) in test_init_and_exit() argument
36 libusb_testlib_logf(tctx, in test_init_and_exit()
49 static libusb_testlib_result test_get_device_list(libusb_testlib_ctx * tctx) in test_get_device_list() argument
55 libusb_testlib_logf(tctx, "Failed to init libusb: %d", r); in test_get_device_list()
62 libusb_testlib_logf(tctx, in test_get_device_list()
74 static libusb_testlib_result test_many_device_lists(libusb_testlib_ctx * tctx) in test_many_device_lists() argument
84 libusb_testlib_logf(tctx, "Failed to init libusb: %d", r); in test_many_device_lists()
92 libusb_testlib_logf(tctx, in test_many_device_lists()
115 static libusb_testlib_result test_default_context_change(libusb_testlib_ctx * tctx) in test_default_context_change() argument
124 libusb_testlib_logf(tctx, "Failed to init libusb: %d", r); in test_default_context_change()
[all …]
/external/jemalloc/src/
Dprof.c124 static bool prof_tctx_should_destroy(tsdn_t *tsdn, 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) in rb_gen()
215 if ((uintptr_t)tctx > (uintptr_t)1U) { in rb_gen()
216 malloc_mutex_lock(tsd_tsdn(tsd), tctx->tdata->lock); in rb_gen()
217 tctx->prepared = false; in rb_gen()
218 if (prof_tctx_should_destroy(tsd_tsdn(tsd), tctx)) in rb_gen()
219 prof_tctx_destroy(tsd, tctx); in rb_gen()
221 malloc_mutex_unlock(tsd_tsdn(tsd), tctx->tdata->lock); in rb_gen()
227 prof_tctx_t *tctx) in prof_malloc_sample_object() argument
[all …]
Djemalloc.c1538 prof_tctx_t *tctx, bool slow_path) argument
1542 if (tctx == NULL)
1560 prof_tctx_t *tctx; local
1562 tctx = prof_alloc_prep(tsd, usize, prof_active_get_unlocked(), true);
1563 if (unlikely((uintptr_t)tctx != (uintptr_t)1U))
1564 p = ialloc_prof_sample(tsd, usize, ind, zero, tctx, slow_path);
1568 prof_alloc_rollback(tsd, tctx, true);
1571 prof_malloc(tsd_tsdn(tsd), p, usize, tctx);
1664 prof_tctx_t *tctx) argument
1668 if (tctx == NULL)
[all …]
/external/jemalloc/include/jemalloc/internal/
Dprof.h283 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);
335 prof_tctx_t *tctx);
337 const void *old_ptr, prof_tctx_t *tctx);
343 prof_tctx_t *tctx);
345 prof_tctx_t *tctx, bool prof_active, bool updated, const void *old_ptr,
411 prof_tctx_set(tsdn_t *tsdn, const void *ptr, size_t usize, prof_tctx_t *tctx) in prof_tctx_set() argument
417 arena_prof_tctx_set(tsdn, ptr, usize, tctx); in prof_tctx_set()
483 prof_malloc(tsdn_t *tsdn, const void *ptr, size_t usize, prof_tctx_t *tctx) in prof_malloc() argument
[all …]
Dextent.h102 void extent_node_prof_tctx_set(extent_node_t *node, prof_tctx_t *tctx);
219 extent_node_prof_tctx_set(extent_node_t *node, prof_tctx_t *tctx) in extent_node_prof_tctx_set() argument
222 node->en_prof_tctx = tctx; in extent_node_prof_tctx_set()
/external/jemalloc_new/src/
Dprof.c140 static bool prof_tctx_should_destroy(tsdn_t *tsdn, prof_tctx_t *tctx);
141 static void prof_tctx_destroy(tsd_t *tsd, prof_tctx_t *tctx);
211 prof_alloc_rollback(tsd_t *tsd, prof_tctx_t *tctx, bool updated) { in rb_gen()
229 if ((uintptr_t)tctx > (uintptr_t)1U) { in rb_gen()
230 malloc_mutex_lock(tsd_tsdn(tsd), tctx->tdata->lock); in rb_gen()
231 tctx->prepared = false; in rb_gen()
232 if (prof_tctx_should_destroy(tsd_tsdn(tsd), tctx)) { in rb_gen()
233 prof_tctx_destroy(tsd, tctx); in rb_gen()
235 malloc_mutex_unlock(tsd_tsdn(tsd), tctx->tdata->lock); in rb_gen()
242 prof_tctx_t *tctx) { in prof_malloc_sample_object() argument
[all …]
Djemalloc.c1889 prof_tctx_t *tctx = prof_alloc_prep( local
1893 if (likely((uintptr_t)tctx == (uintptr_t)1U)) {
1897 } else if ((uintptr_t)tctx > (uintptr_t)1U) {
1910 prof_alloc_rollback(tsd, tctx, true);
1913 prof_malloc(tsd_tsdn(tsd), allocation, usize, &alloc_ctx, tctx);
2163 prof_tctx_t *tctx) { argument
2166 if (tctx == NULL) {
2187 prof_tctx_t *old_tctx, *tctx; local
2191 tctx = prof_alloc_prep(tsd, usize, prof_active, true);
2192 if (unlikely((uintptr_t)tctx != (uintptr_t)1U)) {
[all …]
/external/compiler-rt/lib/tsan/rtl/
Dtsan_rtl_thread.cc147 ThreadContext *tctx; member
153 ThreadContext *tctx = static_cast<ThreadContext*>(tctx_base); in MaybeReportThreadLeak() local
154 if (tctx->detached || tctx->status != ThreadStatusFinished) in MaybeReportThreadLeak()
157 if (leaks[i].tctx->creation_stack_id == tctx->creation_stack_id) { in MaybeReportThreadLeak()
162 ThreadLeak leak = {tctx, 1}; in MaybeReportThreadLeak()
168 static void ReportIgnoresEnabled(ThreadContext *tctx, IgnoreSet *set) { in ReportIgnoresEnabled() argument
169 if (tctx->tid == 0) { in ReportIgnoresEnabled()
173 " created at:\n", tctx->tid, tctx->name); in ReportIgnoresEnabled()
174 PrintStack(SymbolizeStackId(tctx->creation_stack_id)); in ReportIgnoresEnabled()
189 ReportIgnoresEnabled(thr->tctx, &thr->mop_ignore_set); in ThreadCheckIgnore()
[all …]
Dtsan_rtl_report.cc188 void ScopedReport::AddThread(const ThreadContext *tctx, bool suppressable) { in AddThread() argument
190 if ((u32)rep_->threads[i]->id == tctx->tid) in AddThread()
196 rt->id = tctx->tid; in AddThread()
197 rt->os_id = tctx->os_id; in AddThread()
198 rt->running = (tctx->status == ThreadStatusRunning); in AddThread()
199 rt->name = internal_strdup(tctx->name); in AddThread()
200 rt->parent_tid = tctx->parent_tid; in AddThread()
202 rt->stack = SymbolizeStackId(tctx->creation_stack_id); in AddThread()
208 static bool FindThreadByUidLockedCallback(ThreadContextBase *tctx, void *arg) { in FindThreadByUidLockedCallback() argument
210 return tctx->unique_id == (u32)unique_id; in FindThreadByUidLockedCallback()
[all …]
Dtsan_rtl_mutex.cc375 ThreadContext *tctx = static_cast<ThreadContext*>(tctx_base); in UpdateClockCallback() local
376 if (tctx->status == ThreadStatusRunning) in UpdateClockCallback()
377 thr->clock.set(tctx->tid, tctx->thr->fast_state.epoch()); in UpdateClockCallback()
379 thr->clock.set(tctx->tid, tctx->epoch1); in UpdateClockCallback()
418 ThreadContext *tctx = static_cast<ThreadContext*>(tctx_base); in UpdateSleepClockCallback() local
419 if (tctx->status == ThreadStatusRunning) in UpdateSleepClockCallback()
420 thr->last_sleep_clock.set(tctx->tid, tctx->thr->fast_state.epoch()); in UpdateSleepClockCallback()
422 thr->last_sleep_clock.set(tctx->tid, tctx->epoch1); in UpdateSleepClockCallback()
/external/compiler-rt/lib/asan/
Dasan_thread.cc328 AsanThreadContext *tctx = static_cast<AsanThreadContext*>(tctx_base); in ThreadStackContainsAddress() local
329 AsanThread *t = tctx->thread; in ThreadStackContainsAddress()
347 AsanThreadContext *tctx = GetThreadContextByTidLocked(0); in GetCurrentThread() local
348 if (ThreadStackContainsAddress(tctx, &context)) { in GetCurrentThread()
349 SetCurrentThread(tctx->thread); in GetCurrentThread()
350 return tctx->thread; in GetCurrentThread()
375 AsanThreadContext *tctx = static_cast<AsanThreadContext *>( in FindThreadByStackAddress() local
378 return tctx ? tctx->thread : nullptr; in FindThreadByStackAddress()
/external/tcpdump/
Dsignature.c62 MD5_CTX tctx; in signature_compute_hmac_md5() local
64 MD5_Init(&tctx); in signature_compute_hmac_md5()
65 MD5_Update(&tctx, key, key_len); in signature_compute_hmac_md5()
66 MD5_Final(tk, &tctx); in signature_compute_hmac_md5()
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_thread_registry_test.cc52 static bool HasName(ThreadContextBase *tctx, void *arg) { in HasName() argument
54 return (0 == internal_strcmp(tctx->name, name)); in HasName()
57 static bool HasUid(ThreadContextBase *tctx, void *arg) { in HasUid() argument
59 return (tctx->user_id == uid); in HasUid()
62 static void MarkUidAsPresent(ThreadContextBase *tctx, void *arg) { in MarkUidAsPresent() argument
64 arr[tctx->tid] = true; in MarkUidAsPresent()
/external/compiler-rt/lib/lsan/
Dlsan_thread.cc115 static bool FindThreadByUid(ThreadContextBase *tctx, void *arg) { in FindThreadByUid() argument
117 if (tctx->user_id == uid && tctx->status != ThreadStatusInvalid) { in FindThreadByUid()
/external/libaom/libaom/av1/encoder/
Dethread.c319 td->mb.e_mbd.tile_ctx = td->tctx; in enc_row_mt_worker_hook()
320 td->mb.tile_pb_ctx = &this_tile->tctx; in enc_row_mt_worker_hook()
324 memcpy(td->mb.e_mbd.tile_ctx, &this_tile->tctx, sizeof(FRAME_CONTEXT)); in enc_row_mt_worker_hook()
326 memcpy(td->mb.e_mbd.tile_ctx, &this_tile->tctx, sizeof(FRAME_CONTEXT)); in enc_row_mt_worker_hook()
369 thread_data->td->mb.e_mbd.tile_ctx = &this_tile->tctx; in enc_worker_hook()
370 thread_data->td->mb.tile_pb_ctx = &this_tile->tctx; in enc_worker_hook()
478 cm, thread_data->td->tctx, in create_enc_workers()
479 (FRAME_CONTEXT *)aom_memalign(16, sizeof(*thread_data->td->tctx))); in create_enc_workers()

12