Quiet address sanitizer warnings
Also,
* Fix some doxygen issues
* Fix address sanitizer issues in rsmitst
Change-Id: Ie6c6fd9af5c418210b7064e79650fb92cd4a5e2b
[ROCm/rocm_smi_lib commit: 63064b0000]
Este commit está contenido en:
@@ -80,6 +80,10 @@ void TestBase::MakeHeaderStr(const char *inStr,
|
||||
}
|
||||
}
|
||||
|
||||
void TestBase::SetUp(void) {
|
||||
SetUp(0);
|
||||
}
|
||||
|
||||
void TestBase::SetUp(uint64_t init_flags) {
|
||||
std::string label;
|
||||
rsmi_status_t err;
|
||||
|
||||
@@ -59,7 +59,8 @@ class TestBase {
|
||||
// i.e. init runtime, prepare packet...
|
||||
// The init_flags option will override any flags set for the whole test
|
||||
// suite
|
||||
virtual void SetUp(uint64_t init_flags = 0);
|
||||
void SetUp(uint64_t init_flags);
|
||||
virtual void SetUp(void);
|
||||
|
||||
// @Brief: Core measurement codes executing here
|
||||
virtual void Run(void);
|
||||
|
||||
@@ -80,9 +80,8 @@ static const char * kRasErrStateStrings[] = {
|
||||
"Error Unknown", // RSMI_RAS_ERR_STATE_PARITY
|
||||
"Single, Correctable", // RSMI_RAS_ERR_STATE_SING_C
|
||||
"Multiple, Uncorrectable", // RSMI_RAS_ERR_STATE_MULT_UC
|
||||
"Poison" // RSMI_RAS_ERR_STATE_POISON
|
||||
"Off", // RSMI_RAS_ERR_STATE_DISABLED
|
||||
"On", // RSMI_RAS_ERR_STATE_ENABLED
|
||||
"Poison", // RSMI_RAS_ERR_STATE_POISON
|
||||
"Enabled", // RSMI_RAS_ERR_STATE_ENABLED
|
||||
};
|
||||
static_assert(
|
||||
sizeof(kRasErrStateStrings)/sizeof(char *) == (RSMI_RAS_ERR_STATE_LAST + 1),
|
||||
|
||||
Referencia en una nueva incidencia
Block a user