| 244 | } |
| 245 | |
| 246 | static void enablePerfEvent(int event_fd) |
| 247 | { |
| 248 | if (ioctl(event_fd, PERF_EVENT_IOC_ENABLE, 0)) |
| 249 | { |
| 250 | LOG_WARNING(&Poco::Logger::get("PerfEvents"), |
| 251 | "Can't enable perf event with file descriptor {}: '{}' ({})", |
| 252 | event_fd, errnoToString(errno), errno); |
| 253 | } |
| 254 | } |
| 255 | |
| 256 | static void disablePerfEvent(int event_fd) |
| 257 | { |
no test coverage detected