From 950bfe5e63ea71a24322e54bf1f489f06459cdcf Mon Sep 17 00:00:00 2001 From: Harsh Wardhan Date: Sat, 19 Oct 2024 11:26:34 +0530 Subject: [PATCH] Replay minor fixes (#8548) Signed-off-by: Harsh Wardhan --- .../core/tools/xbreplay/src/replay_eng/replay.hpp | 2 ++ .../core/tools/xbreplay/src/replay_xrt/replay_xrt_bo.cpp | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/runtime_src/core/tools/xbreplay/src/replay_eng/replay.hpp b/src/runtime_src/core/tools/xbreplay/src/replay_eng/replay.hpp index 9941bd19aa..82f429dc74 100755 --- a/src/runtime_src/core/tools/xbreplay/src/replay_eng/replay.hpp +++ b/src/runtime_src/core/tools/xbreplay/src/replay_eng/replay.hpp @@ -74,8 +74,10 @@ class replay_master /* {"API to Look for", "API to Skip" } */ {"xrt::device::load_xclbin(const std::string&)", "xrt::xclbin::xclbin(const axlf*)"}, +#ifdef __linux__ {"xrt::device::register_xclbin(const xrt::xclbin&)", "xrt::xclbin::xclbin(const axlf*)"}, +#endif }; } diff --git a/src/runtime_src/core/tools/xbreplay/src/replay_xrt/replay_xrt_bo.cpp b/src/runtime_src/core/tools/xbreplay/src/replay_xrt/replay_xrt_bo.cpp index 178cb2869d..dab3334384 100755 --- a/src/runtime_src/core/tools/xbreplay/src/replay_xrt/replay_xrt_bo.cpp +++ b/src/runtime_src/core/tools/xbreplay/src/replay_xrt/replay_xrt_bo.cpp @@ -18,7 +18,7 @@ void replay_xrt::register_bo_class_func() const std::vector > &args = msg->m_args; /* get dev handle */ - unsigned long dev_handle = std::stoul(args[0].second, nullptr, utils::base_hex); + auto dev_handle = std::stoull(args[0].second, nullptr, utils::base_hex); /* From handle obtained from log get the corresponding device * handle from map @@ -54,7 +54,7 @@ void replay_xrt::register_bo_class_func() const std::vector > &args = msg->m_args; /* get dev handle */ - auto dev_handle = std::stoul(args[0].second, nullptr, utils::base_hex); + auto dev_handle = std::stoull(args[0].second, nullptr, utils::base_hex); /* From handle obtained from log get the corresponding device * handle from map @@ -81,7 +81,7 @@ void replay_xrt::register_bo_class_func() const std::vector > &args = msg->m_args; /* get dev handle */ - unsigned long dev_handle = std::stoul(args[0].second,nullptr, utils::base_hex); + auto dev_handle = std::stoull(args[0].second,nullptr, utils::base_hex); /* From handle obtained from log get the corresponding device * handle from map @@ -107,7 +107,7 @@ void replay_xrt::register_bo_class_func() const std::vector > &args = msg->m_args; /* get dev handle */ - unsigned long dev_handle = std::stoul(args[0].second,nullptr, utils::base_hex); + auto dev_handle = std::stoull(args[0].second,nullptr, utils::base_hex); /* From handle obtained from log get the corresponding device * handle from map