diff options
-rw-r--r-- | tests/framework/instruments/MaliCounter.cpp | 6 | ||||
-rw-r--r-- | tests/framework/instruments/PMU.h | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/tests/framework/instruments/MaliCounter.cpp b/tests/framework/instruments/MaliCounter.cpp index bf73fec84f..887846e88c 100644 --- a/tests/framework/instruments/MaliCounter.cpp +++ b/tests/framework/instruments/MaliCounter.cpp @@ -202,12 +202,12 @@ void MaliCounter::init() } } - if(ioctl(_hwc_fd, mali_userspace::KBASE_HWCNT_READER_GET_BUFFER_SIZE, &_buffer_size) != 0) // NOLINT + if(ioctl(_hwc_fd, static_cast<int>(mali_userspace::KBASE_HWCNT_READER_GET_BUFFER_SIZE), &_buffer_size) != 0) // NOLINT { throw std::runtime_error("Failed to get buffer size."); } - if(ioctl(_hwc_fd, mali_userspace::KBASE_HWCNT_READER_GET_HWVER, &_hw_ver) != 0) // NOLINT + if(ioctl(_hwc_fd, static_cast<int>(mali_userspace::KBASE_HWCNT_READER_GET_HWVER), &_hw_ver) != 0) // NOLINT { throw std::runtime_error("Could not determine HW version."); } @@ -300,7 +300,7 @@ void MaliCounter::wait_next_event() { mali_userspace::kbase_hwcnt_reader_metadata meta; // NOLINT - if(ioctl(_hwc_fd, mali_userspace::KBASE_HWCNT_READER_GET_BUFFER, &meta) != 0) // NOLINT + if(ioctl(_hwc_fd, static_cast<int>(mali_userspace::KBASE_HWCNT_READER_GET_BUFFER), &meta) != 0) // NOLINT { throw std::runtime_error("Failed READER_GET_BUFFER."); } diff --git a/tests/framework/instruments/PMU.h b/tests/framework/instruments/PMU.h index 571edb984d..d51b2f8ae1 100644 --- a/tests/framework/instruments/PMU.h +++ b/tests/framework/instruments/PMU.h @@ -29,6 +29,7 @@ #include <cstdint> #include <linux/perf_event.h> #include <stdexcept> +#include <sys/syscall.h> #include <unistd.h> namespace arm_compute |