Kernel: More PID/TID typing

This commit is contained in:
Ben Wiederhake 2020-08-09 01:08:24 +02:00 committed by Andreas Kling
commit bee08a4b9f
Notes: sideshowbarker 2024-07-19 04:06:40 +09:00
21 changed files with 67 additions and 60 deletions

View file

@ -445,7 +445,7 @@ Optional<KBuffer> procfs$profile(InodeIdentifier)
KBufferBuilder builder;
JsonObjectSerializer object(builder);
object.add("pid", Profiling::pid());
object.add("pid", Profiling::pid().value());
object.add("executable", Profiling::executable_path());
auto array = object.add_array("events");
@ -453,7 +453,7 @@ Optional<KBuffer> procfs$profile(InodeIdentifier)
Profiling::for_each_sample([&](auto& sample) {
auto object = array.add_object();
object.add("type", "sample");
object.add("tid", sample.tid);
object.add("tid", sample.tid.value());
object.add("timestamp", sample.timestamp);
auto frames_array = object.add_array("stack");
for (size_t i = 0; i < Profiling::max_stack_frame_count; ++i) {