[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, Sriraksha
2025-07-18 11:24:48 -05:00
zatwierdzone przez GitHub
rodzic f4cce0d2d4
commit fcfb5bd918
7 zmienionych plików z 63 dodań i 12 usunięć
@@ -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
Wyświetl plik
@@ -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;
//--------------------------------------------------------------------------------------//