From 2116fb5be9714dc154fd01edfd32afed9bc9e3bf Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 11 Sep 2021 02:13:52 +0200 Subject: [PATCH] UserspaceEmulator: Ignore perf_event and perf_register_string syscalls We can just fail these with ENOSYS pending a full implementation. --- Userland/DevTools/UserspaceEmulator/Emulator_syscalls.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Userland/DevTools/UserspaceEmulator/Emulator_syscalls.cpp b/Userland/DevTools/UserspaceEmulator/Emulator_syscalls.cpp index dece7199bc..9fe0a55b81 100644 --- a/Userland/DevTools/UserspaceEmulator/Emulator_syscalls.cpp +++ b/Userland/DevTools/UserspaceEmulator/Emulator_syscalls.cpp @@ -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);