mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 02:12:09 -05:00
Kernel: Commit the profiling sample buffer memory up front
This avoids getting page faults while storing samples in the timer IRQ.
This commit is contained in:
parent
8047ff8205
commit
f9a138aa4b
1 changed files with 1 additions and 0 deletions
|
@ -48,6 +48,7 @@ void start(Process& process)
|
|||
|
||||
if (!s_profiling_buffer) {
|
||||
s_profiling_buffer = RefPtr<KBufferImpl>(KBuffer::create_with_size(8 * MB).impl()).leak_ref();
|
||||
s_profiling_buffer->region().commit();
|
||||
s_slot_count = s_profiling_buffer->size() / sizeof(Sample);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue