Asynchronous Tracing Service#
|
Rocprofiler SDK Developer API 0.6.0
ROCm Profiling API and tools
|
Receive callbacks for batches of records from an internal (background) thread. More...
Typedefs | |
| typedef 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. | |
| typedef 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 names. | |
Functions | |
| 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 that is encoded in the read-only section of the binary (i.e. it is always "allocated" and never "deallocated"). | |
| 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 that is encoded in the read-only section of the binary (i.e. it is always "allocated" and never "deallocated"). | |
| 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_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 callback with the kind and operation id. This is useful to build a map of the operation names during tool initialization instead of querying rocprofiler everytime in the callback hotpath. | |
Detailed Description
Receive callbacks for batches of records from an internal (background) thread.
Data Structure Documentation
◆ rocprofiler_buffer_tracing_hsa_api_record_t
| struct rocprofiler_buffer_tracing_hsa_api_record_t |
ROCProfiler Buffer HSA API Tracer Record.
- Examples
- api_buffered_tracing/client.cpp.
Definition at line 44 of file buffer_tracing.h.
Collaboration diagram for rocprofiler_buffer_tracing_hsa_api_record_t:| Data Fields | ||
|---|---|---|
| rocprofiler_correlation_id_t | correlation_id | correlation ids for record |
| rocprofiler_timestamp_t | end_timestamp | end time in nanoseconds |
| rocprofiler_buffer_tracing_kind_t | kind | ROCPROFILER_CALLBACK_TRACING_HSA_CORE_API, ROCPROFILER_CALLBACK_TRACING_HSA_AMD_EXT_API, ROCPROFILER_CALLBACK_TRACING_HSA_IMAGE_EXT_API, or ROCPROFILER_CALLBACK_TRACING_HSA_FINALIZE_EXT_API |
| rocprofiler_tracing_operation_t | operation | Specification of the API function, e.g., rocprofiler_hsa_core_api_id_t, rocprofiler_hsa_amd_ext_api_id_t, rocprofiler_hsa_image_ext_api_id_t, or rocprofiler_hsa_finalize_ext_api_id_t. |
| uint64_t | size | size of this struct |
| rocprofiler_timestamp_t | start_timestamp | start time in nanoseconds |
| rocprofiler_thread_id_t | thread_id | id for thread generating this record |
◆ rocprofiler_buffer_tracing_hip_api_record_t
| struct rocprofiler_buffer_tracing_hip_api_record_t |
ROCProfiler Buffer HIP API Tracer Record.
- Examples
- api_buffered_tracing/client.cpp.
Definition at line 68 of file buffer_tracing.h.
Collaboration diagram for rocprofiler_buffer_tracing_hip_api_record_t:| Data Fields | ||
|---|---|---|
| rocprofiler_correlation_id_t | correlation_id | correlation ids for record |
| rocprofiler_timestamp_t | end_timestamp | end time in nanoseconds |
| rocprofiler_buffer_tracing_kind_t | kind | ROCPROFILER_CALLBACK_TRACING_HIP_RUNTIME_API or ROCPROFILER_CALLBACK_TRACING_HIP_COMPILER_API |
| rocprofiler_tracing_operation_t | operation | Specification of the API function, e.g., rocprofiler_hip_runtime_api_id_t or rocprofiler_hip_compiler_api_id_t. |
| uint64_t | size | size of this struct |
| rocprofiler_timestamp_t | start_timestamp | start time in nanoseconds |
| rocprofiler_thread_id_t | thread_id | id for thread generating this record |
◆ rocprofiler_buffer_tracing_ompt_target_t
| struct rocprofiler_buffer_tracing_ompt_target_t |
Additional trace data for OMPT target routines.
Definition at line 90 of file buffer_tracing.h.
Collaboration diagram for rocprofiler_buffer_tracing_ompt_target_t:| Data Fields | ||
|---|---|---|
| const void * | codeptr_ra | |
| int32_t | device_num | |
| int32_t | kind | |
| uint64_t | target_id | |
| uint64_t | task_id | |
◆ rocprofiler_buffer_tracing_ompt_target_data_op_t
| struct rocprofiler_buffer_tracing_ompt_target_data_op_t |
Definition at line 99 of file buffer_tracing.h.
Collaboration diagram for rocprofiler_buffer_tracing_ompt_target_data_op_t:| Data Fields | ||
|---|---|---|
| uint64_t | bytes | |
| const void * | codeptr_ra | |
| int32_t | dst_device_num | |
| uint64_t | host_op_id | |
| int32_t | optype | |
| int32_t | reserved | |
| int32_t | src_device_num | |
◆ rocprofiler_buffer_tracing_ompt_target_kernel_t
| struct rocprofiler_buffer_tracing_ompt_target_kernel_t |
Definition at line 110 of file buffer_tracing.h.
Collaboration diagram for rocprofiler_buffer_tracing_ompt_target_kernel_t:| Data Fields | ||
|---|---|---|
| int32_t | device_num | |
| uint64_t | host_op_id | |
| uint32_t | requested_num_teams | |
◆ rocprofiler_buffer_tracing_ompt_record_t
| struct rocprofiler_buffer_tracing_ompt_record_t |
ROCProfiler Buffer OMPT Tracer Record.
Definition at line 120 of file buffer_tracing.h.
Collaboration diagram for rocprofiler_buffer_tracing_ompt_record_t:| Data Fields | ||
|---|---|---|
| union rocprofiler_buffer_tracing_ompt_record_t.__unnamed5__ | __unnamed__ | |
| rocprofiler_correlation_id_t | correlation_id | correlation ids for record |
| rocprofiler_timestamp_t | end_timestamp | end time in nanoseconds |
| rocprofiler_buffer_tracing_kind_t | kind | ROCPROFILER_BUFFER_TRACING_OMPT |
| rocprofiler_tracing_operation_t | operation | Specification of the rocprofiler_ompt_operation_t. |
| uint64_t | size | size of this struct |
| rocprofiler_timestamp_t | start_timestamp | start time in nanoseconds |
| rocprofiler_thread_id_t | thread_id | id for thread generating this record |
◆ rocprofiler_buffer_tracing_marker_api_record_t
| struct rocprofiler_buffer_tracing_marker_api_record_t |
ROCProfiler Buffer Marker Tracer Record.
Definition at line 146 of file buffer_tracing.h.
Collaboration diagram for rocprofiler_buffer_tracing_marker_api_record_t:| Data Fields | ||
|---|---|---|
| rocprofiler_correlation_id_t | correlation_id | correlation ids for record |
| rocprofiler_timestamp_t | end_timestamp | end time in nanoseconds |
| rocprofiler_buffer_tracing_kind_t | kind | ROCPROFILER_CALLBACK_TRACING_MARKER_CORE_API, ROCPROFILER_CALLBACK_TRACING_MARKER_CONTROL_API, or ROCPROFILER_CALLBACK_TRACING_MARKER_NAME_API |
| rocprofiler_tracing_operation_t | operation | Specification of the API function, e.g., rocprofiler_marker_core_api_id_t, rocprofiler_marker_control_api_id_t, or rocprofiler_marker_name_api_id_t. |
| uint64_t | size | size of this struct |
| rocprofiler_timestamp_t | start_timestamp | start time in nanoseconds |
| rocprofiler_thread_id_t | thread_id | id for thread generating this record |
◆ rocprofiler_buffer_tracing_rccl_api_record_t
| struct rocprofiler_buffer_tracing_rccl_api_record_t |
ROCProfiler Buffer RCCL API Record.
Definition at line 169 of file buffer_tracing.h.
Collaboration diagram for rocprofiler_buffer_tracing_rccl_api_record_t:| Data Fields | ||
|---|---|---|
| rocprofiler_correlation_id_t | correlation_id | correlation ids for record |
| rocprofiler_timestamp_t | end_timestamp | end time in nanoseconds |
| rocprofiler_buffer_tracing_kind_t | kind | ROCPROFILER_CALLBACK_TRACING_RCCL_API |
| rocprofiler_tracing_operation_t | operation | Specification of the API function, e.g., rocprofiler_rccl_api_id_t. |
| uint64_t | size | size of this struct |
| rocprofiler_timestamp_t | start_timestamp | start time in nanoseconds |
| rocprofiler_thread_id_t | thread_id | id for thread generating this record |
◆ rocprofiler_buffer_tracing_rocdecode_api_record_t
| struct rocprofiler_buffer_tracing_rocdecode_api_record_t |
ROCProfiler Buffer ROCDecode API Record.
Definition at line 188 of file buffer_tracing.h.
Collaboration diagram for rocprofiler_buffer_tracing_rocdecode_api_record_t:| Data Fields | ||
|---|---|---|
| rocprofiler_correlation_id_t | correlation_id | correlation ids for record |
| rocprofiler_timestamp_t | end_timestamp | end time in nanoseconds |
| rocprofiler_buffer_tracing_kind_t | kind | ROCPROFILER_CALLBACK_TRACING_ROCDECODE_API |
| rocprofiler_tracing_operation_t | operation | Specification of the API function, e.g., rocprofiler_rocdecode_api_id_t. |
| uint64_t | size | size of this struct |
| rocprofiler_timestamp_t | start_timestamp | start time in nanoseconds |
| rocprofiler_thread_id_t | thread_id | id for thread generating this record |
◆ rocprofiler_buffer_tracing_memory_copy_record_t
| struct rocprofiler_buffer_tracing_memory_copy_record_t |
ROCProfiler Buffer Memory Copy Tracer Record.
- Examples
- api_buffered_tracing/client.cpp.
Definition at line 207 of file buffer_tracing.h.
Collaboration diagram for rocprofiler_buffer_tracing_memory_copy_record_t:| Data Fields | ||
|---|---|---|
| uint64_t | bytes | bytes copied |
| rocprofiler_correlation_id_t | correlation_id | correlation ids for record |
| rocprofiler_agent_id_t | dst_agent_id | destination agent of copy |
| rocprofiler_timestamp_t | end_timestamp | end time in nanoseconds |
| rocprofiler_buffer_tracing_kind_t | kind | ROCPROFILER_BUFFER_TRACING_MEMORY_COPY |
| rocprofiler_memory_copy_operation_t | operation |
Specification of the memory copy direction (.
|
| uint64_t | size | size of this struct |
| rocprofiler_agent_id_t | src_agent_id | source agent of copy |
| rocprofiler_timestamp_t | start_timestamp | start time in nanoseconds |
| rocprofiler_thread_id_t | thread_id | id for thread that triggered copy |
◆ rocprofiler_buffer_tracing_memory_allocation_record_t
| struct rocprofiler_buffer_tracing_memory_allocation_record_t |
ROCProfiler Buffer Memory Allocation Tracer Record.
Definition at line 230 of file buffer_tracing.h.
Collaboration diagram for rocprofiler_buffer_tracing_memory_allocation_record_t:| Data Fields | ||
|---|---|---|
| rocprofiler_address_t | address | starting address for memory allocation |
| rocprofiler_agent_id_t | agent_id | agent information for memory allocation |
| rocprofiler_correlation_id_t | correlation_id | correlation ids for record |
| rocprofiler_timestamp_t | end_timestamp | end time in nanoseconds |
| rocprofiler_buffer_tracing_kind_t | kind | |
| rocprofiler_memory_allocation_operation_t | operation | Specification of the memory allocation function (. |
| uint64_t | size | size of this struct |
| rocprofiler_timestamp_t | start_timestamp | start time in nanoseconds |
| rocprofiler_thread_id_t | thread_id | id for thread that triggered copy |
◆ rocprofiler_buffer_tracing_kernel_dispatch_record_t
| struct rocprofiler_buffer_tracing_kernel_dispatch_record_t |
ROCProfiler Buffer Kernel Dispatch Tracer Record.
- Examples
- api_buffered_tracing/client.cpp.
Definition at line 252 of file buffer_tracing.h.
Collaboration diagram for rocprofiler_buffer_tracing_kernel_dispatch_record_t:| Data Fields | ||
|---|---|---|
| rocprofiler_correlation_id_t | correlation_id | correlation ids for record |
| rocprofiler_kernel_dispatch_info_t | dispatch_info | Dispatch info. |
| rocprofiler_timestamp_t | end_timestamp | end time in nanoseconds |
| rocprofiler_buffer_tracing_kind_t | kind | ROCPROFILER_BUFFER_TRACING_KERNEL_DISPATCH |
| rocprofiler_kernel_dispatch_operation_t | operation | Kernel dispatch buffer records only report the ROCPROFILER_KERNEL_DISPATCH_COMPLETE operation because there are no "real" wrapper around the enqueuing of an individual kernel dispatch. |
| uint64_t | size | size of this struct |
| rocprofiler_timestamp_t | start_timestamp | start time in nanoseconds |
| rocprofiler_thread_id_t | thread_id | id for thread that launched kernel |
◆ rocprofiler_buffer_tracing_page_migration_record_t
| struct rocprofiler_buffer_tracing_page_migration_record_t |
ROCProfiler Buffer Page Migration Tracer Record.
- Examples
- api_buffered_tracing/client.cpp.
Definition at line 272 of file buffer_tracing.h.
Collaboration diagram for rocprofiler_buffer_tracing_page_migration_record_t:| Data Fields | ||
|---|---|---|
| rocprofiler_page_migration_args_t | args | |
| rocprofiler_buffer_tracing_kind_t | kind | ROCPROFILER_BUFFER_TRACING_PAGE_MIGRATION. |
| rocprofiler_page_migration_operation_t | operation | |
| uint32_t | pid | |
| uint64_t | size | size of this struct |
| rocprofiler_timestamp_t | timestamp | start time in nanoseconds |
◆ rocprofiler_buffer_tracing_scratch_memory_record_t
| struct rocprofiler_buffer_tracing_scratch_memory_record_t |
ROCProfiler Buffer Scratch Memory Tracer Record.
- Examples
- api_buffered_tracing/client.cpp.
Definition at line 285 of file buffer_tracing.h.
Collaboration diagram for rocprofiler_buffer_tracing_scratch_memory_record_t:| Data Fields | ||
|---|---|---|
| rocprofiler_agent_id_t | agent_id | agent kernel was dispatched on |
| rocprofiler_correlation_id_t | correlation_id | correlation ids for record |
| rocprofiler_timestamp_t | end_timestamp | end time in nanoseconds |
| rocprofiler_scratch_alloc_flag_t | flags | |
| rocprofiler_buffer_tracing_kind_t | kind | ROCPROFILER_BUFFER_TRACING_SCRATCH_MEMORY |
| rocprofiler_scratch_memory_operation_t | operation | specification of the kind |
| rocprofiler_queue_id_t | queue_id | queue kernel was dispatched on |
| uint64_t | size | size of this struct |
| rocprofiler_timestamp_t | start_timestamp | start time in nanoseconds |
| rocprofiler_thread_id_t | thread_id | id for thread generating this record |
◆ rocprofiler_buffer_tracing_correlation_id_retirement_record_t
| struct rocprofiler_buffer_tracing_correlation_id_retirement_record_t |
ROCProfiler Buffer Correlation ID Retirement Tracer Record.
Definition at line 302 of file buffer_tracing.h.
Collaboration diagram for rocprofiler_buffer_tracing_correlation_id_retirement_record_t:| Data Fields | ||
|---|---|---|
| uint64_t | internal_correlation_id | Only internal correlation ID is provided. |
| rocprofiler_buffer_tracing_kind_t | kind | ROCPROFILER_BUFFER_TRACING_CORRELATION_ID_RETIREMENT |
| uint64_t | size | size of this struct |
| rocprofiler_timestamp_t | timestamp | Timestamp (in nanosec) of when rocprofiler detected the correlation ID could be retired. Due to clock skew between the CPU and GPU, this may at times, appear to be before the kernel or memory copy completed but the reality is that if this ever occurred, the API would report a FATAL error. |
◆ rocprofiler_buffer_tracing_runtime_initialization_record_t
| struct rocprofiler_buffer_tracing_runtime_initialization_record_t |
ROCProfiler Buffer Runtime Initialization Tracer Record.
Definition at line 323 of file buffer_tracing.h.
Collaboration diagram for rocprofiler_buffer_tracing_runtime_initialization_record_t:| Data Fields | ||
|---|---|---|
| rocprofiler_correlation_id_t | correlation_id | Correlation ID for these records are always zero. |
| uint64_t | instance | Number of times this runtime had been loaded previously. |
| rocprofiler_buffer_tracing_kind_t | kind | ROCPROFILER_BUFFER_TRACING_RUNTIME_INITIALIZATION |
| rocprofiler_runtime_initialization_operation_t | operation | Indicates which runtime was initialized/loaded. |
| uint64_t | size | size of this struct |
| rocprofiler_thread_id_t | thread_id | ID for thread which loaded this runtime. |
| rocprofiler_timestamp_t | timestamp | Timestamp (in nanosec) of when runtime was initialized/loaded. |
| uint64_t | version |
The version number of the runtime. Version number is encoded as: (10000 * MAJOR) + (100 * MINOR) + PATCH |
◆ rocprofiler_buffer_tracing_ompt_record_t.__unnamed5__
| union rocprofiler_buffer_tracing_ompt_record_t.__unnamed5__ |
Definition at line 129 of file buffer_tracing.h.
Collaboration diagram for rocprofiler_buffer_tracing_ompt_record_t.__unnamed5__:| Data Fields | ||
|---|---|---|
| uint64_t | reserved[5] | |
| rocprofiler_buffer_tracing_ompt_target_t | target | |
| rocprofiler_buffer_tracing_ompt_target_data_op_t | target_data_op | |
| rocprofiler_buffer_tracing_ompt_target_kernel_t | target_kernel | |
Typedef Documentation
◆ rocprofiler_buffer_tracing_kind_cb_t
| typedef 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.
- See also
- rocprofiler_iterate_buffer_trace_kind_names.
Definition at line 356 of file buffer_tracing.h.
◆ rocprofiler_buffer_tracing_kind_operation_cb_t
| typedef 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 names.
- See also
- rocprofiler_iterate_buffer_trace_kind_operation_names.
Definition at line 364 of file buffer_tracing.h.
Function Documentation
◆ rocprofiler_configure_buffer_tracing_service()
| 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.
- Parameters
-
[in] context_id Associated context to control activation of service [in] kind Buffer tracing category [in] operations Array of specific operations (if desired) [in] operations_count Number of specific operations (if non-null set of operations) [in] buffer_id Buffer to store the records in
- Returns
- rocprofiler_status_t
- Return values
-
ROCPROFILER_STATUS_ERROR_CONFIGURATION_LOCKED rocprofiler_configure initialization phase has passed ROCPROFILER_STATUS_ERROR_CONTEXT_NOT_FOUND context is not valid ROCPROFILER_STATUS_ERROR_SERVICE_ALREADY_CONFIGURED Context has already been configured for the rocprofiler_buffer_tracing_kind_t kind ROCPROFILER_STATUS_ERROR_KIND_NOT_FOUND Invalid rocprofiler_buffer_tracing_kind_t ROCPROFILER_STATUS_ERROR_OPERATION_NOT_FOUND Invalid operation id for rocprofiler_buffer_tracing_kind_t kind was found
- Examples
- api_buffered_tracing/client.cpp.
◆ rocprofiler_iterate_buffer_tracing_kind_operations()
| 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 callback with the kind and operation id. This is useful to build a map of the operation names during tool initialization instead of querying rocprofiler everytime in the callback hotpath.
- Parameters
-
[in] kind which buffer tracing kind operations to iterate over [in] callback Callback function invoked for each operation associated with rocprofiler_buffer_tracing_kind_t with the exception of the NONEandLASTvalues.[in] data User data passed back into the callback
Referenced by rocprofiler::sdk::get_buffer_tracing_names().
Here is the caller graph for this function:◆ rocprofiler_iterate_buffer_tracing_kinds()
| 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.
This is typically used to invoke rocprofiler_iterate_buffer_tracing_kind_operations for each buffer tracing kind.
- Parameters
-
[in] callback Callback function invoked for each enumeration value in rocprofiler_buffer_tracing_kind_t with the exception of the NONEandLASTvalues.[in] data User data passed back into the callback
Referenced by rocprofiler::sdk::get_buffer_tracing_names().
Here is the caller graph for this function:◆ rocprofiler_query_buffer_tracing_kind_name()
| 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 that is encoded in the read-only section of the binary (i.e. it is always "allocated" and never "deallocated").
- Parameters
-
[in] kind Buffer tracing domain [out] name If non-null and the name is a constant string that does not require dynamic allocation, this paramter will be set to the address of the string literal, otherwise it will be set to nullptr [out] name_len If non-null, this will be assigned the length of the name (regardless of the name is a constant string or requires dynamic allocation)
- Returns
- rocprofiler_status_t
- Return values
-
ROCPROFILER_STATUS_ERROR_KIND_NOT_FOUND Returned if the domain id is not valid ROCPROFILER_STATUS_SUCCESS Returned if a valid domain, regardless if there is a constant string or not.
- Examples
- api_buffered_tracing/client.cpp.
Referenced by rocprofiler::sdk::get_buffer_tracing_names().
Here is the caller graph for this function:◆ rocprofiler_query_buffer_tracing_kind_operation_name()
| 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 that is encoded in the read-only section of the binary (i.e. it is always "allocated" and never "deallocated").
- Parameters
-
[in] kind Buffer tracing domain [in] operation Enumeration id value which maps to a specific API function or event type [out] name If non-null and the name is a constant string that does not require dynamic allocation, this paramter will be set to the address of the string literal, otherwise it will be set to nullptr [out] name_len If non-null, this will be assigned the length of the name (regardless of the name is a constant string or requires dynamic allocation)
- Returns
- rocprofiler_status_t
- Return values
-
ROCPROFILER_STATUS_ERROR_KIND_NOT_FOUND An invalid domain id ROCPROFILER_STATUS_ERROR_OPERATION_NOT_FOUND The operation number is not recognized for the given domain ROCPROFILER_STATUS_ERROR_NOT_IMPLEMENTED Rocprofiler does not support providing the operation name within this domain ROCPROFILER_STATUS_SUCCESS Valid domain and operation, regardless of whether there is a constant string or not.
Referenced by rocprofiler::sdk::get_buffer_tracing_names().
Here is the caller graph for this function:Generated by