Skip to content

Commit

Permalink
Kernel: Unbreak profiling all processes
Browse files Browse the repository at this point in the history
Regressed in 8a4cc73.
We stopped generating "process created" when enabling profiling,
which led to Profiler getting confused about the missing events.
  • Loading branch information
awesomekling committed May 15, 2021
1 parent 19a696e commit 4d429ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Kernel/Syscalls/profiling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ KResultOr<int> Process::sys$profiling_enable(pid_t pid)
ScopedSpinLock lock(g_processes_lock);
if (!TimeManagement::the().enable_profile_timer())
return ENOTSUP;
g_profiling_all_threads = true;
Process::for_each([](auto& process) {
PerformanceManager::add_process_created_event(process);
return IterationDecision::Continue;
});
g_profiling_all_threads = true;
return 0;
}

Expand Down

0 comments on commit 4d429ba

Please sign in to comment.