1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:04:59 +00:00

Kernel: Track performance events for context switches

This commit is contained in:
Gunnar Beutner 2021-05-14 07:48:53 +02:00 committed by Andreas Kling
parent c94440860e
commit 8b2ace0326
6 changed files with 29 additions and 2 deletions

View file

@ -56,7 +56,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,
};
#define WNOHANG 1