1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 09:17:35 +00:00

profile: Command recognizes "read" event type

This commit is contained in:
Jakub Berkop 2022-01-18 23:32:29 +01:00 committed by Andreas Kling
parent 4916c892b2
commit fae991f599

View file

@ -50,6 +50,8 @@ ErrorOr<int> 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);