Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Add CTS for Sysman memory diagnostics #137

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vishnu-khanth
Copy link
Contributor

Related-To: VLCLJ-2372

@vishnu-khanth vishnu-khanth self-assigned this Jan 10, 2025
Related-To: VLCLJ-2372

Signed-off-by: B, Vishnu Khanth <[email protected]>
auto properties = lzt::get_diag_properties(diag_handle);

if (strcmp(properties.name, "MEMORY_PPR") == 0) {
bool mem_diag_available = true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be using the declaration at Ln 257 ?

uint32_t mem_handles_count = 0;
std::vector<zes_mem_handle_t> mem_handles =
lzt::get_mem_handles(device, mem_handles_count);
EXPECT_GT(mem_handles_count, 0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have verification to check mem_handles_count is same as before diagnostics ?


for (auto mem_handle : mem_handles) {
ASSERT_NE(nullptr, mem_handle);
lzt::get_mem_state(mem_handle);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error check ?

}

if (!diag_handles_available) {
FAIL() << "No handles found in any of the devices!";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No "Diagnostic"

FAIL() << "Memory Diagnostics is not available for this device!";
}
} else {
LOG_WARNING << "No handles found on this device!";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please specify what handles are not found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants