UserspaceEmulator: Ignore perf_event and perf_register_string syscalls

We can just fail these with ENOSYS pending a full implementation.
This commit is contained in:
Andreas Kling 2021-09-11 02:13:52 +02:00
parent 5514f41f25
commit 2116fb5be9
Notes: sideshowbarker 2024-07-18 04:18:39 +09:00

View File

@ -248,6 +248,8 @@ u32 Emulator::virt_syscall(u32 function, u32 arg1, u32 arg2, u32 arg3)
case SC_futex:
return virt$futex(arg1);
case SC_map_time_page:
case SC_perf_register_string:
case SC_perf_event:
return -ENOSYS;
default:
reportln("\n=={}== \033[31;1mUnimplemented syscall: {}\033[0m, {:p}", getpid(), Syscall::to_string((Syscall::Function)function), function);