rocprofiler-sdk/experimental/thread-trace/trace_decoder_types.h Source File#
|
ROCprofiler-SDK developer API 1.0.0
ROCm Profiling API and tools
|
trace_decoder_types.h
147 * This record is only generated for waves executing in the target_cu and target_simd, selected by
148 * ROCPROFILER_THREAD_TRACE_PARAMETER_TARGET_CU and ROCPROFILER_THREAD_TRACE_PARAMETER_SIMD_SELECT
178 * gfx_frequency[n] = (shader_clock[n]-shader_clock[0]) / (clock_in_seconds[n]-clock_in_seconds[0])
221 ROCPROFILER_THREAD_TRACE_DECODER_RECORD_OCCUPANCY, ///< rocprofiler_thread_trace_decoder_occupancy_t*
222 ROCPROFILER_THREAD_TRACE_DECODER_RECORD_PERFEVENT, ///< rocprofiler_thread_trace_decoder_perfevent_t*
226 ROCPROFILER_THREAD_TRACE_DECODER_RECORD_SHADERDATA, ///< rocprofiler_thread_trace_decoder_shaderdata_t*
227 ROCPROFILER_THREAD_TRACE_DECODER_RECORD_REALTIME, ///< rocprofiler_thread_trace_decoder_realtime_t*
uint8_t contexts
Counts how many CWSR events have occured during the wave lifetime.
Definition trace_decoder_types.h:157
int32_t type
one of rocprofiler_thread_trace_decoder_waveslot_state_type_t
Definition trace_decoder_types.h:103
int64_t time
When the wave first attempted to execute this instruction.
Definition trace_decoder_types.h:141
rocprofiler_thread_trace_decoder_pc_t pc
Wave start address (kernel entry point)
Definition trace_decoder_types.h:75
rocprofiler_thread_trace_decoder_inst_t * instructions_array
Instructions executed.
Definition trace_decoder_types.h:169
uint32_t category
One of rocprofiler_thread_trace_decoder_inst_category_t.
Definition trace_decoder_types.h:138
int64_t end_time
Wave end time. Should match occupancy event wave end.
Definition trace_decoder_types.h:164
int64_t begin_time
Wave begin time. Should match occupancy event wave start.
Definition trace_decoder_types.h:163
int64_t time
Shader clock timestamp in which these counters were read.
Definition trace_decoder_types.h:61
uint64_t address
Address (code_object_id == 0), or ELF vaddr (code_object_id != 0)
Definition trace_decoder_types.h:52
uint8_t cu
CU id (gfx9) or wgp id (gfx10+). This is always the target_cu.
Definition trace_decoder_types.h:154
uint8_t CU
Shader compute unit ID these counters were collected from.
Definition trace_decoder_types.h:66
uint8_t flags
bitmask of rocprofiler_thread_trace_decoder_shaderdata_flags_t
Definition trace_decoder_types.h:211
rocprofiler_thread_trace_decoder_wave_state_t * timeline_array
wave state change events
Definition trace_decoder_types.h:168
rocprofiler_thread_trace_decoder_shaderdata_flags_t
Bitmask of additional information for shaderdata_t Added in rocprof-trace-decoder 0....
Definition trace_decoder_types.h:192
rocprofiler_thread_trace_decoder_record_type_t
Defines the type of payload received by rocprofiler_thread_trace_decoder_callback_t.
Definition trace_decoder_types.h:219
rocprofiler_thread_trace_decoder_info_t
Describes the type of info received.
Definition trace_decoder_types.h:39
rocprofiler_thread_trace_decoder_inst_category_t
Instruction type.
Definition trace_decoder_types.h:111
@ ROCPROFILER_THREAD_TRACE_DECODER_RECORD_GFXIP
Record is gfxip_major, type uint64_t.
Definition trace_decoder_types.h:220
@ ROCPROFILER_THREAD_TRACE_DECODER_RECORD_SHADERDATA
rocprofiler_thread_trace_decoder_shaderdata_t*
Definition trace_decoder_types.h:226
@ ROCPROFILER_THREAD_TRACE_DECODER_RECORD_INFO
rocprofiler_thread_trace_decoder_info_t*
Definition trace_decoder_types.h:224
@ ROCPROFILER_THREAD_TRACE_DECODER_RECORD_OCCUPANCY
rocprofiler_thread_trace_decoder_occupancy_t*
Definition trace_decoder_types.h:221
@ ROCPROFILER_THREAD_TRACE_DECODER_RECORD_WAVE
rocprofiler_thread_trace_decoder_wave_t*
Definition trace_decoder_types.h:223
@ ROCPROFILER_THREAD_TRACE_DECODER_RECORD_REALTIME
rocprofiler_thread_trace_decoder_realtime_t*
Definition trace_decoder_types.h:227
@ ROCPROFILER_THREAD_TRACE_DECODER_RECORD_PERFEVENT
rocprofiler_thread_trace_decoder_perfevent_t*
Definition trace_decoder_types.h:222
@ ROCPROFILER_THREAD_TRACE_DECODER_INST_FLAT
Flat addressing vmem or lds.
Definition trace_decoder_types.h:116
@ ROCPROFILER_THREAD_TRACE_DECODER_INST_IMMED
Internal operation.
Definition trace_decoder_types.h:121
@ ROCPROFILER_THREAD_TRACE_DECODER_INST_CONTEXT
Wave context switch.
Definition trace_decoder_types.h:122
Describes an instruction execution event.
Definition trace_decoder_types.h:137
Describes an occupancy event (wave started or wave ended).
Definition trace_decoder_types.h:74
Describes four performance counter values.
Definition trace_decoder_types.h:60
Matches the reference (realtime) clock with the shader clock Added in rocprof-trace-decoder 0....
Definition trace_decoder_types.h:181
Record created by s_ttracedata and s_ttracedata_imm Added in rocprof-trace-decoder 0....
Definition trace_decoder_types.h:205
A wave state change event.
Definition trace_decoder_types.h:102
Struct describing a wave during it's lifetime. This record is only generated for waves executing in t...
Definition trace_decoder_types.h:153
Generated by