[SDK] Update UUID (rocprofiler_uuid_t) (#390)

* changing uuid abi

* fix

* review comments

* fix CI fail

* review comments

* fix

* adding static asserts

* making constructor constexpr

* fix CI fail

* upadate UUID length to 16 bytes

* fixing value64

Co-authored-by: Madsen, Jonathan <Jonathan.Madsen@amd.com>

* Update CHANGELOG.md

Co-authored-by: Madsen, Jonathan <Jonathan.Madsen@amd.com>

---------

Co-authored-by: Madsen, Jonathan <Jonathan.Madsen@amd.com>

[ROCm/rocprofiler-sdk commit: fcfb5bd918]
This commit is contained in:
Nagaraj, Sriraksha
2025-07-18 11:24:48 -05:00
committed by GitHub
parent 052eb24881
commit 483a10f53a
7 changed files with 63 additions and 12 deletions
@@ -1132,7 +1132,7 @@ template <typename ArchiveT>
void
save(ArchiveT& ar, rocprofiler_uuid_t data)
{
ROCP_SDK_SAVE_DATA_FIELD(value);
ROCP_SDK_SAVE_DATA_FIELD(bytes);
}
template <typename ArchiveT>
@@ -572,10 +572,9 @@ typedef union rocprofiler_address_t
* @brief Stores UUID for devices.
*
*/
typedef union rocprofiler_uuid_t
typedef struct rocprofiler_uuid_t
{
uint64_t value; ///< numerical value
void* bytes; ///< uuid in hexadecimal
uint8_t bytes[16]; // numerical value
} rocprofiler_uuid_t;
//--------------------------------------------------------------------------------------//