mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-09 01:20:46 +00:00
Kernel: Disable SMAP protection while capturing profile samples
This commit is contained in:
parent
ef05bb61a0
commit
9e51291aed
|
@ -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…
Reference in a new issue