diff options
author | Andreas Kling <kling@serenityos.org> | 2021-03-02 16:55:54 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-02 22:38:06 +0100 |
commit | b425c2602c6dd10b5509fcd8d81c765b9c76993a (patch) | |
tree | 2bf74d65414324093a011cd026daa72adf8df049 /Kernel/Scheduler.cpp | |
parent | e7ef729db308d3372a129f4313a5c3e9fc0b36ae (diff) | |
download | serenity-b425c2602c6dd10b5509fcd8d81c765b9c76993a.zip |
Kernel: Better handling of allocation failure in profiling
If we can't allocate a PerformanceEventBuffer to store the profiling
events, we now fail sys$profiling_enable() and sys$perf_event()
with ENOMEM instead of carrying on with a broken buffer.
Diffstat (limited to 'Kernel/Scheduler.cpp')
0 files changed, 0 insertions, 0 deletions