[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>
This commit is contained in:
Nagaraj, SrirakshaandMadsen, Jonathan authored and GitHub committed 2025-07-18 11:24:48 -05:00
1 parent f4cce0d2d4
commit fcfb5bd918
7 files changed
+63 -12

No files matched your search

@@ -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>
+2 -3
View File
@@ -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;
//--------------------------------------------------------------------------------------//