From 8b2ace0326bceb28bdf80c0a09e8297acf39df97 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Fri, 14 May 2021 07:48:53 +0200 Subject: Kernel: Track performance events for context switches --- Userland/Libraries/LibC/serenity.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Userland/Libraries/LibC') 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); -- cgit v1.2.3