1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:27:45 +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; event_mask |= PERF_EVENT_PAGE_FAULT;
else if (event_type == "syscall") else if (event_type == "syscall")
event_mask |= PERF_EVENT_SYSCALL; event_mask |= PERF_EVENT_SYSCALL;
else if (event_type == "read")
event_mask |= PERF_EVENT_READ;
else { else {
warnln("Unknown event type '{}' specified.", event_type); warnln("Unknown event type '{}' specified.", event_type);
exit(1); exit(1);