summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-05-14 07:48:53 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-19 22:51:42 +0200
commit8b2ace0326bceb28bdf80c0a09e8297acf39df97 (patch)
treea1c0cd63cef77a6793035a9ca8a5820c773f6e56 /Userland/Libraries/LibC
parentc94440860e46cca9b66afba833c0771515da16fb (diff)
downloadserenity-8b2ace0326bceb28bdf80c0a09e8297acf39df97.zip
Kernel: Track performance events for context switches
Diffstat (limited to 'Userland/Libraries/LibC')
-rw-r--r--Userland/Libraries/LibC/serenity.h3
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);