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:
parent
4916c892b2
commit
fae991f599
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue