From 29088d517a2a9f249fe5cc851e0c97de3d4cc917 Mon Sep 17 00:00:00 2001 From: Moritz Pflanzer Date: Thu, 21 Sep 2017 15:06:59 +0100 Subject: COMPMID-417: Fix PMU/Mali counters for Android builds Change-Id: I738cfb7cc799e0b05b5819663c373666a9da4597 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/88644 Reviewed-by: Georgios Pinitas Tested-by: Kaizen --- tests/framework/instruments/MaliCounter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/framework/instruments/MaliCounter.cpp') 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(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(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(mali_userspace::KBASE_HWCNT_READER_GET_BUFFER), &meta) != 0) // NOLINT { throw std::runtime_error("Failed READER_GET_BUFFER."); } -- cgit v1.2.1