diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-05-14 07:48:53 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-19 22:51:42 +0200 |
commit | 8b2ace0326bceb28bdf80c0a09e8297acf39df97 (patch) | |
tree | a1c0cd63cef77a6793035a9ca8a5820c773f6e56 /Userland/Libraries/LibC/serenity.h | |
parent | c94440860e46cca9b66afba833c0771515da16fb (diff) | |
download | serenity-8b2ace0326bceb28bdf80c0a09e8297acf39df97.zip |
Kernel: Track performance events for context switches
Diffstat (limited to 'Userland/Libraries/LibC/serenity.h')
-rw-r--r-- | Userland/Libraries/LibC/serenity.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibC/serenity.h b/Userland/Libraries/LibC/serenity.h index 846e4ab6a3..72282cf449 100644 --- a/Userland/Libraries/LibC/serenity.h +++ b/Userland/Libraries/LibC/serenity.h @@ -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); |