mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:17:35 +00:00
Kernel: Make PerformanceEventBuffer::add_process fallible with ErrorOr
This commit is contained in:
parent
d2ffcfb762
commit
8a4654a924
4 changed files with 22 additions and 16 deletions
|
@ -18,14 +18,14 @@ public:
|
|||
{
|
||||
if (g_profiling_all_threads) {
|
||||
VERIFY(g_global_perf_events);
|
||||
g_global_perf_events->add_process(process, ProcessEventType::Create);
|
||||
(void)g_global_perf_events->add_process(process, ProcessEventType::Create);
|
||||
}
|
||||
}
|
||||
|
||||
inline static void add_process_exec_event(Process& process)
|
||||
{
|
||||
if (auto* event_buffer = process.current_perf_events_buffer()) {
|
||||
event_buffer->add_process(process, ProcessEventType::Exec);
|
||||
(void)event_buffer->add_process(process, ProcessEventType::Exec);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue