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

@ -39,13 +39,13 @@ namespace Profiling {
constexpr size_t max_stack_frame_count = 50;
struct Sample {
i32 pid;
i32 tid;
ProcessID pid;
ThreadID tid;
u64 timestamp;
u32 frames[max_stack_frame_count];
};
extern u32 pid();
extern ProcessID pid();
extern String& executable_path();
Sample& next_sample_slot();