rocprofiler-sdk/buffer_tracing.h Source File#
Rocprofiler SDK Developer API 0.5.0
ROCm Profiling API and tools
|
buffer_tracing.h
Go to the documentation of this file.
334 * @retval ::ROCPROFILER_STATUS_ERROR_CONFIGURATION_LOCKED ::rocprofiler_configure initialization
337 * @retval ::ROCPROFILER_STATUS_ERROR_SERVICE_ALREADY_CONFIGURED Context has already been configured
360 * @param [out] name_len If non-null, this will be assigned the length of the name (regardless of
378 * @param [in] operation Enumeration id value which maps to a specific API function or event type
382 * @param [out] name_len If non-null, this will be assigned the length of the name (regardless of
386 * @retval ::ROCPROFILER_STATUS_ERROR_OPERATION_NOT_FOUND The operation number is not recognized for
390 * @retval ::ROCPROFILER_STATUS_SUCCESS Valid domain and operation, regardless of whether there is a
400 * @brief Iterate over all the buffer tracing kinds and invokes the callback for each buffer tracing
403 * This is typically used to invoke ::rocprofiler_iterate_buffer_tracing_kind_operations for each
417 * 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:452
uint64_t rocprofiler_thread_id_t
Thread ID. Value will be equivalent to syscall(__NR_gettid)
Definition fwd.h:443
rocprofiler_kernel_dispatch_operation_t
ROCProfiler Kernel Dispatch Tracing Operation Types.
Definition fwd.h:246
rocprofiler_tracing_operation_t operation
Definition buffer_tracing.h:157
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_thread_id_t thread_id
id for thread generating this record
Definition buffer_tracing.h:161
rocprofiler_page_migration_queue_suspend_trigger_t trigger
Cause of queue suspension.
Definition buffer_tracing.h:234
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:294
uint8_t migrated
Definition buffer_tracing.h:214
rocprofiler_buffer_tracing_kind_t kind
ROCPROFILER_BUFFER_TRACING_SCRATCH_MEMORY
Definition buffer_tracing.h:276
rocprofiler_correlation_id_t correlation_id
correlation ids for record
Definition buffer_tracing.h:158
rocprofiler_correlation_id_t correlation_id
correlation ids for record
Definition buffer_tracing.h:176
uint8_t rescheduled
Definition buffer_tracing.h:232
rocprofiler_scratch_alloc_flag_t flags
Definition buffer_tracing.h:284
rocprofiler_page_migration_unmap_from_gpu_trigger_t trigger
Cause of unmap.
Definition buffer_tracing.h:242
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:252
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:293
rocprofiler_buffer_tracing_kind_t kind
ROCPROFILER_CALLBACK_TRACING_RCCL_API,
Definition buffer_tracing.h:156
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:197
rocprofiler_kernel_dispatch_operation_t operation
Kernel dispatch buffer records only report the ROCPROFILER_KERNEL_DISPATCH_COMPLETE operation because...
Definition buffer_tracing.h:198
rocprofiler_scratch_memory_operation_t operation
specification of the kind
Definition buffer_tracing.h:277
rocprofiler_memory_copy_operation_t operation
Specification of the memory copy direction (.
Definition buffer_tracing.h:175
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:199
rocprofiler_buffer_tracing_kind_t kind
ROCPROFILER_BUFFER_TRACING_PAGE_MIGRATION.
Definition buffer_tracing.h:251
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:280
rocprofiler_correlation_id_t correlation_id
correlation ids for record
Definition buffer_tracing.h:283
rocprofiler_buffer_tracing_kind_t kind
ROCPROFILER_BUFFER_TRACING_MEMORY_COPY
Definition buffer_tracing.h:174
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:295
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:320
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:312
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_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:291
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:195
ROCProfiler Buffer Marker Tracer Record.
Definition buffer_tracing.h:132
ROCProfiler Buffer Memory Copy Tracer Record.
Definition buffer_tracing.h:172
ROCProfiler Buffer Page Migration Tracer Record.
Definition buffer_tracing.h:249
ROCProfiler Buffer RCCL API Record.
Definition buffer_tracing.h:154
ROCProfiler Buffer Scratch Memory Tracer Record.
Definition buffer_tracing.h:274
Generated by 1.9.8