Skip to content

Commit b5696b7

Browse files
cuiweixierocallahan
authored andcommitted
Fix FATAL message for PERF_EVENT_IOC_DISABLE.
infallible_perf_event_disable_if_open() reported ioctl(PERF_EVENT_IOC_ENABLE) on failure; the ioctl call is PERF_EVENT_IOC_DISABLE.
1 parent 4b1fcde commit b5696b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/PerfCounters.cc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ static void infallible_perf_event_enable_if_open(ScopedFd& fd) {
802802
static void infallible_perf_event_disable_if_open(ScopedFd& fd) {
803803
if (fd.is_open()) {
804804
if (ioctl(fd, PERF_EVENT_IOC_DISABLE, 0)) {
805-
FATAL() << "ioctl(PERF_EVENT_IOC_ENABLE) failed";
805+
FATAL() << "ioctl(PERF_EVENT_IOC_DISABLE) failed";
806806
}
807807
}
808808
}

0 commit comments

Comments
 (0)