mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
Kernel: Make PerformanceEventBuffer::to_json() return a KResult
There's a ton of things inside to_json() that could go wrong but we don't know about it yet. One step at a time.
This commit is contained in:
parent
6f992d784f
commit
905065f8c8
Notes:
sideshowbarker
2024-07-18 04:29:40 +09:00
Author: https://github.com/awesomekling
Commit: 905065f8c8
5 changed files with 8 additions and 12 deletions
|
@ -166,7 +166,7 @@ KResult Process::procfs_get_perf_events(KBufferBuilder& builder) const
|
|||
dbgln("ProcFS: No perf events for {}", pid());
|
||||
return KResult(ENOBUFS);
|
||||
}
|
||||
return perf_events()->to_json(builder) ? KSuccess : KResult(EINVAL);
|
||||
return perf_events()->to_json(builder);
|
||||
}
|
||||
|
||||
KResult Process::procfs_get_fds_stats(KBufferBuilder& builder) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue