Home
last modified time | relevance | path

Searched refs:thread_index (Results 1 – 25 of 36) sorted by relevance

12

/third_party/ltp/testcases/kernel/mem/mtest07/
Dmallocstress.c154 int thread_index; in stress_malloc() local
156 for (thread_index = 0; thread_index < NUM_THREADS; thread_index++) { in stress_malloc()
157 SAFE_PTHREAD_CREATE(&thread_id[thread_index], NULL, alloc_mem, in stress_malloc()
158 (void *)(uintptr_t)thread_index); in stress_malloc()
165 for (thread_index = 0; thread_index < NUM_THREADS; thread_index++) { in stress_malloc()
168 SAFE_PTHREAD_JOIN(thread_id[thread_index], &status); in stress_malloc()
171 thread_index); in stress_malloc()
/third_party/mesa3d/src/util/
Du_queue.c243 int thread_index; member
250 int thread_index = ((struct thread_input*)input)->thread_index; in util_queue_thread_func() local
275 snprintf(name, sizeof(name), "%s%i", queue->name, thread_index); in util_queue_thread_func()
286 while (thread_index < queue->num_threads && queue->num_queued == 0) in util_queue_thread_func()
290 if (thread_index >= queue->num_threads) { in util_queue_thread_func()
306 job.execute(job.job, job.global_data, thread_index); in util_queue_thread_func()
310 job.cleanup(job.job, job.global_data, thread_index); in util_queue_thread_func()
338 input->thread_index = index; in util_queue_create_thread()
707 util_queue_get_thread_time_nano(struct util_queue *queue, unsigned thread_index) in util_queue_get_thread_time_nano() argument
710 if (thread_index >= queue->num_threads) in util_queue_get_thread_time_nano()
[all …]
Ddisk_cache.c322 destroy_put_job(void *job, void *gdata, int thread_index) in destroy_put_job() argument
332 destroy_put_job_nocopy(void *job, void *gdata, int thread_index) in destroy_put_job_nocopy() argument
336 destroy_put_job(job, gdata, thread_index); in destroy_put_job_nocopy()
340 cache_put(void *job, void *gdata, int thread_index) in cache_put() argument
Du_queue.h194 typedef void (*util_queue_execute_func)(void *job, void *gdata, int thread_index);
255 unsigned thread_index);
/third_party/benchmark/test/
Dbenchmark_setup_teardown_test.cc21 assert(state.thread_index() == 0); in DoSetup1()
26 assert(state.thread_index() == 0); in DoTeardown1()
51 assert(state.thread_index() == 0); in DoSetup2()
56 assert(state.thread_index() == 0); in DoTeardown2()
Dfixture_test.cc12 if (state.thread_index() == 0) { in SetUp()
19 if (state.thread_index() == 0) { in TearDown()
38 if (st.thread_index() == 0) { in BENCHMARK_DEFINE_F()
Dbenchmark_test.cc130 if (state.thread_index() == 0) { in BM_SetupTeardown()
143 if (state.thread_index() == 0) { in BM_SetupTeardown()
161 int from = thread_size * state.thread_index(); in BM_ParallelMemset()
164 if (state.thread_index() == 0) { in BM_ParallelMemset()
176 if (state.thread_index() == 0) { in BM_ParallelMemset()
Dskip_with_error_test.cc100 if (state.range(0) == 1 && state.thread_index() <= (state.threads() / 2)) { in BM_error_during_running()
146 if (state.thread_index() <= (state.threads() / 2)) in BM_error_after_running()
158 if (state.range(0) == 1 && state.thread_index() <= (state.threads() / 2)) { in BM_error_while_paused()
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_rast.c633 pq->start[task->thread_index] = task->thread_data.vis_counter; in lp_rast_begin_query()
636 pq->start[task->thread_index] = task->thread_data.ps_invocations; in lp_rast_begin_query()
639 pq->start[task->thread_index] = os_time_get_nano(); in lp_rast_begin_query()
663 pq->end[task->thread_index] += in lp_rast_end_query()
664 task->thread_data.vis_counter - pq->start[task->thread_index]; in lp_rast_end_query()
665 pq->start[task->thread_index] = 0; in lp_rast_end_query()
669 pq->end[task->thread_index] = os_time_get_nano(); in lp_rast_end_query()
672 pq->end[task->thread_index] += in lp_rast_end_query()
673 task->thread_data.ps_invocations - pq->start[task->thread_index]; in lp_rast_end_query()
674 pq->start[task->thread_index] = 0; in lp_rast_end_query()
[all …]
Dlp_rast_priv.h98 unsigned thread_index; member
/third_party/astc-encoder/Source/
Dastcenc_entry.cpp806 unsigned int thread_index, in compress_image() argument
846 auto& temp_buffers = ctx.working_buffers[thread_index]; in compress_image()
973 unsigned int thread_index in astcenc_compress_image() argument
981 (void)thread_index; in astcenc_compress_image()
998 if (thread_index >= ctx->thread_count) in astcenc_compress_image()
1048 compress_image(*ctx, thread_index, image, *swizzle, data_out, calQualityEnable, mse); in astcenc_compress_image()
1050 compress_image(*ctx, thread_index, image, *swizzle, data_out); in astcenc_compress_image()
1093 unsigned int thread_index in astcenc_decompress_image() argument
1099 if (thread_index >= ctx->thread_count) in astcenc_decompress_image()
Dastcenc.h745 unsigned int thread_index);
781 unsigned int thread_index);
/third_party/mesa3d/src/broadcom/compiler/
Dvir_register_allocate.c72 return c->compiler->reg_class_phys[c->thread_index]; in choose_reg_class()
74 return c->compiler->reg_class_r5[c->thread_index]; in choose_reg_class()
76 return c->compiler->reg_class_phys_or_acc[c->thread_index]; in choose_reg_class()
79 return c->compiler->reg_class_any[c->thread_index]; in choose_reg_class()
1103 c->thread_index = ffs(c->threads) - 1; in v3d_register_allocate()
1105 if (c->thread_index >= 1) in v3d_register_allocate()
1106 c->thread_index--; in v3d_register_allocate()
/third_party/mesa3d/src/freedreno/drm/virtio/
Dvirtio_ringbuffer.c35 retire_execute(void *job, void *gdata, int thread_index) in retire_execute() argument
44 retire_cleanup(void *job, void *gdata, int thread_index) in retire_cleanup() argument
/third_party/skia/third_party/externals/abseil-cpp/absl/synchronization/
Dmutex_benchmark.cc100 (multiple_priorities && state.thread_index != 0) ? 1 : 0); in BM_MutexEnqueue()
179 int priority = state.thread_index % state.range(1); in BM_Contended()
/third_party/mesa3d/src/mesa/main/
Dglthread.c46 glthread_unmarshal_batch(void *job, void *gdata, int thread_index) in glthread_unmarshal_batch() argument
84 glthread_thread_initialization(void *job, void *gdata, int thread_index) in glthread_thread_initialization() argument
/third_party/mesa3d/src/gallium/winsys/radeon/drm/
Dradeon_drm_cs.h140 void radeon_drm_cs_emit_ioctl_oneshot(void *job, void *gdata, int thread_index);
/third_party/ltp/testcases/kernel/io/ltp-aiodio/
Daio-stress.c1508 int thread_index; local
1510 thread_index = open_fds % num_threads;
1531 oper_list_add(oper, &t[thread_index].active_opers);
1532 t[thread_index].num_files++;
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_compute.c110 static void si_create_compute_state_async(void *job, void *gdata, int thread_index) in si_create_compute_state_async() argument
120 assert(thread_index >= 0); in si_create_compute_state_async()
121 assert(thread_index < ARRAY_SIZE(sscreen->compiler)); in si_create_compute_state_async()
122 compiler = &sscreen->compiler[thread_index]; in si_create_compute_state_async()
Dsi_state_shaders.cpp2514 static void si_build_shader_variant(struct si_shader *shader, int thread_index, bool low_priority) in si_build_shader_variant() argument
2521 if (thread_index >= 0) { in si_build_shader_variant()
2523 assert(thread_index < (int)ARRAY_SIZE(sscreen->compiler_lowp)); in si_build_shader_variant()
2524 compiler = &sscreen->compiler_lowp[thread_index]; in si_build_shader_variant()
2526 assert(thread_index < (int)ARRAY_SIZE(sscreen->compiler)); in si_build_shader_variant()
2527 compiler = &sscreen->compiler[thread_index]; in si_build_shader_variant()
2556 static void si_build_shader_variant_low_priority(void *job, void *gdata, int thread_index) in si_build_shader_variant_low_priority() argument
2560 assert(thread_index >= 0); in si_build_shader_variant_low_priority()
2562 si_build_shader_variant(shader, thread_index, true); in si_build_shader_variant_low_priority()
2950 static void si_init_shader_selector_async(void *job, void *gdata, int thread_index) in si_init_shader_selector_async() argument
[all …]
/third_party/mesa3d/src/gallium/drivers/freedreno/ir3/
Dir3_gallium.c245 create_initial_variants_async(void *job, void *gdata, int thread_index) in create_initial_variants_async() argument
254 create_initial_compute_variants_async(void *job, void *gdata, int thread_index) in create_initial_compute_variants_async() argument
/third_party/mesa3d/src/freedreno/drm/
Dfreedreno_ringbuffer_sp.c201 fd_submit_sp_flush_execute(void *job, void *gdata, int thread_index) in fd_submit_sp_flush_execute() argument
219 fd_submit_sp_flush_cleanup(void *job, void *gdata, int thread_index) in fd_submit_sp_flush_cleanup() argument
/third_party/mesa3d/src/util/perf/
Du_trace.c480 process_chunk(void *job, void *gdata, int thread_index) in process_chunk() argument
560 cleanup_chunk(void *job, void *gdata, int thread_index) in cleanup_chunk() argument
/third_party/gstreamer/gstreamer/gst/
Dgstinfo.c3257 GHashTable *thread_index; member
3339 g_hash_table_remove (logger->thread_index, log->thread); in gst_ring_buffer_logger_log()
3349 log = g_hash_table_lookup (logger->thread_index, thread); in gst_ring_buffer_logger_log()
3357 g_hash_table_insert (logger->thread_index, thread, log); in gst_ring_buffer_logger_log()
3455 g_hash_table_unref (logger->thread_index); in gst_ring_buffer_logger_free()
3496 logger->thread_index = g_hash_table_new (g_direct_hash, g_direct_equal); in gst_debug_add_ring_buffer_logger()
/third_party/benchmark/bindings/python/google_benchmark/
Dbenchmark.cc172 .def_property_readonly("thread_index", &State::thread_index) in PYBIND11_MODULE()

12