Searched refs:spm_trace (Results 1 – 11 of 11) sorted by relevance
/third_party/mesa3d/src/amd/common/ |
D | ac_spm.c | 32 ac_spm_get_block_select(struct ac_spm_trace_data *spm_trace, in ac_spm_get_block_select() argument 38 for (uint32_t i = 0; i < spm_trace->num_block_sel; i++) { in ac_spm_get_block_select() 39 if (spm_trace->block_sel[i].b->b->b->gpu_block == block->b->b->gpu_block) in ac_spm_get_block_select() 40 return &spm_trace->block_sel[i]; in ac_spm_get_block_select() 44 num_block_sel = spm_trace->num_block_sel + 1; in ac_spm_get_block_select() 45 block_sel = realloc(spm_trace->block_sel, num_block_sel * sizeof(*block_sel)); in ac_spm_get_block_select() 49 spm_trace->num_block_sel = num_block_sel; in ac_spm_get_block_select() 50 spm_trace->block_sel = block_sel; in ac_spm_get_block_select() 53 new_block_sel = &spm_trace->block_sel[spm_trace->num_block_sel - 1]; in ac_spm_get_block_select() 84 ac_spm_map_counter(struct ac_spm_trace_data *spm_trace, in ac_spm_map_counter() argument [all …]
|
D | ac_rgp.c | 917 static void ac_sqtt_fill_spm_db(const struct ac_spm_trace_data *spm_trace, in ac_sqtt_fill_spm_db() argument 930 chunk->num_spm_counter_info = spm_trace->num_counters; in ac_sqtt_fill_spm_db() 931 chunk->sample_interval = spm_trace->sample_interval; in ac_sqtt_fill_spm_db() 934 static void ac_sqtt_dump_spm(const struct ac_spm_trace_data *spm_trace, in ac_sqtt_dump_spm() argument 938 uint32_t sample_size_in_bytes = ac_spm_get_sample_size(spm_trace); in ac_sqtt_dump_spm() 939 uint32_t num_samples = ac_spm_get_num_samples(spm_trace); in ac_sqtt_dump_spm() 940 uint8_t *spm_data_ptr = (uint8_t *)spm_trace->ptr; in ac_sqtt_dump_spm() 965 spm_trace->num_counters * sizeof(struct sqtt_spm_counter_info); in ac_sqtt_dump_spm() 967 for (uint32_t c = 0; c < spm_trace->num_counters; c++) { in ac_sqtt_dump_spm() 969 .block = spm_trace->counters[c].gpu_block, in ac_sqtt_dump_spm() [all …]
|
D | ac_spm.h | 119 struct ac_spm_trace_data *spm_trace); 120 void ac_destroy_spm(struct ac_spm_trace_data *spm_trace); 122 uint32_t ac_spm_get_sample_size(const struct ac_spm_trace_data *spm_trace); 123 uint32_t ac_spm_get_num_samples(const struct ac_spm_trace_data *spm_trace);
|
D | ac_rgp.h | 194 const struct ac_spm_trace_data *spm_trace);
|
/third_party/mesa3d/src/amd/vulkan/ |
D | radv_spm.c | 40 device->spm_trace.buffer_size = size; in radv_spm_init_bo() 41 device->spm_trace.sample_interval = sample_interval; in radv_spm_init_bo() 48 device->spm_trace.bo = bo; in radv_spm_init_bo() 52 result = ws->buffer_make_resident(ws, device->spm_trace.bo, true); in radv_spm_init_bo() 56 device->spm_trace.ptr = ws->buffer_map(device->spm_trace.bo); in radv_spm_init_bo() 57 if (!device->spm_trace.ptr) in radv_spm_init_bo() 66 struct ac_spm_trace_data *spm_trace = &device->spm_trace; in radv_emit_spm_counters() local 68 for (uint32_t b = 0; b < spm_trace->num_used_sq_block_sel; b++) { in radv_emit_spm_counters() 69 struct ac_spm_block_select *sq_block_sel = &spm_trace->sq_block_sel[b]; in radv_emit_spm_counters() 77 for (uint32_t b = 0; b < spm_trace->num_block_sel; b++) { in radv_emit_spm_counters() [all …]
|
D | radv_sqtt.c | 573 if (device->spm_trace.bo) { in radv_begin_thread_trace() 583 if (device->spm_trace.bo) in radv_begin_thread_trace() 634 if (device->spm_trace.bo) in radv_end_thread_trace()
|
D | radv_private.h | 888 struct ac_spm_trace_data spm_trace; member
|
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_perfcounter.c | 733 sctx->spm_trace.buffer_size = size; in si_spm_init_bo() 734 sctx->spm_trace.sample_interval = 4096; /* Default to 4096 clk. */ in si_spm_init_bo() 736 sctx->spm_trace.bo = ws->buffer_create( in si_spm_init_bo() 743 return sctx->spm_trace.bo != NULL; in si_spm_init_bo() 750 struct ac_spm_trace_data *spm_trace = &sctx->spm_trace; in si_emit_spm_counters() local 754 for (uint32_t b = 0; b < spm_trace->num_used_sq_block_sel; b++) { in si_emit_spm_counters() 755 struct ac_spm_block_select *sq_block_sel = &spm_trace->sq_block_sel[b]; in si_emit_spm_counters() 763 for (uint32_t b = 0; b < spm_trace->num_block_sel; b++) { in si_emit_spm_counters() 764 struct ac_spm_block_select *block_sel = &spm_trace->block_sel[b]; in si_emit_spm_counters() 796 struct ac_spm_trace_data *spm_trace = &sctx->spm_trace; in si_emit_spm_setup() local [all …]
|
D | si_sqtt.c | 403 sctx->spm_trace.bo, in si_thread_trace_start() 458 sctx->spm_trace.bo, in si_thread_trace_stop() 757 sctx->spm_trace.ptr = sctx->ws->buffer_map(sctx->ws, sctx->spm_trace.bo, in si_handle_thread_trace() 760 ac_dump_rgp_capture(&sctx->screen->info, &thread_trace, &sctx->spm_trace); in si_handle_thread_trace() 762 if (sctx->spm_trace.ptr) in si_handle_thread_trace() 763 sctx->ws->buffer_unmap(sctx->ws, sctx->spm_trace.bo); in si_handle_thread_trace()
|
D | si_pipe.h | 1303 struct ac_spm_trace_data spm_trace; member
|
/third_party/mesa3d/src/amd/vulkan/layers/ |
D | radv_sqtt_layer.c | 355 struct ac_spm_trace_data *spm_trace = NULL; in radv_handle_thread_trace() local 357 if (queue->device->spm_trace.bo) in radv_handle_thread_trace() 358 spm_trace = &queue->device->spm_trace; in radv_handle_thread_trace() 360 ac_dump_rgp_capture(&queue->device->physical_device->rad_info, &thread_trace, spm_trace); in radv_handle_thread_trace()
|