mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 06:48:12 +00:00
Kernel: Disable SMAP protection while capturing profile samples
This commit is contained in:
parent
ef05bb61a0
commit
9e51291aed
1 changed files with 1 additions and 0 deletions
|
@ -562,6 +562,7 @@ void Scheduler::timer_tick(RegisterDump& regs)
|
|||
Process::update_info_page_timestamp(tv);
|
||||
|
||||
if (current->process().is_profiling()) {
|
||||
SmapDisabler disabler;
|
||||
auto backtrace = current->raw_backtrace(regs.ebp);
|
||||
auto& sample = Profiling::next_sample_slot();
|
||||
sample.pid = current->pid();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue