Kernel: PID/TID typing

This compiles, and contains exactly the same bugs as before.
The regex 'FIXME: PID/' should reveal all markers that I left behind, including:
- Incomplete conversion
- Issues or things that look fishy
- Actual bugs that will go wrong during runtime
This commit is contained in:
Ben Wiederhake 2020-08-08 17:32:34 +02:00 committed by Andreas Kling
commit f5744a6f2f
Notes: sideshowbarker 2024-07-19 04:06:48 +09:00
26 changed files with 136 additions and 111 deletions

View file

@ -94,12 +94,12 @@ PerformanceEvent& PerformanceEventBuffer::at(size_t index)
return events[index];
}
KBuffer PerformanceEventBuffer::to_json(pid_t pid, const String& executable_path) const
KBuffer PerformanceEventBuffer::to_json(ProcessID pid, const String& executable_path) const
{
KBufferBuilder builder;
JsonObjectSerializer object(builder);
object.add("pid", pid);
object.add("pid", pid.value());
object.add("executable", executable_path);
auto array = object.add_array("events");