| 88 | } |
| 89 | |
| 90 | void PMU::reset() |
| 91 | { |
| 92 | const int result = ioctl(_fd, PERF_EVENT_IOC_RESET, 0); |
| 93 | if (result == -1) |
| 94 | { |
| 95 | ARM_COMPUTE_ERROR_VAR("Failed to reset PMU counter: %d", errno); |
| 96 | } |
| 97 | } |
| 98 | } // namespace framework |
| 99 | } // namespace test |
| 100 | } // namespace arm_compute |