fix: error code of perf_event_open, when unsupported event is specified.
refs #1030
This commit is contained in:
@ -3884,7 +3884,7 @@ SYSCALL_DECLARE(perf_event_open)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (not_supported_flag) {
|
if (not_supported_flag) {
|
||||||
return -1;
|
return -ENOENT;
|
||||||
}
|
}
|
||||||
|
|
||||||
event = mc_perf_event_alloc((struct perf_event_attr*)attr);
|
event = mc_perf_event_alloc((struct perf_event_attr*)attr);
|
||||||
|
|||||||
Reference in New Issue
Block a user