fix: error code of perf_event_open, when unsupported event is specified.

refs #1030
This commit is contained in:
Ken Sato
2017-11-15 12:49:56 +09:00
parent ab53c8e0a4
commit f18dc8428d

View File

@ -3884,7 +3884,7 @@ SYSCALL_DECLARE(perf_event_open)
}
if (not_supported_flag) {
return -1;
return -ENOENT;
}
event = mc_perf_event_alloc((struct perf_event_attr*)attr);