Skip to content

Commit

Permalink
add interrupt Post execution source, destination dump buffer in debug (
Browse files Browse the repository at this point in the history
…#2913)

Signed-off-by: anandaravuri <ananda.ravuri@intel.com>
  • Loading branch information
anandaravuri committed Apr 6, 2023
1 parent 8a35db7 commit 2065ed5
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion samples/host_exerciser/host_exerciser_cmd.h
Original file line number Diff line number Diff line change
Expand Up @@ -497,10 +497,22 @@ class host_exerciser_cmd : public test_command
// Interrupt test mode
if (he_lpbk_cfg_.IntrTestMode == 1) {
if (!he_interrupt(ev)) {
status = -1;
status = -1;
if (host_exe_->logger_->should_log(spdlog::level::debug)) {
std::cout << std::endl;
he_dump_buffer(source_, "Post-execution source");
he_dump_buffer(destination_, "Post-execution destination");
std::cout << std::endl;
}
}
else {
status = he_compare_buffer();
if (host_exe_->logger_->should_log(spdlog::level::debug)) {
std::cout << std::endl;
he_dump_buffer(source_, "Post-execution source");
he_dump_buffer(destination_, "Post-execution destination");
std::cout << std::endl;
}
he_perf_counters();
}
} else if (host_exe_->he_continuousmode_) {
Expand Down

0 comments on commit 2065ed5

Please sign in to comment.