mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 08:41:15 +00:00
Kernel: Log thread exits for global profiles
This commit is contained in:
parent
afeee35cbf
commit
1c02848e54
Notes:
sideshowbarker
2024-07-18 19:03:20 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/1c02848e54c Pull-request: https://github.com/SerenityOS/serenity/pull/6676
|
@ -89,8 +89,8 @@ void Process::sys$exit_thread(Userspace<void*> exit_value)
|
|||
this->sys$exit(0);
|
||||
}
|
||||
|
||||
if (m_perf_event_buffer) {
|
||||
[[maybe_unused]] auto rc = m_perf_event_buffer->append(PERF_EVENT_THREAD_EXIT, Thread::current()->tid().value(), 0, nullptr);
|
||||
if (auto* event_buffer = current_perf_events_buffer()) {
|
||||
[[maybe_unused]] auto rc = event_buffer->append(PERF_EVENT_THREAD_EXIT, Thread::current()->tid().value(), 0, nullptr);
|
||||
}
|
||||
|
||||
Thread::current()->exit(reinterpret_cast<void*>(exit_value.ptr()));
|
||||
|
|
Loading…
Reference in a new issue