mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:57:45 +00:00
Kernel+LibC: Add PERF_EVENT_SIGNPOST
This event will be used by userspace programs wanting to mark interesting high-level events in the profile. :^)
This commit is contained in:
parent
84053816d5
commit
0d997d48ea
4 changed files with 17 additions and 0 deletions
|
@ -62,6 +62,11 @@ struct [[gnu::packed]] KFreePerformanceEvent {
|
|||
FlatPtr ptr;
|
||||
};
|
||||
|
||||
struct [[gnu::packed]] SignpostPerformanceEvent {
|
||||
FlatPtr arg1;
|
||||
FlatPtr arg2;
|
||||
};
|
||||
|
||||
struct [[gnu::packed]] PerformanceEvent {
|
||||
u16 type { 0 };
|
||||
u8 stack_size { 0 };
|
||||
|
@ -80,6 +85,7 @@ struct [[gnu::packed]] PerformanceEvent {
|
|||
ContextSwitchPerformanceEvent context_switch;
|
||||
KMallocPerformanceEvent kmalloc;
|
||||
KFreePerformanceEvent kfree;
|
||||
SignpostPerformanceEvent signpost;
|
||||
} data;
|
||||
static constexpr size_t max_stack_frame_count = 64;
|
||||
FlatPtr stack[max_stack_frame_count];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue