Home
last modified time | relevance | path

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

123

/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_thread_registry.cpp139 ThreadContextBase *tctx = QuarantinePop(); in CreateThread() local
140 if (tctx) { in CreateThread()
141 tid = tctx->tid; in CreateThread()
145 tctx = context_factory_(tid); in CreateThread()
146 threads_[tid] = tctx; in CreateThread()
157 CHECK_NE(tctx, 0); in CreateThread()
160 CHECK_EQ(tctx->status, ThreadStatusInvalid); in CreateThread()
166 tctx->SetCreated(user_id, total_threads_++, detached, in CreateThread()
175 ThreadContextBase *tctx = threads_[tid]; in RunCallbackForEachThreadLocked() local
176 if (tctx == 0) in RunCallbackForEachThreadLocked()
[all …]
/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 …]
/external/mesa3d/src/mesa/state_tracker/
Dst_tgsi_lower_yuv.c56 tgsi_yuv_transform(struct tgsi_transform_context *tctx) in tgsi_yuv_transform() argument
58 return (struct tgsi_yuv_transform *)tctx; in tgsi_yuv_transform()
144 emit_immed(struct tgsi_transform_context *tctx, int idx, in emit_immed() argument
147 struct tgsi_yuv_transform *ctx = tgsi_yuv_transform(tctx); in emit_immed()
157 tctx->emit_immediate(tctx, &immed); in emit_immed()
168 emit_samp(struct tgsi_transform_context *tctx, unsigned samp) in emit_samp() argument
170 tgsi_transform_sampler_decl(tctx, samp); in emit_samp()
171 tgsi_transform_sampler_view_decl(tctx, samp, PIPE_TEXTURE_2D, in emit_samp()
182 emit_decls(struct tgsi_transform_context *tctx) in emit_decls() argument
184 struct tgsi_yuv_transform *ctx = tgsi_yuv_transform(tctx); in emit_decls()
[all …]
Dst_tgsi_lower_depth_clamp.c46 tgsi_depth_clamp_transform(struct tgsi_transform_context *tctx) in tgsi_depth_clamp_transform() argument
48 return (struct tgsi_depth_clamp_transform *)tctx; in tgsi_depth_clamp_transform()
52 transform_decl(struct tgsi_transform_context *tctx, in transform_decl() argument
55 struct tgsi_depth_clamp_transform *ctx = tgsi_depth_clamp_transform(tctx); in transform_decl()
79 tctx->emit_declaration(tctx, decl); in transform_decl()
96 prolog_last_vertex_stage(struct tgsi_transform_context *tctx) in prolog_last_vertex_stage() argument
98 struct tgsi_depth_clamp_transform *ctx = tgsi_depth_clamp_transform(tctx); in prolog_last_vertex_stage()
103 tgsi_transform_immediate_decl(tctx, 0.5, 0.0, 0.0, 0.0); in prolog_last_vertex_stage()
107 tgsi_transform_output_decl(tctx, ctx->depth_var, in prolog_last_vertex_stage()
114 epilog_last_vertex_stage(struct tgsi_transform_context *tctx) in epilog_last_vertex_stage() argument
[all …]
Dst_cb_bitmap_shader.c45 tgsi_bitmap_transform(struct tgsi_transform_context *tctx) in tgsi_bitmap_transform() argument
47 return (struct tgsi_bitmap_transform *)tctx; in tgsi_bitmap_transform()
51 transform_instr(struct tgsi_transform_context *tctx, in transform_instr() argument
54 struct tgsi_bitmap_transform *ctx = tgsi_bitmap_transform(tctx); in transform_instr()
62 tctx->emit_instruction(tctx, current_inst); in transform_instr()
70 tgsi_transform_temp_decl(tctx, 0); in transform_instr()
86 tgsi_transform_input_decl(tctx, texcoord_index, in transform_instr()
91 tgsi_transform_sampler_decl(tctx, ctx->sampler_index); in transform_instr()
94 tgsi_transform_sampler_view_decl(tctx, ctx->sampler_index, in transform_instr()
98 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.c622 tgsi_atifs_transform(struct tgsi_transform_context *tctx) in tgsi_atifs_transform() argument
624 return (struct tgsi_atifs_transform *)tctx; in tgsi_atifs_transform()
649 transform_decl(struct tgsi_transform_context *tctx, in transform_decl() argument
652 struct tgsi_atifs_transform *ctx = tgsi_atifs_transform(tctx); in transform_decl()
661 tctx->emit_declaration(tctx, decl); in transform_decl()
665 transform_instr(struct tgsi_transform_context *tctx, in transform_instr() argument
668 struct tgsi_atifs_transform *ctx = tgsi_atifs_transform(tctx); in transform_instr()
678 tgsi_transform_temp_decl(tctx, ctx->fog_factor_temp); in transform_instr()
704 tctx->emit_instruction(tctx, current_inst); in transform_instr()
724 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/llvm-project/compiler-rt/lib/tsan/rtl/
Dtsan_rtl_thread.cpp160 ThreadContext *tctx; member
166 ThreadContext *tctx = static_cast<ThreadContext*>(tctx_base); in MaybeReportThreadLeak() local
167 if (tctx->detached || tctx->status != ThreadStatusFinished) in MaybeReportThreadLeak()
170 if (leaks[i].tctx->creation_stack_id == tctx->creation_stack_id) { in MaybeReportThreadLeak()
175 ThreadLeak leak = {tctx, 1}; in MaybeReportThreadLeak()
181 static void ReportIgnoresEnabled(ThreadContext *tctx, IgnoreSet *set) { in ReportIgnoresEnabled() argument
182 if (tctx->tid == 0) { in ReportIgnoresEnabled()
186 " created at:\n", tctx->tid, tctx->name); in ReportIgnoresEnabled()
187 PrintStack(SymbolizeStackId(tctx->creation_stack_id)); in ReportIgnoresEnabled()
202 ReportIgnoresEnabled(thr->tctx, &thr->mop_ignore_set); in ThreadCheckIgnore()
[all …]
Dtsan_rtl_report.cpp192 void ScopedReportBase::AddThread(const ThreadContext *tctx, bool suppressable) { in AddThread() argument
194 if ((u32)rep_->threads[i]->id == tctx->tid) in AddThread()
200 rt->id = tctx->tid; in AddThread()
201 rt->os_id = tctx->os_id; in AddThread()
202 rt->running = (tctx->status == ThreadStatusRunning); in AddThread()
203 rt->name = internal_strdup(tctx->name); in AddThread()
204 rt->parent_tid = tctx->parent_tid; in AddThread()
205 rt->thread_type = tctx->thread_type; in AddThread()
207 rt->stack = SymbolizeStackId(tctx->creation_stack_id); in AddThread()
213 static bool FindThreadByUidLockedCallback(ThreadContextBase *tctx, void *arg) { in FindThreadByUidLockedCallback() argument
[all …]
/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 …]
/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/skia/modules/svg/src/
DSkSVGText.cpp118 SkSVGTextContext* tctx, in ScopedPosResolver() argument
120 : fTextContext(tctx) in ScopedPosResolver()
121 , fParent(tctx->fPosResolver) in ScopedPosResolver()
134 SkSVGTextContext* tctx) in ScopedPosResolver() argument
135 : ScopedPosResolver(txt, lctx, tctx, tctx->fCurrentCharIndex) {} in ScopedPosResolver()
474 void SkSVGTextFragment::renderText(const SkSVGRenderContext& ctx, SkSVGTextContext* tctx, in renderText() argument
481 this->onShapeText(localContext, tctx, xs); in renderText()
504 void SkSVGTextContainer::onShapeText(const SkSVGRenderContext& ctx, SkSVGTextContext* tctx, in onShapeText() argument
506 SkASSERT(tctx); in onShapeText()
508 const SkSVGTextContext::ScopedPosResolver resolver(*this, ctx.lengthContext(), tctx); in onShapeText()
[all …]
/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/llvm-project/compiler-rt/lib/asan/
Dasan_thread.cpp407 AsanThreadContext *tctx = static_cast<AsanThreadContext*>(tctx_base); in ThreadStackContainsAddress() local
408 AsanThread *t = tctx->thread; in ThreadStackContainsAddress()
429 AsanThreadContext *tctx = GetThreadContextByTidLocked(0); in GetCurrentThread() local
430 if (tctx && ThreadStackContainsAddress(tctx, &context)) { in GetCurrentThread()
431 SetCurrentThread(tctx->thread); in GetCurrentThread()
432 return tctx->thread; in GetCurrentThread()
457 AsanThreadContext *tctx = static_cast<AsanThreadContext *>( in FindThreadByStackAddress() local
460 return tctx ? tctx->thread : nullptr; in FindThreadByStackAddress()
/external/llvm-project/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_thread_registry_test.cpp51 static bool HasName(ThreadContextBase *tctx, void *arg) { in HasName() argument
53 return (0 == internal_strcmp(tctx->name, name)); in HasName()
56 static bool HasUid(ThreadContextBase *tctx, void *arg) { in HasUid() argument
58 return (tctx->user_id == uid); in HasUid()
61 static void MarkUidAsPresent(ThreadContextBase *tctx, void *arg) { in MarkUidAsPresent() argument
63 arr[tctx->tid] = true; in MarkUidAsPresent()
/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/igt-gpu-tools/tests/i915/
Dgem_threaded_access_tiled.c52 static struct thread_ctx tctx[NUM_THREADS]; variable
77 tctx[i].bo = bo; in copy_tile_threaded()
78 r = pthread_create(&thr[i], NULL, copy_fn, (void *)&tctx[i]); in copy_tile_threaded()
/external/llvm-project/compiler-rt/lib/lsan/
Dlsan_thread.cpp74 static bool FindThreadByUid(ThreadContextBase *tctx, void *arg) { in FindThreadByUid() argument
76 if (tctx->user_id == uid && tctx->status != ThreadStatusInvalid) { in FindThreadByUid()

123