From fae991f59931a6a28b01921a4331e405b32848aa Mon Sep 17 00:00:00 2001 From: Jakub Berkop Date: Tue, 18 Jan 2022 23:32:29 +0100 Subject: [PATCH] profile: Command recognizes "read" event type --- Userland/Utilities/profile.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Userland/Utilities/profile.cpp b/Userland/Utilities/profile.cpp index 0ef54426e4..b5ea7bbf28 100644 --- a/Userland/Utilities/profile.cpp +++ b/Userland/Utilities/profile.cpp @@ -50,6 +50,8 @@ ErrorOr serenity_main(Main::Arguments arguments) event_mask |= PERF_EVENT_PAGE_FAULT; else if (event_type == "syscall") event_mask |= PERF_EVENT_SYSCALL; + else if (event_type == "read") + event_mask |= PERF_EVENT_READ; else { warnln("Unknown event type '{}' specified.", event_type); exit(1);