1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:57:44 +00:00

Kernel+ProfileViewer: Display additional filesystem events

This commit is contained in:
Jakub Berkop 2023-08-25 23:47:42 +02:00 committed by Andrew Kaster
parent c184a0786f
commit 54e79aa1d9
16 changed files with 655 additions and 135 deletions

View file

@ -52,8 +52,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 if (event_type == "filesystem")
event_mask |= PERF_EVENT_FILESYSTEM;
else {
warnln("Unknown event type '{}' specified.", event_type);
exit(1);
@ -65,7 +65,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
auto print_types = [] {
outln();
outln("Event type can be one of: sample, context_switch, page_fault, syscall, read, kmalloc and kfree.");
outln("Event type can be one of: sample, context_switch, page_fault, syscall, filesystem, kmalloc and kfree.");
};
if (!args_parser.parse(arguments, Core::ArgsParser::FailureBehavior::PrintUsage)) {