rocprofiler-sdk/buffer_tracing.h Source File#
Rocprofiler SDK Developer API 0.6.0
ROCm Profiling API and tools
|
buffer_tracing.h
Go to the documentation of this file.
359 * @retval ::ROCPROFILER_STATUS_ERROR_CONFIGURATION_LOCKED ::rocprofiler_configure initialization
362 * @retval ::ROCPROFILER_STATUS_ERROR_SERVICE_ALREADY_CONFIGURED Context has already been configured
385 * @param [out] name_len If non-null, this will be assigned the length of the name (regardless of
403 * @param [in] operation Enumeration id value which maps to a specific API function or event type
407 * @param [out] name_len If non-null, this will be assigned the length of the name (regardless of
411 * @retval ::ROCPROFILER_STATUS_ERROR_OPERATION_NOT_FOUND The operation number is not recognized for
415 * @retval ::ROCPROFILER_STATUS_SUCCESS Valid domain and operation, regardless of whether there is a
425 * @brief Iterate over all the buffer tracing kinds and invokes the callback for each buffer tracing
428 * This is typically used to invoke ::rocprofiler_iterate_buffer_tracing_kind_operations for each
442 * id. This is useful to build a map of the operation names during tool initialization instead of
int32_t rocprofiler_tracing_operation_t
Tracing Operation ID. Depending on the kind, operations can be determined. If the value is equal to z...
Definition fwd.h:475
rocprofiler_runtime_initialization_operation_t
ROCProfiler Runtime Initialization Tracer Operations.
Definition fwd.h:393
uint64_t rocprofiler_thread_id_t
Thread ID. Value will be equivalent to syscall(__NR_gettid)
Definition fwd.h:466
rocprofiler_kernel_dispatch_operation_t
ROCProfiler Kernel Dispatch Tracing Operation Types.
Definition fwd.h:254
rocprofiler_tracing_operation_t operation
Specification of the API function, e.g., rocprofiler_rccl_api_id_t.
Definition buffer_tracing.h:173
int32_t src_device_num
Definition buffer_tracing.h:103
const void * codeptr_ra
Definition buffer_tracing.h:107
rocprofiler_buffer_tracing_kind_t kind
ROCPROFILER_CALLBACK_TRACING_MARKER_CORE_API, ROCPROFILER_CALLBACK_TRACING_MARKER_CONTROL_API,...
Definition buffer_tracing.h:149
rocprofiler_thread_id_t thread_id
ID for thread which loaded this runtime.
Definition buffer_tracing.h:310
rocprofiler_thread_id_t thread_id
id for thread generating this record
Definition buffer_tracing.h:177
uint64_t host_op_id
Definition buffer_tracing.h:112
rocprofiler_correlation_id_t correlation_id
correlation ids for record
Definition buffer_tracing.h:151
rocprofiler_tracing_operation_t operation
Specification of the rocprofiler_ompt_operation_t.
Definition buffer_tracing.h:124
rocprofiler_timestamp_t timestamp
Timestamp (in nanosec) of when rocprofiler detected the correlation ID could be retired....
Definition buffer_tracing.h:287
uint64_t instance
Number of times this runtime had been loaded previously.
Definition buffer_tracing.h:313
rocprofiler_memory_allocation_operation_t operation
Specification of the memory allocation function (.
Definition buffer_tracing.h:215
rocprofiler_buffer_tracing_kind_t kind
ROCPROFILER_BUFFER_TRACING_SCRATCH_MEMORY
Definition buffer_tracing.h:269
rocprofiler_correlation_id_t correlation_id
correlation ids for record
Definition buffer_tracing.h:174
rocprofiler_correlation_id_t correlation_id
correlation ids for record
Definition buffer_tracing.h:216
uint64_t bytes
Definition buffer_tracing.h:106
int32_t reserved
Definition buffer_tracing.h:105
int32_t device_num
Definition buffer_tracing.h:93
rocprofiler_agent_id_t agent_id
agent information for memory allocation
Definition buffer_tracing.h:220
const void * codeptr_ra
Definition buffer_tracing.h:96
int32_t device_num
Definition buffer_tracing.h:113
rocprofiler_correlation_id_t correlation_id
correlation ids for record
Definition buffer_tracing.h:193
rocprofiler_scratch_alloc_flag_t flags
Definition buffer_tracing.h:277
rocprofiler_correlation_id_t correlation_id
correlation ids for record
Definition buffer_tracing.h:125
rocprofiler_thread_id_t thread_id
id for thread generating this record
Definition buffer_tracing.h:154
rocprofiler_buffer_tracing_kind_t kind
ROCPROFILER_BUFFER_TRACING_RUNTIME_INITIALIZATION
Definition buffer_tracing.h:307
uint64_t host_op_id
Definition buffer_tracing.h:101
rocprofiler_buffer_tracing_kind_t kind
Definition buffer_tracing.h:214
rocprofiler_buffer_tracing_kind_t kind
ROCPROFILER_CALLBACK_TRACING_HSA_CORE_API, ROCPROFILER_CALLBACK_TRACING_HSA_AMD_EXT_API,...
Definition buffer_tracing.h:47
rocprofiler_timestamp_t timestamp
Timestamp (in nanosec) of when runtime was initialized/loaded.
Definition buffer_tracing.h:311
rocprofiler_buffer_tracing_kind_t kind
ROCPROFILER_BUFFER_TRACING_CORRELATION_ID_RETIREMENT
Definition buffer_tracing.h:286
rocprofiler_buffer_tracing_kind_t kind
ROCPROFILER_CALLBACK_TRACING_RCCL_API
Definition buffer_tracing.h:172
rocprofiler_tracing_operation_t operation
Specification of the API function, e.g., rocprofiler_hsa_core_api_id_t, rocprofiler_hsa_amd_ext_api_i...
Definition buffer_tracing.h:48
rocprofiler_buffer_tracing_kind_t kind
ROCPROFILER_BUFFER_TRACING_KERNEL_DISPATCH
Definition buffer_tracing.h:236
rocprofiler_correlation_id_t correlation_id
Correlation ID for these records are always zero.
Definition buffer_tracing.h:309
rocprofiler_runtime_initialization_operation_t operation
Indicates which runtime was initialized/loaded.
Definition buffer_tracing.h:308
rocprofiler_kernel_dispatch_operation_t operation
Kernel dispatch buffer records only report the ROCPROFILER_KERNEL_DISPATCH_COMPLETE operation because...
Definition buffer_tracing.h:237
rocprofiler_scratch_memory_operation_t operation
specification of the kind
Definition buffer_tracing.h:270
rocprofiler_memory_copy_operation_t operation
Specification of the memory copy direction (.
Definition buffer_tracing.h:192
int32_t dst_device_num
Definition buffer_tracing.h:104
rocprofiler_thread_id_t thread_id
id for thread generating this record
Definition buffer_tracing.h:128
rocprofiler_buffer_tracing_kind_t kind
ROCPROFILER_CALLBACK_TRACING_HIP_RUNTIME_API or ROCPROFILER_CALLBACK_TRACING_HIP_COMPILER_API
Definition buffer_tracing.h:71
rocprofiler_correlation_id_t correlation_id
correlation ids for record
Definition buffer_tracing.h:238
rocprofiler_buffer_tracing_kind_t kind
ROCPROFILER_BUFFER_TRACING_PAGE_MIGRATION.
Definition buffer_tracing.h:256
rocprofiler_tracing_operation_t operation
Specification of the API function, e.g., rocprofiler_marker_core_api_id_t, rocprofiler_marker_control...
Definition buffer_tracing.h:150
rocprofiler_thread_id_t thread_id
id for thread generating this record
Definition buffer_tracing.h:274
rocprofiler_correlation_id_t correlation_id
correlation ids for record
Definition buffer_tracing.h:271
rocprofiler_buffer_tracing_kind_t kind
ROCPROFILER_BUFFER_TRACING_MEMORY_COPY
Definition buffer_tracing.h:191
rocprofiler_page_migration_operation_t operation
Definition buffer_tracing.h:257
uint32_t requested_num_teams
Definition buffer_tracing.h:114
rocprofiler_buffer_tracing_kind_t kind
ROCPROFILER_BUFFER_TRACING_OMPT
Definition buffer_tracing.h:123
rocprofiler_page_migration_args_t args
Definition buffer_tracing.h:260
int32_t optype
Definition buffer_tracing.h:102
rocprofiler_tracing_operation_t operation
Specification of the API function, e.g., rocprofiler_hip_runtime_api_id_t or rocprofiler_hip_compiler...
Definition buffer_tracing.h:72
uint64_t internal_correlation_id
Only internal correlation ID is provided.
Definition buffer_tracing.h:288
int(* rocprofiler_buffer_tracing_kind_operation_cb_t)(rocprofiler_buffer_tracing_kind_t kind, rocprofiler_tracing_operation_t operation, void *data)
Callback function for mapping the operations of a given rocprofiler_buffer_tracing_kind_t to string n...
Definition buffer_tracing.h:345
rocprofiler_status_t rocprofiler_iterate_buffer_tracing_kinds(rocprofiler_buffer_tracing_kind_cb_t callback, void *data)
Iterate over all the buffer tracing kinds and invokes the callback for each buffer tracing kind.
int(* rocprofiler_buffer_tracing_kind_cb_t)(rocprofiler_buffer_tracing_kind_t kind, void *data)
Callback function for mapping rocprofiler_buffer_tracing_kind_t ids to string names.
Definition buffer_tracing.h:337
rocprofiler_status_t rocprofiler_configure_buffer_tracing_service(rocprofiler_context_id_t context_id, rocprofiler_buffer_tracing_kind_t kind, const rocprofiler_tracing_operation_t *operations, unsigned long operations_count, rocprofiler_buffer_id_t buffer_id)
Configure Buffer Tracing Service.
rocprofiler_status_t rocprofiler_query_buffer_tracing_kind_name(rocprofiler_buffer_tracing_kind_t kind, const char **name, uint64_t *name_len)
Query the name of the buffer tracing kind. The name retrieved from this function is a string literal ...
rocprofiler_status_t rocprofiler_query_buffer_tracing_kind_operation_name(rocprofiler_buffer_tracing_kind_t kind, rocprofiler_tracing_operation_t operation, const char **name, uint64_t *name_len)
Query the name of the buffer tracing kind. The name retrieved from this function is a string literal ...
rocprofiler_status_t rocprofiler_iterate_buffer_tracing_kind_operations(rocprofiler_buffer_tracing_kind_t kind, rocprofiler_buffer_tracing_kind_operation_cb_t callback, void *data)
Iterates over all the operations for a given rocprofiler_buffer_tracing_kind_t and invokes the callba...
ROCProfiler Buffer Correlation ID Retirement Tracer Record.
Definition buffer_tracing.h:284
ROCProfiler Buffer HIP API Tracer Record.
Definition buffer_tracing.h:69
ROCProfiler Buffer HSA API Tracer Record.
Definition buffer_tracing.h:45
ROCProfiler Buffer Kernel Dispatch Tracer Record.
Definition buffer_tracing.h:234
ROCProfiler Buffer Marker Tracer Record.
Definition buffer_tracing.h:147
ROCProfiler Buffer Memory Allocation Tracer Record.
Definition buffer_tracing.h:212
ROCProfiler Buffer Memory Copy Tracer Record.
Definition buffer_tracing.h:189
ROCProfiler Buffer OMPT Tracer Record.
Definition buffer_tracing.h:121
Additional trace data for OMPT target routines.
Definition buffer_tracing.h:91
ROCProfiler Buffer Page Migration Tracer Record.
Definition buffer_tracing.h:254
ROCProfiler Buffer RCCL API Record.
Definition buffer_tracing.h:170
ROCProfiler Buffer Runtime Initialization Tracer Record.
Definition buffer_tracing.h:305
ROCProfiler Buffer Scratch Memory Tracer Record.
Definition buffer_tracing.h:267
Generated by 1.9.8