This commit is contained in:
IRainman 2025-03-24 12:59:52 +03:00
parent 0340e8bb25
commit edb51b3e68

View File

@ -75,7 +75,7 @@ public:
} }
} }
inline void end(std::vector<unsigned long long> &results) { inline void end(std::array<unsigned long long, 4> &results) {
if (fd != -1) { if (fd != -1) {
if (ioctl(fd, PERF_EVENT_IOC_DISABLE, PERF_IOC_FLAG_GROUP) == -1) { if (ioctl(fd, PERF_EVENT_IOC_DISABLE, PERF_IOC_FLAG_GROUP) == -1) {
report_error("ioctl(PERF_EVENT_IOC_DISABLE)"); report_error("ioctl(PERF_EVENT_IOC_DISABLE)");