Module Name: src Committed By: christos Date: Fri Jul 28 18:20:53 UTC 2023
Modified Files: src/sys/compat/linux/arch/amd64: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c linux_systrace_args.c Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.77 -r1.78 src/sys/compat/linux/arch/amd64/linux_syscall.h \ src/sys/compat/linux/arch/amd64/linux_syscallargs.h \ src/sys/compat/linux/arch/amd64/linux_syscalls.c \ src/sys/compat/linux/arch/amd64/linux_sysent.c cvs rdiff -u -r1.21 -r1.22 \ src/sys/compat/linux/arch/amd64/linux_systrace_args.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/compat/linux/arch/amd64/linux_syscall.h diff -u src/sys/compat/linux/arch/amd64/linux_syscall.h:1.77 src/sys/compat/linux/arch/amd64/linux_syscall.h:1.78 --- src/sys/compat/linux/arch/amd64/linux_syscall.h:1.77 Sun Jul 9 22:37:46 2023 +++ src/sys/compat/linux/arch/amd64/linux_syscall.h Fri Jul 28 14:20:52 2023 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.77 2023/07/10 02:37:46 christos Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.78 2023/07/28 18:20:52 christos Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.68 2023/07/10 02:31:55 christos Exp + * created from NetBSD: syscalls.master,v 1.69 2023/07/28 18:19:00 christos Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -564,6 +564,9 @@ /* syscall: "sched_getaffinity" ret: "int" args: "pid_t" "unsigned int" "unsigned long *" */ #define LINUX_SYS_sched_getaffinity 204 +/* syscall: "epoll_create" ret: "int" args: "int" */ +#define LINUX_SYS_epoll_create 213 + /* syscall: "getdents64" ret: "int" args: "int" "struct linux_dirent64 *" "unsigned int" */ #define LINUX_SYS_getdents64 217 @@ -603,6 +606,12 @@ /* syscall: "exit_group" ret: "int" args: "int" */ #define LINUX_SYS_exit_group 231 +/* syscall: "epoll_wait" ret: "int" args: "int" "struct linux_epoll_event *" "int" "int" */ +#define LINUX_SYS_epoll_wait 232 + +/* syscall: "epoll_ctl" ret: "int" args: "int" "int" "int" "struct linux_epoll_event *" */ +#define LINUX_SYS_epoll_ctl 233 + /* syscall: "tgkill" ret: "int" args: "int" "int" "int" */ #define LINUX_SYS_tgkill 234 @@ -660,6 +669,9 @@ /* syscall: "utimensat" ret: "int" args: "int" "const char *" "struct linux_timespec *" "int" */ #define LINUX_SYS_utimensat 280 +/* syscall: "epoll_pwait" ret: "int" args: "int" "struct linux_epoll_event *" "int" "int" "const linux_sigset_t *" */ +#define LINUX_SYS_epoll_pwait 281 + /* syscall: "timerfd_create" ret: "int" args: "clockid_t" "int" */ #define LINUX_SYS_timerfd_create 283 @@ -681,6 +693,9 @@ /* syscall: "eventfd2" ret: "int" args: "unsigned int" "int" */ #define LINUX_SYS_eventfd2 290 +/* syscall: "epoll_create1" ret: "int" args: "int" */ +#define LINUX_SYS_epoll_create1 291 + /* syscall: "dup3" ret: "int" args: "int" "int" "int" */ #define LINUX_SYS_dup3 292 @@ -708,6 +723,9 @@ /* syscall: "memfd_create" ret: "int" args: "const char *" "unsigned int" */ #define LINUX_SYS_memfd_create 319 +/* syscall: "epoll_pwait2" ret: "int" args: "int" "struct linux_epoll_event *" "int" "const struct linux_timespec *" "const linux_sigset_t *" */ +#define LINUX_SYS_epoll_pwait2 441 + /* syscall: "nosys" ret: "int" args: */ #define LINUX_SYS_nosys 451 Index: src/sys/compat/linux/arch/amd64/linux_syscallargs.h diff -u src/sys/compat/linux/arch/amd64/linux_syscallargs.h:1.77 src/sys/compat/linux/arch/amd64/linux_syscallargs.h:1.78 --- src/sys/compat/linux/arch/amd64/linux_syscallargs.h:1.77 Sun Jul 9 22:37:46 2023 +++ src/sys/compat/linux/arch/amd64/linux_syscallargs.h Fri Jul 28 14:20:52 2023 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.77 2023/07/10 02:37:46 christos Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.78 2023/07/28 18:20:52 christos Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.68 2023/07/10 02:31:55 christos Exp + * created from NetBSD: syscalls.master,v 1.69 2023/07/28 18:19:00 christos Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ @@ -837,6 +837,11 @@ struct linux_sys_sched_getaffinity_args }; check_syscall_args(linux_sys_sched_getaffinity) +struct linux_sys_epoll_create_args { + syscallarg(int) size; +}; +check_syscall_args(linux_sys_epoll_create) + struct linux_sys_getdents64_args { syscallarg(int) fd; syscallarg(struct linux_dirent64 *) dent; @@ -913,6 +918,22 @@ struct linux_sys_exit_group_args { }; check_syscall_args(linux_sys_exit_group) +struct linux_sys_epoll_wait_args { + syscallarg(int) epfd; + syscallarg(struct linux_epoll_event *) events; + syscallarg(int) maxevents; + syscallarg(int) timeout; +}; +check_syscall_args(linux_sys_epoll_wait) + +struct linux_sys_epoll_ctl_args { + syscallarg(int) epfd; + syscallarg(int) op; + syscallarg(int) fd; + syscallarg(struct linux_epoll_event *) event; +}; +check_syscall_args(linux_sys_epoll_ctl) + struct linux_sys_tgkill_args { syscallarg(int) tgid; syscallarg(int) tid; @@ -1023,6 +1044,15 @@ struct linux_sys_utimensat_args { }; check_syscall_args(linux_sys_utimensat) +struct linux_sys_epoll_pwait_args { + syscallarg(int) epfd; + syscallarg(struct linux_epoll_event *) events; + syscallarg(int) maxevents; + syscallarg(int) timeout; + syscallarg(const linux_sigset_t *) sigmask; +}; +check_syscall_args(linux_sys_epoll_pwait) + struct linux_sys_timerfd_create_args { syscallarg(clockid_t) clock_id; syscallarg(int) flags; @@ -1070,6 +1100,11 @@ struct linux_sys_eventfd2_args { }; check_syscall_args(linux_sys_eventfd2) +struct linux_sys_epoll_create1_args { + syscallarg(int) flags; +}; +check_syscall_args(linux_sys_epoll_create1) + struct linux_sys_dup3_args { syscallarg(int) from; syscallarg(int) to; @@ -1134,6 +1169,15 @@ struct linux_sys_memfd_create_args { }; check_syscall_args(linux_sys_memfd_create) +struct linux_sys_epoll_pwait2_args { + syscallarg(int) epfd; + syscallarg(struct linux_epoll_event *) events; + syscallarg(int) maxevents; + syscallarg(const struct linux_timespec *) timeout; + syscallarg(const linux_sigset_t *) sigmask; +}; +check_syscall_args(linux_sys_epoll_pwait2) + /* * System call prototypes. */ @@ -1511,6 +1555,8 @@ int linux_sys_sched_setaffinity(struct l int linux_sys_sched_getaffinity(struct lwp *, const struct linux_sys_sched_getaffinity_args *, register_t *); +int linux_sys_epoll_create(struct lwp *, const struct linux_sys_epoll_create_args *, register_t *); + int linux_sys_getdents64(struct lwp *, const struct linux_sys_getdents64_args *, register_t *); int linux_sys_set_tid_address(struct lwp *, const struct linux_sys_set_tid_address_args *, register_t *); @@ -1537,6 +1583,10 @@ int linux_sys_clock_nanosleep(struct lwp int linux_sys_exit_group(struct lwp *, const struct linux_sys_exit_group_args *, register_t *); +int linux_sys_epoll_wait(struct lwp *, const struct linux_sys_epoll_wait_args *, register_t *); + +int linux_sys_epoll_ctl(struct lwp *, const struct linux_sys_epoll_ctl_args *, register_t *); + int linux_sys_tgkill(struct lwp *, const struct linux_sys_tgkill_args *, register_t *); int compat_50_sys_utimes(struct lwp *, const struct compat_50_sys_utimes_args *, register_t *); @@ -1575,6 +1625,8 @@ int sys___futex_get_robust_list(struct l int linux_sys_utimensat(struct lwp *, const struct linux_sys_utimensat_args *, register_t *); +int linux_sys_epoll_pwait(struct lwp *, const struct linux_sys_epoll_pwait_args *, register_t *); + int linux_sys_timerfd_create(struct lwp *, const struct linux_sys_timerfd_create_args *, register_t *); int linux_sys_eventfd(struct lwp *, const struct linux_sys_eventfd_args *, register_t *); @@ -1589,6 +1641,8 @@ int linux_sys_accept4(struct lwp *, cons int linux_sys_eventfd2(struct lwp *, const struct linux_sys_eventfd2_args *, register_t *); +int linux_sys_epoll_create1(struct lwp *, const struct linux_sys_epoll_create1_args *, register_t *); + int linux_sys_dup3(struct lwp *, const struct linux_sys_dup3_args *, register_t *); int linux_sys_pipe2(struct lwp *, const struct linux_sys_pipe2_args *, register_t *); @@ -1607,6 +1661,8 @@ int sys_getrandom(struct lwp *, const st int linux_sys_memfd_create(struct lwp *, const struct linux_sys_memfd_create_args *, register_t *); +int linux_sys_epoll_pwait2(struct lwp *, const struct linux_sys_epoll_pwait2_args *, register_t *); + int linux_sys_nosys(struct lwp *, const void *, register_t *); #endif /* _LINUX_SYS_SYSCALLARGS_H_ */ Index: src/sys/compat/linux/arch/amd64/linux_syscalls.c diff -u src/sys/compat/linux/arch/amd64/linux_syscalls.c:1.77 src/sys/compat/linux/arch/amd64/linux_syscalls.c:1.78 --- src/sys/compat/linux/arch/amd64/linux_syscalls.c:1.77 Sun Jul 9 22:37:46 2023 +++ src/sys/compat/linux/arch/amd64/linux_syscalls.c Fri Jul 28 14:20:52 2023 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.77 2023/07/10 02:37:46 christos Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.78 2023/07/28 18:20:52 christos Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.68 2023/07/10 02:31:55 christos Exp + * created from NetBSD: syscalls.master,v 1.69 2023/07/28 18:19:00 christos Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.77 2023/07/10 02:37:46 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.78 2023/07/28 18:20:52 christos Exp $"); #if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT) @@ -25,6 +25,7 @@ __KERNEL_RCSID(0, "$NetBSD: linux_syscal #include <sys/time.h> #include <compat/sys/time.h> #include <compat/linux/common/linux_types.h> +#include <compat/linux/common/linux_misc.h> #include <compat/linux/common/linux_mmap.h> #include <compat/linux/common/linux_ipc.h> #include <compat/linux/common/linux_msg.h> @@ -279,7 +280,7 @@ const char *const linux_syscallnames[] = /* 210 */ "#210 (unimplemented io_cancel)", /* 211 */ "#211 (unimplemented get_thread_area)", /* 212 */ "#212 (unimplemented lookup_dcookie)", - /* 213 */ "#213 (unimplemented epoll_create)", + /* 213 */ "epoll_create", /* 214 */ "#214 (unimplemented epoll_ctl_old)", /* 215 */ "#215 (unimplemented epoll_wait_old)", /* 216 */ "#216 (unimplemented remap_file_pages)", @@ -298,8 +299,8 @@ const char *const linux_syscallnames[] = /* 229 */ "clock_getres", /* 230 */ "clock_nanosleep", /* 231 */ "exit_group", - /* 232 */ "#232 (unimplemented epoll_wait)", - /* 233 */ "#233 (unimplemented epoll_ctl)", + /* 232 */ "epoll_wait", + /* 233 */ "epoll_ctl", /* 234 */ "tgkill", /* 235 */ "utimes", /* 236 */ "#236 (unimplemented vserver)", @@ -347,7 +348,7 @@ const char *const linux_syscallnames[] = /* 278 */ "#278 (unimplemented vmsplice)", /* 279 */ "#279 (unimplemented move_pages)", /* 280 */ "utimensat", - /* 281 */ "#281 (unimplemented epoll_pwait)", + /* 281 */ "epoll_pwait", /* 282 */ "#282 (unimplemented signalfd)", /* 283 */ "timerfd_create", /* 284 */ "eventfd", @@ -357,7 +358,7 @@ const char *const linux_syscallnames[] = /* 288 */ "accept4", /* 289 */ "#289 (unimplemented signalfd4)", /* 290 */ "eventfd2", - /* 291 */ "#291 (unimplemented epoll_create1)", + /* 291 */ "epoll_create1", /* 292 */ "dup3", /* 293 */ "pipe2", /* 294 */ "#294 (unimplemented inotify_init1)", @@ -507,7 +508,7 @@ const char *const linux_syscallnames[] = /* 438 */ "#438 (unimplemented pidfd_getfd)", /* 439 */ "#439 (unimplemented faccessat2)", /* 440 */ "#440 (unimplemented process_madvise)", - /* 441 */ "#441 (unimplemented epoll_pwait2)", + /* 441 */ "epoll_pwait2", /* 442 */ "#442 (unimplemented mount_setattr)", /* 443 */ "#443 (unimplemented quotactl_fd)", /* 444 */ "#444 (unimplemented landlock_create_ruleset)", @@ -823,7 +824,7 @@ const char *const altlinux_syscallnames[ /* 210 */ NULL, /* unimplemented io_cancel */ /* 211 */ NULL, /* unimplemented get_thread_area */ /* 212 */ NULL, /* unimplemented lookup_dcookie */ - /* 213 */ NULL, /* unimplemented epoll_create */ + /* 213 */ NULL, /* epoll_create */ /* 214 */ NULL, /* unimplemented epoll_ctl_old */ /* 215 */ NULL, /* unimplemented epoll_wait_old */ /* 216 */ NULL, /* unimplemented remap_file_pages */ @@ -842,8 +843,8 @@ const char *const altlinux_syscallnames[ /* 229 */ NULL, /* clock_getres */ /* 230 */ NULL, /* clock_nanosleep */ /* 231 */ NULL, /* exit_group */ - /* 232 */ NULL, /* unimplemented epoll_wait */ - /* 233 */ NULL, /* unimplemented epoll_ctl */ + /* 232 */ NULL, /* epoll_wait */ + /* 233 */ NULL, /* epoll_ctl */ /* 234 */ NULL, /* tgkill */ /* 235 */ NULL, /* utimes */ /* 236 */ NULL, /* unimplemented vserver */ @@ -891,7 +892,7 @@ const char *const altlinux_syscallnames[ /* 278 */ NULL, /* unimplemented vmsplice */ /* 279 */ NULL, /* unimplemented move_pages */ /* 280 */ NULL, /* utimensat */ - /* 281 */ NULL, /* unimplemented epoll_pwait */ + /* 281 */ NULL, /* epoll_pwait */ /* 282 */ NULL, /* unimplemented signalfd */ /* 283 */ NULL, /* timerfd_create */ /* 284 */ NULL, /* eventfd */ @@ -901,7 +902,7 @@ const char *const altlinux_syscallnames[ /* 288 */ NULL, /* accept4 */ /* 289 */ NULL, /* unimplemented signalfd4 */ /* 290 */ NULL, /* eventfd2 */ - /* 291 */ NULL, /* unimplemented epoll_create1 */ + /* 291 */ NULL, /* epoll_create1 */ /* 292 */ NULL, /* dup3 */ /* 293 */ NULL, /* pipe2 */ /* 294 */ NULL, /* unimplemented inotify_init1 */ @@ -1051,7 +1052,7 @@ const char *const altlinux_syscallnames[ /* 438 */ NULL, /* unimplemented pidfd_getfd */ /* 439 */ NULL, /* unimplemented faccessat2 */ /* 440 */ NULL, /* unimplemented process_madvise */ - /* 441 */ NULL, /* unimplemented epoll_pwait2 */ + /* 441 */ NULL, /* epoll_pwait2 */ /* 442 */ NULL, /* unimplemented mount_setattr */ /* 443 */ NULL, /* unimplemented quotactl_fd */ /* 444 */ NULL, /* unimplemented landlock_create_ruleset */ Index: src/sys/compat/linux/arch/amd64/linux_sysent.c diff -u src/sys/compat/linux/arch/amd64/linux_sysent.c:1.77 src/sys/compat/linux/arch/amd64/linux_sysent.c:1.78 --- src/sys/compat/linux/arch/amd64/linux_sysent.c:1.77 Sun Jul 9 22:37:46 2023 +++ src/sys/compat/linux/arch/amd64/linux_sysent.c Fri Jul 28 14:20:52 2023 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.77 2023/07/10 02:37:46 christos Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.78 2023/07/28 18:20:52 christos Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.68 2023/07/10 02:31:55 christos Exp + * created from NetBSD: syscalls.master,v 1.69 2023/07/28 18:19:00 christos Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.77 2023/07/10 02:37:46 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.78 2023/07/28 18:20:52 christos Exp $"); #if defined(_KERNEL_OPT) #include "opt_sysv.h" @@ -24,6 +24,7 @@ __KERNEL_RCSID(0, "$NetBSD: linux_sysent #include <sys/time.h> #include <compat/sys/time.h> #include <compat/linux/common/linux_types.h> +#include <compat/linux/common/linux_misc.h> #include <compat/linux/common/linux_mmap.h> #include <compat/linux/common/linux_ipc.h> #include <compat/linux/common/linux_msg.h> @@ -1011,8 +1012,9 @@ struct sysent linux_sysent[] = { .sy_call = linux_sys_nosys, }, /* 212 = filler */ { - .sy_call = linux_sys_nosys, - }, /* 213 = filler */ + ns(struct linux_sys_epoll_create_args), + .sy_call = (sy_call_t *)linux_sys_epoll_create + }, /* 213 = epoll_create */ { .sy_call = linux_sys_nosys, }, /* 214 = filler */ @@ -1091,11 +1093,15 @@ struct sysent linux_sysent[] = { .sy_call = (sy_call_t *)linux_sys_exit_group }, /* 231 = exit_group */ { - .sy_call = linux_sys_nosys, - }, /* 232 = filler */ + ns(struct linux_sys_epoll_wait_args), + .sy_flags = SYCALL_ARG_PTR, + .sy_call = (sy_call_t *)linux_sys_epoll_wait + }, /* 232 = epoll_wait */ { - .sy_call = linux_sys_nosys, - }, /* 233 = filler */ + ns(struct linux_sys_epoll_ctl_args), + .sy_flags = SYCALL_ARG_PTR, + .sy_call = (sy_call_t *)linux_sys_epoll_ctl + }, /* 233 = epoll_ctl */ { ns(struct linux_sys_tgkill_args), .sy_call = (sy_call_t *)linux_sys_tgkill @@ -1275,8 +1281,10 @@ struct sysent linux_sysent[] = { .sy_call = (sy_call_t *)linux_sys_utimensat }, /* 280 = utimensat */ { - .sy_call = linux_sys_nosys, - }, /* 281 = filler */ + ns(struct linux_sys_epoll_pwait_args), + .sy_flags = SYCALL_ARG_PTR, + .sy_call = (sy_call_t *)linux_sys_epoll_pwait + }, /* 281 = epoll_pwait */ { .sy_call = linux_sys_nosys, }, /* 282 = filler */ @@ -1316,8 +1324,9 @@ struct sysent linux_sysent[] = { .sy_call = (sy_call_t *)linux_sys_eventfd2 }, /* 290 = eventfd2 */ { - .sy_call = linux_sys_nosys, - }, /* 291 = filler */ + ns(struct linux_sys_epoll_create1_args), + .sy_call = (sy_call_t *)linux_sys_epoll_create1 + }, /* 291 = epoll_create1 */ { ns(struct linux_sys_dup3_args), .sy_call = (sy_call_t *)linux_sys_dup3 @@ -1783,8 +1792,10 @@ struct sysent linux_sysent[] = { .sy_call = linux_sys_nosys, }, /* 440 = filler */ { - .sy_call = linux_sys_nosys, - }, /* 441 = filler */ + ns(struct linux_sys_epoll_pwait2_args), + .sy_flags = SYCALL_ARG_PTR, + .sy_call = (sy_call_t *)linux_sys_epoll_pwait2 + }, /* 441 = epoll_pwait2 */ { .sy_call = linux_sys_nosys, }, /* 442 = filler */ Index: src/sys/compat/linux/arch/amd64/linux_systrace_args.c diff -u src/sys/compat/linux/arch/amd64/linux_systrace_args.c:1.21 src/sys/compat/linux/arch/amd64/linux_systrace_args.c:1.22 --- src/sys/compat/linux/arch/amd64/linux_systrace_args.c:1.21 Sun Jul 9 22:37:46 2023 +++ src/sys/compat/linux/arch/amd64/linux_systrace_args.c Fri Jul 28 14:20:52 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_systrace_args.c,v 1.21 2023/07/10 02:37:46 christos Exp $ */ +/* $NetBSD: linux_systrace_args.c,v 1.22 2023/07/28 18:20:52 christos Exp $ */ /* * System call argument to DTrace register array conversion. @@ -1493,6 +1493,13 @@ systrace_args(register_t sysnum, const v *n_args = 3; break; } + /* linux_sys_epoll_create */ + case 213: { + const struct linux_sys_epoll_create_args *p = params; + iarg[0] = SCARG(p, size); /* int */ + *n_args = 1; + break; + } /* linux_sys_getdents64 */ case 217: { const struct linux_sys_getdents64_args *p = params; @@ -1601,6 +1608,26 @@ systrace_args(register_t sysnum, const v *n_args = 1; break; } + /* linux_sys_epoll_wait */ + case 232: { + const struct linux_sys_epoll_wait_args *p = params; + iarg[0] = SCARG(p, epfd); /* int */ + uarg[1] = (intptr_t) SCARG(p, events); /* struct linux_epoll_event * */ + iarg[2] = SCARG(p, maxevents); /* int */ + iarg[3] = SCARG(p, timeout); /* int */ + *n_args = 4; + break; + } + /* linux_sys_epoll_ctl */ + case 233: { + const struct linux_sys_epoll_ctl_args *p = params; + iarg[0] = SCARG(p, epfd); /* int */ + iarg[1] = SCARG(p, op); /* int */ + iarg[2] = SCARG(p, fd); /* int */ + uarg[3] = (intptr_t) SCARG(p, event); /* struct linux_epoll_event * */ + *n_args = 4; + break; + } /* linux_sys_tgkill */ case 234: { const struct linux_sys_tgkill_args *p = params; @@ -1784,6 +1811,17 @@ systrace_args(register_t sysnum, const v *n_args = 4; break; } + /* linux_sys_epoll_pwait */ + case 281: { + const struct linux_sys_epoll_pwait_args *p = params; + iarg[0] = SCARG(p, epfd); /* int */ + uarg[1] = (intptr_t) SCARG(p, events); /* struct linux_epoll_event * */ + iarg[2] = SCARG(p, maxevents); /* int */ + iarg[3] = SCARG(p, timeout); /* int */ + uarg[4] = (intptr_t) SCARG(p, sigmask); /* const linux_sigset_t * */ + *n_args = 5; + break; + } /* linux_sys_timerfd_create */ case 283: { const struct linux_sys_timerfd_create_args *p = params; @@ -1845,6 +1883,13 @@ systrace_args(register_t sysnum, const v *n_args = 2; break; } + /* linux_sys_epoll_create1 */ + case 291: { + const struct linux_sys_epoll_create1_args *p = params; + iarg[0] = SCARG(p, flags); /* int */ + *n_args = 1; + break; + } /* linux_sys_dup3 */ case 292: { const struct linux_sys_dup3_args *p = params; @@ -1932,6 +1977,17 @@ systrace_args(register_t sysnum, const v *n_args = 2; break; } + /* linux_sys_epoll_pwait2 */ + case 441: { + const struct linux_sys_epoll_pwait2_args *p = params; + iarg[0] = SCARG(p, epfd); /* int */ + uarg[1] = (intptr_t) SCARG(p, events); /* struct linux_epoll_event * */ + iarg[2] = SCARG(p, maxevents); /* int */ + uarg[3] = (intptr_t) SCARG(p, timeout); /* const struct linux_timespec * */ + uarg[4] = (intptr_t) SCARG(p, sigmask); /* const linux_sigset_t * */ + *n_args = 5; + break; + } /* linux_sys_nosys */ case 451: { *n_args = 0; @@ -4375,6 +4431,16 @@ systrace_entry_setargdesc(int sysnum, in break; }; break; + /* linux_sys_epoll_create */ + case 213: + switch(ndx) { + case 0: + p = "int"; + break; + default: + break; + }; + break; /* linux_sys_getdents64 */ case 217: switch(ndx) { @@ -4556,6 +4622,44 @@ systrace_entry_setargdesc(int sysnum, in break; }; break; + /* linux_sys_epoll_wait */ + case 232: + switch(ndx) { + case 0: + p = "int"; + break; + case 1: + p = "struct linux_epoll_event *"; + break; + case 2: + p = "int"; + break; + case 3: + p = "int"; + break; + default: + break; + }; + break; + /* linux_sys_epoll_ctl */ + case 233: + switch(ndx) { + case 0: + p = "int"; + break; + case 1: + p = "int"; + break; + case 2: + p = "int"; + break; + case 3: + p = "struct linux_epoll_event *"; + break; + default: + break; + }; + break; /* linux_sys_tgkill */ case 234: switch(ndx) { @@ -4896,6 +5000,28 @@ systrace_entry_setargdesc(int sysnum, in break; }; break; + /* linux_sys_epoll_pwait */ + case 281: + switch(ndx) { + case 0: + p = "int"; + break; + case 1: + p = "struct linux_epoll_event *"; + break; + case 2: + p = "int"; + break; + case 3: + p = "int"; + break; + case 4: + p = "const linux_sigset_t *"; + break; + default: + break; + }; + break; /* linux_sys_timerfd_create */ case 283: switch(ndx) { @@ -5002,6 +5128,16 @@ systrace_entry_setargdesc(int sysnum, in break; }; break; + /* linux_sys_epoll_create1 */ + case 291: + switch(ndx) { + case 0: + p = "int"; + break; + default: + break; + }; + break; /* linux_sys_dup3 */ case 292: switch(ndx) { @@ -5164,6 +5300,28 @@ systrace_entry_setargdesc(int sysnum, in break; }; break; + /* linux_sys_epoll_pwait2 */ + case 441: + switch(ndx) { + case 0: + p = "int"; + break; + case 1: + p = "struct linux_epoll_event *"; + break; + case 2: + p = "int"; + break; + case 3: + p = "const struct linux_timespec *"; + break; + case 4: + p = "const linux_sigset_t *"; + break; + default: + break; + }; + break; /* linux_sys_nosys */ case 451: break; @@ -6040,6 +6198,11 @@ systrace_return_setargdesc(int sysnum, i if (ndx == 0 || ndx == 1) p = "int"; break; + /* linux_sys_epoll_create */ + case 213: + if (ndx == 0 || ndx == 1) + p = "int"; + break; /* linux_sys_getdents64 */ case 217: if (ndx == 0 || ndx == 1) @@ -6105,6 +6268,16 @@ systrace_return_setargdesc(int sysnum, i if (ndx == 0 || ndx == 1) p = "int"; break; + /* linux_sys_epoll_wait */ + case 232: + if (ndx == 0 || ndx == 1) + p = "int"; + break; + /* linux_sys_epoll_ctl */ + case 233: + if (ndx == 0 || ndx == 1) + p = "int"; + break; /* linux_sys_tgkill */ case 234: if (ndx == 0 || ndx == 1) @@ -6200,6 +6373,11 @@ systrace_return_setargdesc(int sysnum, i if (ndx == 0 || ndx == 1) p = "int"; break; + /* linux_sys_epoll_pwait */ + case 281: + if (ndx == 0 || ndx == 1) + p = "int"; + break; /* linux_sys_timerfd_create */ case 283: if (ndx == 0 || ndx == 1) @@ -6235,6 +6413,11 @@ systrace_return_setargdesc(int sysnum, i if (ndx == 0 || ndx == 1) p = "int"; break; + /* linux_sys_epoll_create1 */ + case 291: + if (ndx == 0 || ndx == 1) + p = "int"; + break; /* linux_sys_dup3 */ case 292: if (ndx == 0 || ndx == 1) @@ -6280,6 +6463,11 @@ systrace_return_setargdesc(int sysnum, i if (ndx == 0 || ndx == 1) p = "int"; break; + /* linux_sys_epoll_pwait2 */ + case 441: + if (ndx == 0 || ndx == 1) + p = "int"; + break; /* linux_sys_nosys */ case 451: default: