rocDecode Buffer Tracing Support (#315)

* Added buffer tracing support for rocdecode and updated tests to work with buffer tracing

* Updated perfetto to output args individually rather than as a string list

* Updated docstrings and operation type, changed OTF2 code to remove warning due to change in operation type

* Updated tests for review comments

* Test args exist and return value

* Updated to use string entry

* Change function name

* Updated PR to reflect review comments

* Updated for PR review comments

* Change function name
This commit is contained in:
Trowbridge, Ian
2025-04-11 16:56:36 -05:00
کامیت شده توسط GitHub
والد 379d760fc1
کامیت 077723337a
28فایلهای تغییر یافته به همراه391 افزوده شده و 146 حذف شده
@@ -36,21 +36,23 @@ namespace rocdecode
template <>
struct rocdecode_domain_info<ROCPROFILER_ROCDECODE_TABLE_ID_LAST>
{
using args_type = rocprofiler_rocdecode_api_args_t;
using retval_type = rocprofiler_rocdecode_api_retval_t;
using callback_data_type = rocprofiler_callback_tracing_rocdecode_api_data_t;
using buffer_data_type = rocprofiler_buffer_tracing_rocdecode_api_record_t;
using args_type = rocprofiler_rocdecode_api_args_t;
using retval_type = rocprofiler_rocdecode_api_retval_t;
using callback_data_type = rocprofiler_callback_tracing_rocdecode_api_data_t;
using buffer_data_type = rocprofiler_buffer_tracing_rocdecode_api_record_t;
using buffered_ext_data_type = rocprofiler_buffer_tracing_rocdecode_api_ext_record_t;
};
template <>
struct rocdecode_domain_info<ROCPROFILER_ROCDECODE_TABLE_ID_CORE>
: rocdecode_domain_info<ROCPROFILER_ROCDECODE_TABLE_ID_LAST>
{
using enum_type = rocprofiler_marker_core_api_id_t;
static constexpr auto callback_domain_idx = ROCPROFILER_CALLBACK_TRACING_ROCDECODE_API;
static constexpr auto buffered_domain_idx = ROCPROFILER_BUFFER_TRACING_ROCDECODE_API;
static constexpr auto none = ROCPROFILER_ROCDECODE_API_ID_NONE;
static constexpr auto last = ROCPROFILER_ROCDECODE_API_ID_LAST;
using enum_type = rocprofiler_marker_core_api_id_t;
static constexpr auto callback_domain_idx = ROCPROFILER_CALLBACK_TRACING_ROCDECODE_API;
static constexpr auto buffered_domain_idx = ROCPROFILER_BUFFER_TRACING_ROCDECODE_API;
static constexpr auto buffered_ext_domain_idx = ROCPROFILER_BUFFER_TRACING_ROCDECODE_API_EXT;
static constexpr auto none = ROCPROFILER_ROCDECODE_API_ID_NONE;
static constexpr auto last = ROCPROFILER_ROCDECODE_API_ID_LAST;
static constexpr auto external_correlation_id_domain_idx =
ROCPROFILER_EXTERNAL_CORRELATION_REQUEST_ROCDECODE_API;
};