rocprofiler-sdk/buffer_tracing.h Source File#
Rocprofiler SDK Developer API 0.4.0
ROCm Profiling API and tools
|
buffer_tracing.h
Go to the documentation of this file.
316 * @retval ::ROCPROFILER_STATUS_ERROR_CONFIGURATION_LOCKED ::rocprofiler_configure initialization
319 * @retval ::ROCPROFILER_STATUS_ERROR_SERVICE_ALREADY_CONFIGURED Context has already been configured
342 * @param [out] name_len If non-null, this will be assigned the length of the name (regardless of
360 * @param [in] operation Enumeration id value which maps to a specific API function or event type
364 * @param [out] name_len If non-null, this will be assigned the length of the name (regardless of
368 * @retval ::ROCPROFILER_STATUS_ERROR_OPERATION_NOT_FOUND The operation number is not recognized for
372 * @retval ::ROCPROFILER_STATUS_SUCCESS Valid domain and operation, regardless of whether there is a
382 * @brief Iterate over all the buffer tracing kinds and invokes the callback for each buffer tracing
385 * This is typically used to invoke ::rocprofiler_iterate_buffer_tracing_kind_operations for each
399 * id. This is useful to build a map of the operation names during tool initialization instead of
uint32_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:448
uint64_t rocprofiler_thread_id_t
Thread ID. Value will be equivalent to syscall(__NR_gettid)
Definition fwd.h:439
rocprofiler_kernel_dispatch_operation_t
ROCProfiler Kernel Dispatch Tracing Operation Types.
Definition fwd.h:242
rocprofiler_thread_id_t thread_id
id for thread generating this record
Definition buffer_tracing.h:118
rocprofiler_buffer_tracing_kind_t kind
ROCPROFILER_CALLBACK_TRACING_MARKER_CORE_API, ROCPROFILER_CALLBACK_TRACING_MARKER_CONTROL_API,...
Definition buffer_tracing.h:134
rocprofiler_page_migration_queue_suspend_trigger_t trigger
Cause of queue suspension.
Definition buffer_tracing.h:216
rocprofiler_correlation_id_t correlation_id
correlation ids for record
Definition buffer_tracing.h:136
rocprofiler_timestamp_t timestamp
Timestamp (in nanosec) of when rocprofiler detected the correlation ID could be retired....
Definition buffer_tracing.h:276
uint8_t migrated
Definition buffer_tracing.h:196
rocprofiler_buffer_tracing_kind_t kind
ROCPROFILER_BUFFER_TRACING_SCRATCH_MEMORY
Definition buffer_tracing.h:258
rocprofiler_correlation_id_t correlation_id
correlation ids for record
Definition buffer_tracing.h:158
uint8_t rescheduled
Definition buffer_tracing.h:214
rocprofiler_scratch_alloc_flag_t flags
Definition buffer_tracing.h:266
rocprofiler_page_migration_unmap_from_gpu_trigger_t trigger
Cause of unmap.
Definition buffer_tracing.h:224
rocprofiler_thread_id_t thread_id
id for thread generating this record
Definition buffer_tracing.h:139
rocprofiler_tracing_operation_t operation
Definition buffer_tracing.h:234
rocprofiler_buffer_tracing_kind_t kind
ROCPROFILER_CALLBACK_TRACING_HSA_CORE_API, ROCPROFILER_CALLBACK_TRACING_HSA_AMD_EXT_API,...
Definition buffer_tracing.h:89
rocprofiler_buffer_tracing_kind_t kind
ROCPROFILER_BUFFER_TRACING_CORRELATION_ID_RETIREMENT
Definition buffer_tracing.h:275
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:90
rocprofiler_buffer_tracing_kind_t kind
ROCPROFILER_BUFFER_TRACING_KERNEL_DISPATCH
Definition buffer_tracing.h:179
rocprofiler_kernel_dispatch_operation_t operation
Kernel dispatch buffer records only report the ROCPROFILER_KERNEL_DISPATCH_COMPLETE operation because...
Definition buffer_tracing.h:180
rocprofiler_scratch_memory_operation_t operation
specification of the kind
Definition buffer_tracing.h:259
rocprofiler_memory_copy_operation_t operation
Specification of the memory copy direction (.
Definition buffer_tracing.h:157
rocprofiler_buffer_tracing_kind_t kind
ROCPROFILER_CALLBACK_TRACING_HIP_RUNTIME_API or ROCPROFILER_CALLBACK_TRACING_HIP_COMPILER_API
Definition buffer_tracing.h:113
rocprofiler_correlation_id_t correlation_id
correlation ids for record
Definition buffer_tracing.h:181
rocprofiler_buffer_tracing_kind_t kind
ROCPROFILER_BUFFER_TRACING_PAGE_MIGRATION.
Definition buffer_tracing.h:233
rocprofiler_correlation_id_t correlation_id
correlation ids for record
Definition buffer_tracing.h:115
rocprofiler_thread_id_t thread_id
id for thread generating this record
Definition buffer_tracing.h:262
rocprofiler_correlation_id_t correlation_id
correlation ids for record
Definition buffer_tracing.h:265
rocprofiler_buffer_tracing_kind_t kind
ROCPROFILER_BUFFER_TRACING_MEMORY_COPY
Definition buffer_tracing.h:156
rocprofiler_tracing_operation_t operation
Definition buffer_tracing.h:135
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:114
uint64_t internal_correlation_id
Only internal correlation ID is provided.
Definition buffer_tracing.h:277
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.
rocprofiler_page_migration_queue_suspend_trigger_t
Page migration triggers causing the queue to suspend.
Definition buffer_tracing.h:59
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:294
rocprofiler_status_t rocprofiler_configure_buffer_tracing_service(rocprofiler_context_id_t context_id, rocprofiler_buffer_tracing_kind_t kind, rocprofiler_tracing_operation_t *operations, unsigned long operations_count, rocprofiler_buffer_id_t buffer_id)
Configure Buffer Tracing Service.
int(* rocprofiler_buffer_tracing_kind_operation_cb_t)(rocprofiler_buffer_tracing_kind_t kind, uint32_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:302
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, uint32_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_page_migration_unmap_from_gpu_trigger_t
Page migration triggers causing an unmap from the GPU.
Definition buffer_tracing.h:75
@ ROCPROFILER_PAGE_MIGRATION_QUEUE_SUSPEND_TRIGGER_USERPTR
Definition buffer_tracing.h:62
@ ROCPROFILER_PAGE_MIGRATION_QUEUE_SUSPEND_TRIGGER_CRIU_RESTORE
Definition buffer_tracing.h:66
@ ROCPROFILER_PAGE_MIGRATION_QUEUE_SUSPEND_TRIGGER_TTM
Definition buffer_tracing.h:63
@ ROCPROFILER_PAGE_MIGRATION_QUEUE_SUSPEND_TRIGGER_SUSPEND
Definition buffer_tracing.h:64
@ ROCPROFILER_PAGE_MIGRATION_QUEUE_SUSPEND_TRIGGER_LAST
Definition buffer_tracing.h:67
@ ROCPROFILER_PAGE_MIGRATION_QUEUE_SUSPEND_TRIGGER_SVM
Definition buffer_tracing.h:61
@ ROCPROFILER_PAGE_MIGRATION_QUEUE_SUSPEND_TRIGGER_NONE
Definition buffer_tracing.h:60
@ ROCPROFILER_PAGE_MIGRATION_QUEUE_SUSPEND_TRIGGER_CRIU_CHECKPOINT
Definition buffer_tracing.h:65
@ ROCPROFILER_PAGE_MIGRATION_TRIGGER_TTM_EVICTION
Definition buffer_tracing.h:50
@ ROCPROFILER_PAGE_MIGRATION_TRIGGER_PREFETCH
Definition buffer_tracing.h:47
@ ROCPROFILER_PAGE_MIGRATION_TRIGGER_PAGEFAULT_CPU
Definition buffer_tracing.h:49
@ ROCPROFILER_PAGE_MIGRATION_TRIGGER_NONE
Definition buffer_tracing.h:46
@ ROCPROFILER_PAGE_MIGRATION_TRIGGER_LAST
Definition buffer_tracing.h:51
@ ROCPROFILER_PAGE_MIGRATION_TRIGGER_PAGEFAULT_GPU
Definition buffer_tracing.h:48
@ ROCPROFILER_PAGE_MIGRATION_UNMAP_FROM_GPU_TRIGGER_UNMAP_FROM_CPU
Definition buffer_tracing.h:79
@ ROCPROFILER_PAGE_MIGRATION_UNMAP_FROM_GPU_TRIGGER_LAST
Definition buffer_tracing.h:80
@ ROCPROFILER_PAGE_MIGRATION_UNMAP_FROM_GPU_TRIGGER_NONE
Definition buffer_tracing.h:76
@ ROCPROFILER_PAGE_MIGRATION_UNMAP_FROM_GPU_TRIGGER_MMU_NOTIFY
Definition buffer_tracing.h:77
@ ROCPROFILER_PAGE_MIGRATION_UNMAP_FROM_GPU_TRIGGER_MMU_NOTIFY_MIGRATE
Definition buffer_tracing.h:78
ROCProfiler Buffer Correlation ID Retirement Tracer Record.
Definition buffer_tracing.h:273
ROCProfiler Buffer HIP API Tracer Record.
Definition buffer_tracing.h:111
ROCProfiler Buffer HSA API Tracer Record.
Definition buffer_tracing.h:87
ROCProfiler Buffer Kernel Dispatch Tracer Record.
Definition buffer_tracing.h:177
ROCProfiler Buffer Marker Tracer Record.
Definition buffer_tracing.h:132
ROCProfiler Buffer Memory Copy Tracer Record.
Definition buffer_tracing.h:154
ROCProfiler Buffer Page Migration Tracer Record.
Definition buffer_tracing.h:231
ROCProfiler Buffer Scratch Memory Tracer Record.
Definition buffer_tracing.h:256
Generated by 1.9.8