The NULL value of an internal correlation ID defined (#901)

이 커밋은 다음에 포함됨:
Vladimir Indic 작성하고 GitHub가 2024-06-10 16:12:01 +02:00를 커밋함
1 부모 211ee219c4
커밋 b4f7154716
3 파일이 변경됨
+12 -4

검색과 일치하는 파일 없음

+8
파일 보기
@@ -22,6 +22,8 @@
#pragma once
#include <stdint.h>
/**
* @defgroup SYMBOL_VERSIONING_GROUP Symbol Versions
*
@@ -129,3 +131,9 @@
# define ROCPROFILER_EXTERN_C_FINI
# define ROCPROFILER_CXX_CODE(...)
#endif
#if __cplusplus
# define ROCPROFILER_UINT64_C(value) uint64_t(value)
#else
# define ROCPROFILER_UINT64_C(value) UINT64_C(value)
#endif
+2 -2
파일 보기
@@ -520,9 +520,9 @@ typedef struct
} rocprofiler_correlation_id_t;
/**
* @brief The NULL correlation ID value.
* @brief The NULL value of an internal correlation ID.
*/
#define ROCPROFILER_CORRELATION_ID_VALUE_NONE 0ULL
#define ROCPROFILER_CORRELATION_ID_INTERNAL_NONE ROCPROFILER_UINT64_C(0)
/**
* @struct rocprofiler_buffer_id_t
+2 -2
파일 보기
@@ -198,9 +198,9 @@ add_upcoming_samples(const device_handle device,
samples[p].correlation_id = corr_map->get(device, trap);
} catch(std::exception& e)
{
samples[p].correlation_id = {.internal = ROCPROFILER_CORRELATION_ID_VALUE_NONE,
samples[p].correlation_id = {.internal = ROCPROFILER_CORRELATION_ID_INTERNAL_NONE,
.external = rocprofiler_user_data_t{
.value = ROCPROFILER_CORRELATION_ID_VALUE_NONE}};
.value = ROCPROFILER_CORRELATION_ID_INTERNAL_NONE}};
status = PCSAMPLE_STATUS_PARSER_ERROR;
}
}