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
commit 8b2ace0326
Notes: sideshowbarker 2024-07-18 17:45:47 +09:00
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