mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +00:00
Kernel: Disable SMAP protection while capturing profile samples
This commit is contained in:
parent
ef05bb61a0
commit
9e51291aed
Notes:
sideshowbarker
2024-07-19 10:09:43 +09:00
Author: https://github.com/awesomekling
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