mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 18:27:35 +00:00
Kernel: Track performance events for context switches
This commit is contained in:
parent
c94440860e
commit
8b2ace0326
6 changed files with 29 additions and 2 deletions
|
@ -85,7 +85,8 @@ enum {
|
|||
PERF_EVENT_PROCESS_EXEC,
|
||||
PERF_EVENT_PROCESS_EXIT,
|
||||
PERF_EVENT_THREAD_CREATE,
|
||||
PERF_EVENT_THREAD_EXIT
|
||||
PERF_EVENT_THREAD_EXIT,
|
||||
PERF_EVENT_CONTEXT_SWITCH,
|
||||
};
|
||||
|
||||
int perf_event(int type, uintptr_t arg1, uintptr_t arg2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue