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:
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;
|
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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue