From: Mark W. <ma...@so...> - 2025-02-25 20:39:51
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=39704763eaded8590e4a34668191cd5bbd06e5a5 commit 39704763eaded8590e4a34668191cd5bbd06e5a5 Author: Mark Wielaard <ma...@kl...> Date: Thu Dec 26 13:18:09 2024 +0100 riscv64: syswrap various shared linux syscalls syswrap-riscv64-linux.c: Hook up open_tree, move_mount, fsopen, fsconfig, fsmount, fspick, pidfd_open, openat2, pidfd_getfd, epoll_pwait2, landlock_create_ruleset, landlock_add_rule, landlock_restrict_self and fchmodat2. Diff: --- coregrind/m_syswrap/syswrap-riscv64-linux.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/coregrind/m_syswrap/syswrap-riscv64-linux.c b/coregrind/m_syswrap/syswrap-riscv64-linux.c index 68c53b0bda..14310b2b2e 100644 --- a/coregrind/m_syswrap/syswrap-riscv64-linux.c +++ b/coregrind/m_syswrap/syswrap-riscv64-linux.c @@ -577,10 +577,24 @@ static SyscallTableEntry syscall_main_table[] = { LINXY(__NR_io_uring_setup, sys_io_uring_setup), /* 425 */ LINXY(__NR_io_uring_enter, sys_io_uring_enter), /* 426 */ LINXY(__NR_io_uring_register, sys_io_uring_register), /* 427 */ + LINXY(__NR_open_tree, sys_open_tree), /* 428 */ + LINX_(__NR_move_mount, sys_move_mount), /* 429 */ + LINXY(__NR_fsopen, sys_fsopen), /* 430 */ + LINX_(__NR_fsconfig, sys_fsconfig), /* 431 */ + LINXY(__NR_fsmount, sys_fsmount), /* 432 */ + LINXY(__NR_fspick, sys_fspick), /* 433 */ + LINXY(__NR_pidfd_open, sys_pidfd_open), /* 434 */ GENX_(__NR_clone3, sys_ni_syscall), /* 435 */ LINXY(__NR_close_range, sys_close_range), /* 436 */ + LINXY(__NR_openat2, sys_openat2), /* 437 */ + LINXY(__NR_pidfd_getfd, sys_pidfd_getfd), /* 438 */ LINX_(__NR_faccessat2, sys_faccessat2), /* 439 */ + LINXY(__NR_epoll_pwait2, sys_epoll_pwait2), /* 441 */ + LINXY(__NR_landlock_create_ruleset, sys_landlock_create_ruleset), /* 444 */ + LINX_(__NR_landlock_add_rule, sys_landlock_add_rule), /* 445 */ + LINX_(__NR_landlock_restrict_self, sys_landlock_restrict_self), /* 446 */ LINXY(__NR_memfd_secret, sys_memfd_secret), /* 447 */ + LINX_(__NR_fchmodat2, sys_fchmodat2), /* 452 */ }; SyscallTableEntry* ML_(get_linux_syscall_entry)(UInt sysno) |