All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/5] bsd-user: Generate system call numbers
@ 2026-04-29 14:38 Warner Losh
  2026-04-29 14:38 ` [PATCH v2 1/5] bsd-user: Add syscall header generator for FreeBSD Warner Losh
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: Warner Losh @ 2026-04-29 14:38 UTC (permalink / raw)
  To: qemu-devel
  Cc: Kyle Evans, Paolo Bonzini, Marc-André Lureau,
	Daniel P. Berrangé, Philippe Mathieu-Daudé,
	Pierrick Bouvier, Warner Losh

FreeBSD has a system call number header, sys/syscall.h, that's installed
on every system that can compile qemu. Generate the system call numbers
from that table rather than re-regenerating it yet again.

To do this, I have to clean up a few stragglers for system calls we've
removed. But these returned not supported anyway, so there's no net
change.

I also tried to do this in a way that the other bsds can coexist with
should they show up again in the future. To that end, I moved the
definition of time_t into os-syscall.h, where I noticed it was wrong for
amd64 targets (which is little used and missing features, so it went
unnoticed for a long time).

More will be generated in the future, but this is the first steps.

Finally, while this does add files, no adjustment to MAINTAINERS is
needed.

Signed-off-by: Warner Losh <imp@bsdimp.com>
---
Changes in v2:
- Rebase to tip of master after 11.0 release
- Regenerate strace.list, can't do this at runtime just yet so include script
- Simplified syscall generator meson integration.
- Link to v1: https://lore.kernel.org/qemu-devel/20260413-syscall-nr-v1-0-f70408d042ea@bsdimp.com

---
Warner Losh (5):
      bsd-user: Add syscall header generator for FreeBSD
      bsd-user: Delete sbrk and sstk system calls.
      bsd-user: Create os-syscall.h
      bsd-user: Switch to generated syscall_nr.h
      bsd-user: Regnerate strace.list

 bsd-user/bsd-mem.h                     |   2 +
 bsd-user/freebsd/meson.build           |  11 +-
 bsd-user/freebsd/os-syscall.c          |   8 -
 bsd-user/freebsd/os-syscall.h          |  21 +
 bsd-user/freebsd/scripts/strace.lua    | 117 ++++++
 bsd-user/freebsd/scripts/syscallhdr.sh |   9 +
 bsd-user/freebsd/strace.list           | 704 ++++++++++++++++++++-------------
 bsd-user/freebsd/syscall_nr.h          | 515 ------------------------
 bsd-user/syscall_defs.h                |  18 +-
 9 files changed, 599 insertions(+), 806 deletions(-)
---
base-commit: 759c456b1d22fe4083c8b384da27d3f56fd53f82
change-id: 20260412-syscall-nr-a0a831fce9a0

Best regards,
-- 
Warner Losh <imp@bsdimp.com>



^ permalink raw reply	[flat|nested] 15+ messages in thread

* [PATCH v2 1/5] bsd-user: Add syscall header generator for FreeBSD
  2026-04-29 14:38 [PATCH v2 0/5] bsd-user: Generate system call numbers Warner Losh
@ 2026-04-29 14:38 ` Warner Losh
  2026-04-29 22:30   ` Pierrick Bouvier
  2026-04-29 14:38 ` [PATCH v2 2/5] bsd-user: Delete sbrk and sstk system calls Warner Losh
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 15+ messages in thread
From: Warner Losh @ 2026-04-29 14:38 UTC (permalink / raw)
  To: qemu-devel
  Cc: Kyle Evans, Paolo Bonzini, Marc-André Lureau,
	Daniel P. Berrangé, Philippe Mathieu-Daudé,
	Pierrick Bouvier, Warner Losh

Generate the syscall numbers from the installed header that has them.
Ideally, we'd use FreeBSD's lua infra for this, but that requires that
we have those files installed, and they aren't quite the same across
supported versions yet, so use this simple, but effective hack. Add to
meson build, but unused.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
---
 bsd-user/freebsd/meson.build           | 11 ++++++++++-
 bsd-user/freebsd/scripts/syscallhdr.sh |  9 +++++++++
 2 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/bsd-user/freebsd/meson.build b/bsd-user/freebsd/meson.build
index 8fd6c7cfb8..fd55d84d3b 100644
--- a/bsd-user/freebsd/meson.build
+++ b/bsd-user/freebsd/meson.build
@@ -1,6 +1,15 @@
+bsd_syscall_nr = custom_target('bsd-syscall-h',
+    output: '@BASENAME@_nr.h',
+    input: ['/usr/include/sys/syscall.h'],
+    command: [sh, meson.current_source_dir() / 'scripts/syscallhdr.sh', '@INPUT@', '@OUTPUT@', 'FREEBSD'])
+
 bsd_user_ss.add(files(
   'os-stat.c',
   'os-proc.c',
   'os-sys.c',
   'os-syscall.c',
-))
+  'os-thread.c',
+  'os-time.c',
+  'trace.c'),
+  bsd_syscall_nr
+)
diff --git a/bsd-user/freebsd/scripts/syscallhdr.sh b/bsd-user/freebsd/scripts/syscallhdr.sh
new file mode 100644
index 0000000000..fa38500775
--- /dev/null
+++ b/bsd-user/freebsd/scripts/syscallhdr.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+# Copyright (c) 2026 Warner Losh <imp@bsdimp.com>
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+in="$1"
+out="$2"
+bsd="$3"
+
+awk -v bsd="$3" '{sub("SYS_", "TARGET_" bsd "_NR_", $0); print;}' < $in > $out

-- 
2.52.0



^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH v2 2/5] bsd-user: Delete sbrk and sstk system calls.
  2026-04-29 14:38 [PATCH v2 0/5] bsd-user: Generate system call numbers Warner Losh
  2026-04-29 14:38 ` [PATCH v2 1/5] bsd-user: Add syscall header generator for FreeBSD Warner Losh
@ 2026-04-29 14:38 ` Warner Losh
  2026-04-29 22:31   ` Pierrick Bouvier
  2026-04-29 14:38 ` [PATCH v2 3/5] bsd-user: Create os-syscall.h Warner Losh
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 15+ messages in thread
From: Warner Losh @ 2026-04-29 14:38 UTC (permalink / raw)
  To: qemu-devel
  Cc: Kyle Evans, Paolo Bonzini, Marc-André Lureau,
	Daniel P. Berrangé, Philippe Mathieu-Daudé,
	Pierrick Bouvier, Warner Losh

sbrk and sstk were an experimental system call introduced in 4.2BSD, but
with an blank implementation. They remained in subsequent 4BSD releases
doing nothing (with 4.3-Reno and later returning not supported). FreeBSD
1.x imported this. They were removed in 2023. Remove them from here
because no real, non-contrived program on FreeBSD ever had them.

Signed-off-by: Warner Losh <imp@bsdimp.com>
---
 bsd-user/bsd-mem.h            | 2 ++
 bsd-user/freebsd/os-syscall.c | 8 --------
 bsd-user/freebsd/strace.list  | 4 ++++
 3 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/bsd-user/bsd-mem.h b/bsd-user/bsd-mem.h
index a118e57260..a20b703053 100644
--- a/bsd-user/bsd-mem.h
+++ b/bsd-user/bsd-mem.h
@@ -440,6 +440,7 @@ static inline abi_long do_bsd_vadvise(void)
     return -TARGET_EINVAL;
 }
 
+#ifdef TARGET_FREEBSD_NR_sbrk
 static inline abi_long do_bsd_sbrk(void)
 {
     /* see sys_sbrk() in vm_mmap.c */
@@ -451,5 +452,6 @@ static inline abi_long do_bsd_sstk(void)
     /* see sys_sstk() in vm_mmap.c */
     return -TARGET_EOPNOTSUPP;
 }
+#endif
 
 #endif /* BSD_USER_BSD_MEM_H */
diff --git a/bsd-user/freebsd/os-syscall.c b/bsd-user/freebsd/os-syscall.c
index 85e5db19a3..ca819fc530 100644
--- a/bsd-user/freebsd/os-syscall.c
+++ b/bsd-user/freebsd/os-syscall.c
@@ -918,14 +918,6 @@ static abi_long freebsd_syscall(void *cpu_env, int num, abi_long arg1,
         ret = do_bsd_vadvise();
         break;
 
-    case TARGET_FREEBSD_NR_sbrk:
-        ret = do_bsd_sbrk();
-        break;
-
-    case TARGET_FREEBSD_NR_sstk:
-        ret = do_bsd_sstk();
-        break;
-
         /*
          * Misc
          */
diff --git a/bsd-user/freebsd/strace.list b/bsd-user/freebsd/strace.list
index 275d2dbe27..d7f61f480e 100644
--- a/bsd-user/freebsd/strace.list
+++ b/bsd-user/freebsd/strace.list
@@ -194,7 +194,9 @@
 { TARGET_FREEBSD_NR_rfork, "rfork", NULL, NULL, NULL },
 { TARGET_FREEBSD_NR_rmdir, "rmdir", NULL, NULL, NULL },
 { TARGET_FREEBSD_NR_rtprio_thread, "rtprio_thread", "%s(%d, %d, %p)", NULL, NULL },
+#ifdef TARGET_FREEBSD_NR_sbrk
 { TARGET_FREEBSD_NR_sbrk, "sbrk", NULL, NULL, NULL },
+#endif
 { TARGET_FREEBSD_NR_sched_get_priority_max, "sched_get_priority_max", NULL, NULL, NULL },
 { TARGET_FREEBSD_NR_sched_get_priority_min, "sched_get_priority_min", NULL, NULL, NULL },
 { TARGET_FREEBSD_NR_sched_yield, "sched_yield", NULL, NULL, NULL },
@@ -234,7 +236,9 @@
 { TARGET_FREEBSD_NR_sigsuspend, "sigsuspend", NULL, NULL, NULL },
 { TARGET_FREEBSD_NR_socket, "socket", "%s(%d,%d,%d)", NULL, NULL },
 { TARGET_FREEBSD_NR_socketpair, "socketpair", NULL, NULL, NULL },
+#ifdef TARGET_FREEBSD_NR_sstk
 { TARGET_FREEBSD_NR_sstk, "sstk", NULL, NULL, NULL },
+#endif
 { TARGET_FREEBSD_NR_freebsd11_stat, "freebsd11_stat", "%s(\"%s\",%p)", NULL, NULL },
 { TARGET_FREEBSD_NR_freebsd11_statfs, "freebsd11_statfs", "%s(\"%s\",%p)", NULL, NULL },
 { TARGET_FREEBSD_NR_symlink, "symlink", "%s(\"%s\",\"%s\")", NULL, NULL },

-- 
2.52.0



^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH v2 3/5] bsd-user: Create os-syscall.h
  2026-04-29 14:38 [PATCH v2 0/5] bsd-user: Generate system call numbers Warner Losh
  2026-04-29 14:38 ` [PATCH v2 1/5] bsd-user: Add syscall header generator for FreeBSD Warner Losh
  2026-04-29 14:38 ` [PATCH v2 2/5] bsd-user: Delete sbrk and sstk system calls Warner Losh
@ 2026-04-29 14:38 ` Warner Losh
  2026-04-29 22:33   ` Pierrick Bouvier
  2026-04-29 14:38 ` [PATCH v2 4/5] bsd-user: Switch to generated syscall_nr.h Warner Losh
  2026-04-29 14:38 ` [PATCH v2 5/5] bsd-user: Regnerate strace.list Warner Losh
  4 siblings, 1 reply; 15+ messages in thread
From: Warner Losh @ 2026-04-29 14:38 UTC (permalink / raw)
  To: qemu-devel
  Cc: Kyle Evans, Paolo Bonzini, Marc-André Lureau,
	Daniel P. Berrangé, Philippe Mathieu-Daudé,
	Pierrick Bouvier, Warner Losh

Create os-syscall.h. The purpose of this file is to define anything
that's different among the BSDs, like system call numbers and
time_t. While there's a lot more different between the BSDs, this is at
least a start at capturing it.

Signed-off-by: Warner Losh <imp@bsdimp.com>
---
 bsd-user/freebsd/os-syscall.h | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/bsd-user/freebsd/os-syscall.h b/bsd-user/freebsd/os-syscall.h
new file mode 100644
index 0000000000..962adfa91a
--- /dev/null
+++ b/bsd-user/freebsd/os-syscall.h
@@ -0,0 +1,21 @@
+/*
+ * Copyright (c) 2023 Warner Losh <imp@bsdimp.com>
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ *
+ * OS-Specific portion of syscall_defs.h
+ */
+
+#include "syscall_nr.h"
+
+/*
+ * FreeBSD uses a 64bits time_t except on i386 so we have to add a special case
+ * here.
+ */
+#if defined(TARGET_I386) && !defined(TARGET_X86_64)
+typedef int32_t target_time_t;
+#else
+typedef int64_t target_time_t;
+#endif
+
+typedef abi_long target_suseconds_t;

-- 
2.52.0



^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH v2 4/5] bsd-user: Switch to generated syscall_nr.h
  2026-04-29 14:38 [PATCH v2 0/5] bsd-user: Generate system call numbers Warner Losh
                   ` (2 preceding siblings ...)
  2026-04-29 14:38 ` [PATCH v2 3/5] bsd-user: Create os-syscall.h Warner Losh
@ 2026-04-29 14:38 ` Warner Losh
  2026-04-29 22:33   ` Pierrick Bouvier
  2026-04-29 14:38 ` [PATCH v2 5/5] bsd-user: Regnerate strace.list Warner Losh
  4 siblings, 1 reply; 15+ messages in thread
From: Warner Losh @ 2026-04-29 14:38 UTC (permalink / raw)
  To: qemu-devel
  Cc: Kyle Evans, Paolo Bonzini, Marc-André Lureau,
	Daniel P. Berrangé, Philippe Mathieu-Daudé,
	Pierrick Bouvier, Warner Losh

Now that this will build and work, remove the old syscall_nr.h and
switch the include over to the generated file in syscall_defs.h.

To do this, I had to delete the old, wrong definition of time_t for
FreeBSD on amd64 since it stumbled over the fact that TARGET_i386 is
defined for both 32-bit and 64-bit builds (the new os-syscall.h had the
rigth definition). Rather than modify this file twice to fix it, rolled
the fix into using os-syscall.h since it's still easy enough to review.

Signed-off-by: Warner Losh <imp@bsdimp.com>
---
 bsd-user/freebsd/syscall_nr.h | 515 ------------------------------------------
 bsd-user/syscall_defs.h       |  18 +-
 2 files changed, 1 insertion(+), 532 deletions(-)

diff --git a/bsd-user/freebsd/syscall_nr.h b/bsd-user/freebsd/syscall_nr.h
deleted file mode 100644
index 7f73a6d0f1..0000000000
--- a/bsd-user/freebsd/syscall_nr.h
+++ /dev/null
@@ -1,515 +0,0 @@
-/*
- * System call numbers.
- *
- * DO NOT EDIT-- this file is automatically @generated.
- * $FreeBSD$
- */
-
-#define TARGET_FREEBSD_NR_syscall       0
-#define TARGET_FREEBSD_NR_exit  1
-#define TARGET_FREEBSD_NR_fork  2
-#define TARGET_FREEBSD_NR_read  3
-#define TARGET_FREEBSD_NR_write 4
-#define TARGET_FREEBSD_NR_open  5
-#define TARGET_FREEBSD_NR_close 6
-#define TARGET_FREEBSD_NR_wait4 7
-                                /* 8 is old creat */
-#define TARGET_FREEBSD_NR_link  9
-#define TARGET_FREEBSD_NR_unlink        10
-                                /* 11 is obsolete execv */
-#define TARGET_FREEBSD_NR_chdir 12
-#define TARGET_FREEBSD_NR_fchdir        13
-#define TARGET_FREEBSD_NR_freebsd11_mknod       14
-#define TARGET_FREEBSD_NR_chmod 15
-#define TARGET_FREEBSD_NR_chown 16
-#define TARGET_FREEBSD_NR_break 17
-                                /* 18 is freebsd4 getfsstat */
-                                /* 19 is old lseek */
-#define TARGET_FREEBSD_NR_getpid        20
-#define TARGET_FREEBSD_NR_mount 21
-#define TARGET_FREEBSD_NR_unmount       22
-#define TARGET_FREEBSD_NR_setuid        23
-#define TARGET_FREEBSD_NR_getuid        24
-#define TARGET_FREEBSD_NR_geteuid       25
-#define TARGET_FREEBSD_NR_ptrace        26
-#define TARGET_FREEBSD_NR_recvmsg       27
-#define TARGET_FREEBSD_NR_sendmsg       28
-#define TARGET_FREEBSD_NR_recvfrom      29
-#define TARGET_FREEBSD_NR_accept        30
-#define TARGET_FREEBSD_NR_getpeername   31
-#define TARGET_FREEBSD_NR_getsockname   32
-#define TARGET_FREEBSD_NR_access        33
-#define TARGET_FREEBSD_NR_chflags       34
-#define TARGET_FREEBSD_NR_fchflags      35
-#define TARGET_FREEBSD_NR_sync  36
-#define TARGET_FREEBSD_NR_kill  37
-                                /* 38 is old stat */
-#define TARGET_FREEBSD_NR_getppid       39
-                                /* 40 is old lstat */
-#define TARGET_FREEBSD_NR_dup   41
-#define TARGET_FREEBSD_NR_freebsd10_pipe        42
-#define TARGET_FREEBSD_NR_getegid       43
-#define TARGET_FREEBSD_NR_profil        44
-#define TARGET_FREEBSD_NR_ktrace        45
-                                /* 46 is old sigaction */
-#define TARGET_FREEBSD_NR_getgid        47
-                                /* 48 is old sigprocmask */
-#define TARGET_FREEBSD_NR_getlogin      49
-#define TARGET_FREEBSD_NR_setlogin      50
-#define TARGET_FREEBSD_NR_acct  51
-                                /* 52 is old sigpending */
-#define TARGET_FREEBSD_NR_sigaltstack   53
-#define TARGET_FREEBSD_NR_ioctl 54
-#define TARGET_FREEBSD_NR_reboot        55
-#define TARGET_FREEBSD_NR_revoke        56
-#define TARGET_FREEBSD_NR_symlink       57
-#define TARGET_FREEBSD_NR_readlink      58
-#define TARGET_FREEBSD_NR_execve        59
-#define TARGET_FREEBSD_NR_umask 60
-#define TARGET_FREEBSD_NR_chroot        61
-                                /* 62 is old fstat */
-                                /* 63 is old getkerninfo */
-                                /* 64 is old getpagesize */
-#define TARGET_FREEBSD_NR_msync 65
-#define TARGET_FREEBSD_NR_vfork 66
-                                /* 67 is obsolete vread */
-                                /* 68 is obsolete vwrite */
-#define TARGET_FREEBSD_NR_sbrk  69
-#define TARGET_FREEBSD_NR_sstk  70
-                                /* 71 is old mmap */
-#define TARGET_FREEBSD_NR_freebsd11_vadvise     72
-#define TARGET_FREEBSD_NR_munmap        73
-#define TARGET_FREEBSD_NR_mprotect      74
-#define TARGET_FREEBSD_NR_madvise       75
-                                /* 76 is obsolete vhangup */
-                                /* 77 is obsolete vlimit */
-#define TARGET_FREEBSD_NR_mincore       78
-#define TARGET_FREEBSD_NR_getgroups     79
-#define TARGET_FREEBSD_NR_setgroups     80
-#define TARGET_FREEBSD_NR_getpgrp       81
-#define TARGET_FREEBSD_NR_setpgid       82
-#define TARGET_FREEBSD_NR_setitimer     83
-                                /* 84 is old wait */
-#define TARGET_FREEBSD_NR_swapon        85
-#define TARGET_FREEBSD_NR_getitimer     86
-                                /* 87 is old gethostname */
-                                /* 88 is old sethostname */
-#define TARGET_FREEBSD_NR_getdtablesize 89
-#define TARGET_FREEBSD_NR_dup2  90
-#define TARGET_FREEBSD_NR_fcntl 92
-#define TARGET_FREEBSD_NR_select        93
-#define TARGET_FREEBSD_NR_fsync 95
-#define TARGET_FREEBSD_NR_setpriority   96
-#define TARGET_FREEBSD_NR_socket        97
-#define TARGET_FREEBSD_NR_connect       98
-                                /* 99 is old accept */
-#define TARGET_FREEBSD_NR_getpriority   100
-                                /* 101 is old send */
-                                /* 102 is old recv */
-                                /* 103 is old sigreturn */
-#define TARGET_FREEBSD_NR_bind  104
-#define TARGET_FREEBSD_NR_setsockopt    105
-#define TARGET_FREEBSD_NR_listen        106
-                                /* 107 is obsolete vtimes */
-                                /* 108 is old sigvec */
-                                /* 109 is old sigblock */
-                                /* 110 is old sigsetmask */
-                                /* 111 is old sigsuspend */
-                                /* 112 is old sigstack */
-                                /* 113 is old recvmsg */
-                                /* 114 is old sendmsg */
-                                /* 115 is obsolete vtrace */
-#define TARGET_FREEBSD_NR_gettimeofday  116
-#define TARGET_FREEBSD_NR_getrusage     117
-#define TARGET_FREEBSD_NR_getsockopt    118
-#define TARGET_FREEBSD_NR_readv 120
-#define TARGET_FREEBSD_NR_writev        121
-#define TARGET_FREEBSD_NR_settimeofday  122
-#define TARGET_FREEBSD_NR_fchown        123
-#define TARGET_FREEBSD_NR_fchmod        124
-                                /* 125 is old recvfrom */
-#define TARGET_FREEBSD_NR_setreuid      126
-#define TARGET_FREEBSD_NR_setregid      127
-#define TARGET_FREEBSD_NR_rename        128
-                                /* 129 is old truncate */
-                                /* 130 is old ftruncate */
-#define TARGET_FREEBSD_NR_flock 131
-#define TARGET_FREEBSD_NR_mkfifo        132
-#define TARGET_FREEBSD_NR_sendto        133
-#define TARGET_FREEBSD_NR_shutdown      134
-#define TARGET_FREEBSD_NR_socketpair    135
-#define TARGET_FREEBSD_NR_mkdir 136
-#define TARGET_FREEBSD_NR_rmdir 137
-#define TARGET_FREEBSD_NR_utimes        138
-                                /* 139 is obsolete 4.2 sigreturn */
-#define TARGET_FREEBSD_NR_adjtime       140
-                                /* 141 is old getpeername */
-                                /* 142 is old gethostid */
-                                /* 143 is old sethostid */
-                                /* 144 is old getrlimit */
-                                /* 145 is old setrlimit */
-                                /* 146 is old killpg */
-#define TARGET_FREEBSD_NR_setsid        147
-#define TARGET_FREEBSD_NR_quotactl      148
-                                /* 149 is old quota */
-                                /* 150 is old getsockname */
-#define TARGET_FREEBSD_NR_nlm_syscall   154
-#define TARGET_FREEBSD_NR_nfssvc        155
-                                /* 156 is old getdirentries */
-                                /* 157 is freebsd4 statfs */
-                                /* 158 is freebsd4 fstatfs */
-#define TARGET_FREEBSD_NR_lgetfh        160
-#define TARGET_FREEBSD_NR_getfh 161
-                                /* 162 is freebsd4 getdomainname */
-                                /* 163 is freebsd4 setdomainname */
-                                /* 164 is freebsd4 uname */
-#define TARGET_FREEBSD_NR_sysarch       165
-#define TARGET_FREEBSD_NR_rtprio        166
-#define TARGET_FREEBSD_NR_semsys        169
-#define TARGET_FREEBSD_NR_msgsys        170
-#define TARGET_FREEBSD_NR_shmsys        171
-                                /* 173 is freebsd6 pread */
-                                /* 174 is freebsd6 pwrite */
-#define TARGET_FREEBSD_NR_setfib        175
-#define TARGET_FREEBSD_NR_ntp_adjtime   176
-#define TARGET_FREEBSD_NR_setgid        181
-#define TARGET_FREEBSD_NR_setegid       182
-#define TARGET_FREEBSD_NR_seteuid       183
-                                /* 184 is obsolete lfs_bmapv */
-                                /* 185 is obsolete lfs_markv */
-                                /* 186 is obsolete lfs_segclean */
-                                /* 187 is obsolete lfs_segwait */
-#define TARGET_FREEBSD_NR_freebsd11_stat        188
-#define TARGET_FREEBSD_NR_freebsd11_fstat       189
-#define TARGET_FREEBSD_NR_freebsd11_lstat       190
-#define TARGET_FREEBSD_NR_pathconf      191
-#define TARGET_FREEBSD_NR_fpathconf     192
-#define TARGET_FREEBSD_NR_getrlimit     194
-#define TARGET_FREEBSD_NR_setrlimit     195
-#define TARGET_FREEBSD_NR_freebsd11_getdirentries       196
-                                /* 197 is freebsd6 mmap */
-#define TARGET_FREEBSD_NR___syscall     198
-                                /* 199 is freebsd6 lseek */
-                                /* 200 is freebsd6 truncate */
-                                /* 201 is freebsd6 ftruncate */
-#define TARGET_FREEBSD_NR___sysctl      202
-#define TARGET_FREEBSD_NR_mlock 203
-#define TARGET_FREEBSD_NR_munlock       204
-#define TARGET_FREEBSD_NR_undelete      205
-#define TARGET_FREEBSD_NR_futimes       206
-#define TARGET_FREEBSD_NR_getpgid       207
-#define TARGET_FREEBSD_NR_poll  209
-#define TARGET_FREEBSD_NR_freebsd7___semctl     220
-#define TARGET_FREEBSD_NR_semget        221
-#define TARGET_FREEBSD_NR_semop 222
-                                /* 223 is obsolete semconfig */
-#define TARGET_FREEBSD_NR_freebsd7_msgctl       224
-#define TARGET_FREEBSD_NR_msgget        225
-#define TARGET_FREEBSD_NR_msgsnd        226
-#define TARGET_FREEBSD_NR_msgrcv        227
-#define TARGET_FREEBSD_NR_shmat 228
-#define TARGET_FREEBSD_NR_freebsd7_shmctl       229
-#define TARGET_FREEBSD_NR_shmdt 230
-#define TARGET_FREEBSD_NR_shmget        231
-#define TARGET_FREEBSD_NR_clock_gettime 232
-#define TARGET_FREEBSD_NR_clock_settime 233
-#define TARGET_FREEBSD_NR_clock_getres  234
-#define TARGET_FREEBSD_NR_ktimer_create 235
-#define TARGET_FREEBSD_NR_ktimer_delete 236
-#define TARGET_FREEBSD_NR_ktimer_settime        237
-#define TARGET_FREEBSD_NR_ktimer_gettime        238
-#define TARGET_FREEBSD_NR_ktimer_getoverrun     239
-#define TARGET_FREEBSD_NR_nanosleep     240
-#define TARGET_FREEBSD_NR_ffclock_getcounter    241
-#define TARGET_FREEBSD_NR_ffclock_setestimate   242
-#define TARGET_FREEBSD_NR_ffclock_getestimate   243
-#define TARGET_FREEBSD_NR_clock_nanosleep       244
-#define TARGET_FREEBSD_NR_clock_getcpuclockid2  247
-#define TARGET_FREEBSD_NR_ntp_gettime   248
-#define TARGET_FREEBSD_NR_minherit      250
-#define TARGET_FREEBSD_NR_rfork 251
-                                /* 252 is obsolete openbsd_poll */
-#define TARGET_FREEBSD_NR_issetugid     253
-#define TARGET_FREEBSD_NR_lchown        254
-#define TARGET_FREEBSD_NR_aio_read      255
-#define TARGET_FREEBSD_NR_aio_write     256
-#define TARGET_FREEBSD_NR_lio_listio    257
-#define TARGET_FREEBSD_NR_freebsd11_getdents    272
-#define TARGET_FREEBSD_NR_lchmod        274
-                                /* 275 is obsolete netbsd_lchown */
-#define TARGET_FREEBSD_NR_lutimes       276
-                                /* 277 is obsolete netbsd_msync */
-#define TARGET_FREEBSD_NR_freebsd11_nstat       278
-#define TARGET_FREEBSD_NR_freebsd11_nfstat      279
-#define TARGET_FREEBSD_NR_freebsd11_nlstat      280
-#define TARGET_FREEBSD_NR_preadv        289
-#define TARGET_FREEBSD_NR_pwritev       290
-                                /* 297 is freebsd4 fhstatfs */
-#define TARGET_FREEBSD_NR_fhopen        298
-#define TARGET_FREEBSD_NR_freebsd11_fhstat      299
-#define TARGET_FREEBSD_NR_modnext       300
-#define TARGET_FREEBSD_NR_modstat       301
-#define TARGET_FREEBSD_NR_modfnext      302
-#define TARGET_FREEBSD_NR_modfind       303
-#define TARGET_FREEBSD_NR_kldload       304
-#define TARGET_FREEBSD_NR_kldunload     305
-#define TARGET_FREEBSD_NR_kldfind       306
-#define TARGET_FREEBSD_NR_kldnext       307
-#define TARGET_FREEBSD_NR_kldstat       308
-#define TARGET_FREEBSD_NR_kldfirstmod   309
-#define TARGET_FREEBSD_NR_getsid        310
-#define TARGET_FREEBSD_NR_setresuid     311
-#define TARGET_FREEBSD_NR_setresgid     312
-                                /* 313 is obsolete signanosleep */
-#define TARGET_FREEBSD_NR_aio_return    314
-#define TARGET_FREEBSD_NR_aio_suspend   315
-#define TARGET_FREEBSD_NR_aio_cancel    316
-#define TARGET_FREEBSD_NR_aio_error     317
-                                /* 318 is freebsd6 aio_read */
-                                /* 319 is freebsd6 aio_write */
-                                /* 320 is freebsd6 lio_listio */
-#define TARGET_FREEBSD_NR_yield 321
-                                /* 322 is obsolete thr_sleep */
-                                /* 323 is obsolete thr_wakeup */
-#define TARGET_FREEBSD_NR_mlockall      324
-#define TARGET_FREEBSD_NR_munlockall    325
-#define TARGET_FREEBSD_NR___getcwd      326
-#define TARGET_FREEBSD_NR_sched_setparam        327
-#define TARGET_FREEBSD_NR_sched_getparam        328
-#define TARGET_FREEBSD_NR_sched_setscheduler    329
-#define TARGET_FREEBSD_NR_sched_getscheduler    330
-#define TARGET_FREEBSD_NR_sched_yield   331
-#define TARGET_FREEBSD_NR_sched_get_priority_max        332
-#define TARGET_FREEBSD_NR_sched_get_priority_min        333
-#define TARGET_FREEBSD_NR_sched_rr_get_interval 334
-#define TARGET_FREEBSD_NR_utrace        335
-                                /* 336 is freebsd4 sendfile */
-#define TARGET_FREEBSD_NR_kldsym        337
-#define TARGET_FREEBSD_NR_jail  338
-#define TARGET_FREEBSD_NR_nnpfs_syscall 339
-#define TARGET_FREEBSD_NR_sigprocmask   340
-#define TARGET_FREEBSD_NR_sigsuspend    341
-                                /* 342 is freebsd4 sigaction */
-#define TARGET_FREEBSD_NR_sigpending    343
-                                /* 344 is freebsd4 sigreturn */
-#define TARGET_FREEBSD_NR_sigtimedwait  345
-#define TARGET_FREEBSD_NR_sigwaitinfo   346
-#define TARGET_FREEBSD_NR___acl_get_file        347
-#define TARGET_FREEBSD_NR___acl_set_file        348
-#define TARGET_FREEBSD_NR___acl_get_fd  349
-#define TARGET_FREEBSD_NR___acl_set_fd  350
-#define TARGET_FREEBSD_NR___acl_delete_file     351
-#define TARGET_FREEBSD_NR___acl_delete_fd       352
-#define TARGET_FREEBSD_NR___acl_aclcheck_file   353
-#define TARGET_FREEBSD_NR___acl_aclcheck_fd     354
-#define TARGET_FREEBSD_NR_extattrctl    355
-#define TARGET_FREEBSD_NR_extattr_set_file      356
-#define TARGET_FREEBSD_NR_extattr_get_file      357
-#define TARGET_FREEBSD_NR_extattr_delete_file   358
-#define TARGET_FREEBSD_NR_aio_waitcomplete      359
-#define TARGET_FREEBSD_NR_getresuid     360
-#define TARGET_FREEBSD_NR_getresgid     361
-#define TARGET_FREEBSD_NR_kqueue        362
-#define TARGET_FREEBSD_NR_freebsd11_kevent      363
-                                /* 364 is obsolete __cap_get_proc */
-                                /* 365 is obsolete __cap_set_proc */
-                                /* 366 is obsolete __cap_get_fd */
-                                /* 367 is obsolete __cap_get_file */
-                                /* 368 is obsolete __cap_set_fd */
-                                /* 369 is obsolete __cap_set_file */
-#define TARGET_FREEBSD_NR_extattr_set_fd        371
-#define TARGET_FREEBSD_NR_extattr_get_fd        372
-#define TARGET_FREEBSD_NR_extattr_delete_fd     373
-#define TARGET_FREEBSD_NR___setugid     374
-                                /* 375 is obsolete nfsclnt */
-#define TARGET_FREEBSD_NR_eaccess       376
-#define TARGET_FREEBSD_NR_afs3_syscall  377
-#define TARGET_FREEBSD_NR_nmount        378
-                                /* 379 is obsolete kse_exit */
-                                /* 380 is obsolete kse_wakeup */
-                                /* 381 is obsolete kse_create */
-                                /* 382 is obsolete kse_thr_interrupt */
-                                /* 383 is obsolete kse_release */
-#define TARGET_FREEBSD_NR___mac_get_proc        384
-#define TARGET_FREEBSD_NR___mac_set_proc        385
-#define TARGET_FREEBSD_NR___mac_get_fd  386
-#define TARGET_FREEBSD_NR___mac_get_file        387
-#define TARGET_FREEBSD_NR___mac_set_fd  388
-#define TARGET_FREEBSD_NR___mac_set_file        389
-#define TARGET_FREEBSD_NR_kenv  390
-#define TARGET_FREEBSD_NR_lchflags      391
-#define TARGET_FREEBSD_NR_uuidgen       392
-#define TARGET_FREEBSD_NR_sendfile      393
-#define TARGET_FREEBSD_NR_mac_syscall   394
-#define TARGET_FREEBSD_NR_freebsd11_getfsstat   395
-#define TARGET_FREEBSD_NR_freebsd11_statfs      396
-#define TARGET_FREEBSD_NR_freebsd11_fstatfs     397
-#define TARGET_FREEBSD_NR_freebsd11_fhstatfs    398
-#define TARGET_FREEBSD_NR_ksem_close    400
-#define TARGET_FREEBSD_NR_ksem_post     401
-#define TARGET_FREEBSD_NR_ksem_wait     402
-#define TARGET_FREEBSD_NR_ksem_trywait  403
-#define TARGET_FREEBSD_NR_ksem_init     404
-#define TARGET_FREEBSD_NR_ksem_open     405
-#define TARGET_FREEBSD_NR_ksem_unlink   406
-#define TARGET_FREEBSD_NR_ksem_getvalue 407
-#define TARGET_FREEBSD_NR_ksem_destroy  408
-#define TARGET_FREEBSD_NR___mac_get_pid 409
-#define TARGET_FREEBSD_NR___mac_get_link        410
-#define TARGET_FREEBSD_NR___mac_set_link        411
-#define TARGET_FREEBSD_NR_extattr_set_link      412
-#define TARGET_FREEBSD_NR_extattr_get_link      413
-#define TARGET_FREEBSD_NR_extattr_delete_link   414
-#define TARGET_FREEBSD_NR___mac_execve  415
-#define TARGET_FREEBSD_NR_sigaction     416
-#define TARGET_FREEBSD_NR_sigreturn     417
-#define TARGET_FREEBSD_NR_getcontext    421
-#define TARGET_FREEBSD_NR_setcontext    422
-#define TARGET_FREEBSD_NR_swapcontext   423
-#define TARGET_FREEBSD_NR_swapoff       424
-#define TARGET_FREEBSD_NR___acl_get_link        425
-#define TARGET_FREEBSD_NR___acl_set_link        426
-#define TARGET_FREEBSD_NR___acl_delete_link     427
-#define TARGET_FREEBSD_NR___acl_aclcheck_link   428
-#define TARGET_FREEBSD_NR_sigwait       429
-#define TARGET_FREEBSD_NR_thr_create    430
-#define TARGET_FREEBSD_NR_thr_exit      431
-#define TARGET_FREEBSD_NR_thr_self      432
-#define TARGET_FREEBSD_NR_thr_kill      433
-#define TARGET_FREEBSD_NR_jail_attach   436
-#define TARGET_FREEBSD_NR_extattr_list_fd       437
-#define TARGET_FREEBSD_NR_extattr_list_file     438
-#define TARGET_FREEBSD_NR_extattr_list_link     439
-                                /* 440 is obsolete kse_switchin */
-#define TARGET_FREEBSD_NR_ksem_timedwait        441
-#define TARGET_FREEBSD_NR_thr_suspend   442
-#define TARGET_FREEBSD_NR_thr_wake      443
-#define TARGET_FREEBSD_NR_kldunloadf    444
-#define TARGET_FREEBSD_NR_audit 445
-#define TARGET_FREEBSD_NR_auditon       446
-#define TARGET_FREEBSD_NR_getauid       447
-#define TARGET_FREEBSD_NR_setauid       448
-#define TARGET_FREEBSD_NR_getaudit      449
-#define TARGET_FREEBSD_NR_setaudit      450
-#define TARGET_FREEBSD_NR_getaudit_addr 451
-#define TARGET_FREEBSD_NR_setaudit_addr 452
-#define TARGET_FREEBSD_NR_auditctl      453
-#define TARGET_FREEBSD_NR__umtx_op      454
-#define TARGET_FREEBSD_NR_thr_new       455
-#define TARGET_FREEBSD_NR_sigqueue      456
-#define TARGET_FREEBSD_NR_kmq_open      457
-#define TARGET_FREEBSD_NR_kmq_setattr   458
-#define TARGET_FREEBSD_NR_kmq_timedreceive      459
-#define TARGET_FREEBSD_NR_kmq_timedsend 460
-#define TARGET_FREEBSD_NR_kmq_notify    461
-#define TARGET_FREEBSD_NR_kmq_unlink    462
-#define TARGET_FREEBSD_NR_abort2        463
-#define TARGET_FREEBSD_NR_thr_set_name  464
-#define TARGET_FREEBSD_NR_aio_fsync     465
-#define TARGET_FREEBSD_NR_rtprio_thread 466
-#define TARGET_FREEBSD_NR_sctp_peeloff  471
-#define TARGET_FREEBSD_NR_sctp_generic_sendmsg  472
-#define TARGET_FREEBSD_NR_sctp_generic_sendmsg_iov      473
-#define TARGET_FREEBSD_NR_sctp_generic_recvmsg  474
-#define TARGET_FREEBSD_NR_pread 475
-#define TARGET_FREEBSD_NR_pwrite        476
-#define TARGET_FREEBSD_NR_mmap  477
-#define TARGET_FREEBSD_NR_lseek 478
-#define TARGET_FREEBSD_NR_truncate      479
-#define TARGET_FREEBSD_NR_ftruncate     480
-#define TARGET_FREEBSD_NR_thr_kill2     481
-#define TARGET_FREEBSD_NR_freebsd12_shm_open    482
-#define TARGET_FREEBSD_NR_shm_unlink    483
-#define TARGET_FREEBSD_NR_cpuset        484
-#define TARGET_FREEBSD_NR_cpuset_setid  485
-#define TARGET_FREEBSD_NR_cpuset_getid  486
-#define TARGET_FREEBSD_NR_cpuset_getaffinity    487
-#define TARGET_FREEBSD_NR_cpuset_setaffinity    488
-#define TARGET_FREEBSD_NR_faccessat     489
-#define TARGET_FREEBSD_NR_fchmodat      490
-#define TARGET_FREEBSD_NR_fchownat      491
-#define TARGET_FREEBSD_NR_fexecve       492
-#define TARGET_FREEBSD_NR_freebsd11_fstatat     493
-#define TARGET_FREEBSD_NR_futimesat     494
-#define TARGET_FREEBSD_NR_linkat        495
-#define TARGET_FREEBSD_NR_mkdirat       496
-#define TARGET_FREEBSD_NR_mkfifoat      497
-#define TARGET_FREEBSD_NR_freebsd11_mknodat     498
-#define TARGET_FREEBSD_NR_openat        499
-#define TARGET_FREEBSD_NR_readlinkat    500
-#define TARGET_FREEBSD_NR_renameat      501
-#define TARGET_FREEBSD_NR_symlinkat     502
-#define TARGET_FREEBSD_NR_unlinkat      503
-#define TARGET_FREEBSD_NR_posix_openpt  504
-#define TARGET_FREEBSD_NR_gssd_syscall  505
-#define TARGET_FREEBSD_NR_jail_get      506
-#define TARGET_FREEBSD_NR_jail_set      507
-#define TARGET_FREEBSD_NR_jail_remove   508
-#define TARGET_FREEBSD_NR_freebsd12_closefrom   509
-#define TARGET_FREEBSD_NR___semctl      510
-#define TARGET_FREEBSD_NR_msgctl        511
-#define TARGET_FREEBSD_NR_shmctl        512
-#define TARGET_FREEBSD_NR_lpathconf     513
-                                /* 514 is obsolete cap_new */
-#define TARGET_FREEBSD_NR___cap_rights_get      515
-#define TARGET_FREEBSD_NR_cap_enter     516
-#define TARGET_FREEBSD_NR_cap_getmode   517
-#define TARGET_FREEBSD_NR_pdfork        518
-#define TARGET_FREEBSD_NR_pdkill        519
-#define TARGET_FREEBSD_NR_pdgetpid      520
-#define TARGET_FREEBSD_NR_pselect       522
-#define TARGET_FREEBSD_NR_getloginclass 523
-#define TARGET_FREEBSD_NR_setloginclass 524
-#define TARGET_FREEBSD_NR_rctl_get_racct        525
-#define TARGET_FREEBSD_NR_rctl_get_rules        526
-#define TARGET_FREEBSD_NR_rctl_get_limits       527
-#define TARGET_FREEBSD_NR_rctl_add_rule 528
-#define TARGET_FREEBSD_NR_rctl_remove_rule      529
-#define TARGET_FREEBSD_NR_posix_fallocate       530
-#define TARGET_FREEBSD_NR_posix_fadvise 531
-#define TARGET_FREEBSD_NR_wait6 532
-#define TARGET_FREEBSD_NR_cap_rights_limit      533
-#define TARGET_FREEBSD_NR_cap_ioctls_limit      534
-#define TARGET_FREEBSD_NR_cap_ioctls_get        535
-#define TARGET_FREEBSD_NR_cap_fcntls_limit      536
-#define TARGET_FREEBSD_NR_cap_fcntls_get        537
-#define TARGET_FREEBSD_NR_bindat        538
-#define TARGET_FREEBSD_NR_connectat     539
-#define TARGET_FREEBSD_NR_chflagsat     540
-#define TARGET_FREEBSD_NR_accept4       541
-#define TARGET_FREEBSD_NR_pipe2 542
-#define TARGET_FREEBSD_NR_aio_mlock     543
-#define TARGET_FREEBSD_NR_procctl       544
-#define TARGET_FREEBSD_NR_ppoll 545
-#define TARGET_FREEBSD_NR_futimens      546
-#define TARGET_FREEBSD_NR_utimensat     547
-                                /* 548 is obsolete numa_getaffinity */
-                                /* 549 is obsolete numa_setaffinity */
-#define TARGET_FREEBSD_NR_fdatasync     550
-#define TARGET_FREEBSD_NR_fstat 551
-#define TARGET_FREEBSD_NR_fstatat       552
-#define TARGET_FREEBSD_NR_fhstat        553
-#define TARGET_FREEBSD_NR_getdirentries 554
-#define TARGET_FREEBSD_NR_statfs        555
-#define TARGET_FREEBSD_NR_fstatfs       556
-#define TARGET_FREEBSD_NR_getfsstat     557
-#define TARGET_FREEBSD_NR_fhstatfs      558
-#define TARGET_FREEBSD_NR_mknodat       559
-#define TARGET_FREEBSD_NR_kevent        560
-#define TARGET_FREEBSD_NR_cpuset_getdomain      561
-#define TARGET_FREEBSD_NR_cpuset_setdomain      562
-#define TARGET_FREEBSD_NR_getrandom     563
-#define TARGET_FREEBSD_NR_getfhat       564
-#define TARGET_FREEBSD_NR_fhlink        565
-#define TARGET_FREEBSD_NR_fhlinkat      566
-#define TARGET_FREEBSD_NR_fhreadlink    567
-#define TARGET_FREEBSD_NR_funlinkat     568
-#define TARGET_FREEBSD_NR_copy_file_range       569
-#define TARGET_FREEBSD_NR___sysctlbyname        570
-#define TARGET_FREEBSD_NR_shm_open2     571
-#define TARGET_FREEBSD_NR_shm_rename    572
-#define TARGET_FREEBSD_NR_sigfastblock  573
-#define TARGET_FREEBSD_NR___realpathat  574
-#define TARGET_FREEBSD_NR_close_range   575
-#define TARGET_FREEBSD_NR_rpctls_syscall        576
-#define TARGET_FREEBSD_NR_MAXSYSCALL    577
diff --git a/bsd-user/syscall_defs.h b/bsd-user/syscall_defs.h
index 4dbd90c2f1..30b0270faa 100644
--- a/bsd-user/syscall_defs.h
+++ b/bsd-user/syscall_defs.h
@@ -25,29 +25,13 @@
 
 #include "errno_defs.h"
 
-#include "freebsd/syscall_nr.h"
+#include "os-syscalls.h"
 
 /*
  * machine/_types.h
  * or x86/_types.h
  */
 
-/*
- * time_t seems to be very inconsistly defined for the different *BSD's...
- *
- * FreeBSD uses a 64bits time_t except on i386
- * so we have to add a special case here.
- *
- * On NetBSD time_t is always defined as an int64_t.  On OpenBSD time_t
- * is always defined as an int.
- *
- */
-#if (!defined(TARGET_I386))
-typedef int64_t target_time_t;
-#else
-typedef int32_t target_time_t;
-#endif
-
 struct target_iovec {
     abi_long iov_base;   /* Starting address */
     abi_long iov_len;   /* Number of bytes */

-- 
2.52.0



^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH v2 5/5] bsd-user: Regnerate strace.list
  2026-04-29 14:38 [PATCH v2 0/5] bsd-user: Generate system call numbers Warner Losh
                   ` (3 preceding siblings ...)
  2026-04-29 14:38 ` [PATCH v2 4/5] bsd-user: Switch to generated syscall_nr.h Warner Losh
@ 2026-04-29 14:38 ` Warner Losh
  2026-04-29 22:41   ` Pierrick Bouvier
  2026-04-30  8:18   ` Daniel P. Berrangé
  4 siblings, 2 replies; 15+ messages in thread
From: Warner Losh @ 2026-04-29 14:38 UTC (permalink / raw)
  To: qemu-devel
  Cc: Kyle Evans, Paolo Bonzini, Marc-André Lureau,
	Daniel P. Berrangé, Philippe Mathieu-Daudé,
	Pierrick Bouvier, Warner Losh

Generate strace.list in a stable way. All FreeBSD system call numbers
are stable: they always and will forever mean only one thing (even if we
abandon a syscall number and remove the code from the kernel, we'll
never reuse it). System calls are the same across all architectures, and
newer versions just have more of them. Use the number in the generated
table so we can compile it on any version of FreeBSD.

Also include the script that I used to generate this. It requires the
FreeBSD source tree, which is why we can't use it to generate
strace.list. This depends on the FreeBSD source tree at the moment,
since it uses the same system call generation machinery that FreeBSD
uses to generate its system call tables, so we can't connect it to the
qemu build until that issue is corrected. We've had a terrible strace.list
for a while, and this will make it better (and there's serious issues
with strace, just like linux-user, so it's a little-used feature).

Note: I derived this script from one of the FreeBSD system call
generation scripts, so it needs to be BSD-2-Clause license, which
deviates a bit from the GPL-2.0-or-newer preference, but I think is OK
since it's not folded into the qemu binaries themselves (and output of
scripts is typically public domain, as is the case here). This script is
written in lua, but every FreeBSD installation has a 'flua' binary that
can run this script, and it leverages about 7k lines of library and
metadata FreeBSD maintains well.

Signed-off-by: Warner Losh <imp@bsdimp.com>
---
 bsd-user/freebsd/scripts/strace.lua | 117 ++++++
 bsd-user/freebsd/strace.list        | 708 ++++++++++++++++++++++--------------
 2 files changed, 556 insertions(+), 269 deletions(-)

diff --git a/bsd-user/freebsd/scripts/strace.lua b/bsd-user/freebsd/scripts/strace.lua
new file mode 100755
index 0000000000..c89e8e3aeb
--- /dev/null
+++ b/bsd-user/freebsd/scripts/strace.lua
@@ -0,0 +1,117 @@
+#!/usr/libexec/flua
+--
+-- SPDX-License-Identifier: BSD-2-Clause
+--
+-- Copyright (c) 2026 Warner Losh <imp@FreeBSD.org>
+-- Copyright (c) 2024 Tyler Baxter <agge@FreeBSD.org>
+-- Copyright (c) 2019 Kyle Evans <kevans@FreeBSD.org>
+--
+
+-- Add library root to the package path.
+local path = arg[0]:gsub("/[^/]+.lua$", "")
+package.path = package.path .. ";" .. path .. "/?.lua;" .. os.getenv('FREEBSD_SYSCALL_DIR') .. "/?.lua"
+
+local FreeBSDSyscall = require("core.freebsd-syscall")
+local generator = require("tools.generator")
+local config = require("config")
+
+-- File has not been decided yet; config will decide file.  Default defined as
+-- /dev/null.
+file = "/dev/stdout"
+
+function generate(tbl, config, fh)
+	-- Grab the master system calls table.
+	local s = tbl.syscalls
+
+	table.sort(s, function(a, b)
+	    return a.arg_alias < b.arg_alias
+	end)
+	-- Bind the generator to the parameter file.
+	local gen = generator:new({}, fh)
+	gen.storage_levels = {}	-- make sure storage is clear
+
+	-- Write the generated preamble.
+	gen:preamble("FreeBSD strace list\nNOTE: Use syscall numbers so we work on all the branches.")
+
+	for _, v in pairs(s) do
+		local c = v:compatLevel()
+
+		-- Handle non-compat:
+		if v:native() then
+			-- All these negation conditions are because (in
+			-- general) these are cases where code for sysproto.h
+			-- is not generated.
+			if not v.type.NOARGS and not v.type.NOPROTO and
+			    not v.type.NODEF then
+				fmt = "NULL"
+				fcn = "NULL"
+				if v.arg_alias == "__sysctl" then
+					fcn = "print_sysctl"
+				elseif v.arg_alias == "execve" or v.arg_alias == "fexecve" then
+					fcn = "print_execve"
+				elseif v.arg_alias == "ioctl" then
+					fcn = "print_ioctl"
+				elseif v.arg_alias == "mmap" then
+					fcn = "print_mmap"
+				elseif v.arg_alias == "sysarch" then
+					fcn = "print_sysarch"
+				elseif #v.args > 0 then
+					fmt = "\"%s("
+					for _, arg in ipairs(v.args) do
+						if arg.type == "char *" then
+							fmt = fmt .. "%s, "
+						elseif arg.type == "mode_t" then
+							fmt = fmt .. "%o, "
+						else
+							fmt = fmt .. "%#x, "
+						end
+					end
+					fmt = fmt:sub(1, -3)  .. ")\""
+				end
+				gen:write(string.format(
+				    "{ %d, \"%s\", %s, %s, NULL },\n",
+				    v.num, v.arg_alias, fmt, fcn))
+			end
+		-- Handle compat (everything >= FREEBSD9):
+		elseif c >= 9 then
+			local idx = c * 10
+			if not v.type.NOARGS and not v.type.NOPROTO and
+			    not v.type.NODEF then
+				fmt = "NULL"
+				if #v.args > 0 then
+					fmt = "\"%s("
+					for _, arg in ipairs(v.args) do
+						if arg.type == "char *" then
+							fmt = fmt .. "%s, "
+						elseif arg.type == "mode_t" then
+							fmt = fmt .. "%o, "
+						else
+							fmt = fmt .. "%#x, "
+						end
+					end
+					fmt = fmt:sub(1, -3)  .. ")\""
+				end
+				gen:write(string.format(
+				    "{ %d, \"%s\", %s, %s, NULL },\n",
+				    v.num, v.arg_alias, fmt, fcn))
+			end
+		end
+		-- Do nothing for obsolete, unimplemented, and reserved.
+	end
+end
+
+
+if #arg < 1 or #arg > 2 then
+	error("usage: " .. arg[0] .. " syscall.master")
+end
+
+local sysfile = arg[1]
+
+config.merge(None)
+config.mergeCompat()
+
+-- The parsed system call table.
+local tbl = FreeBSDSyscall:new{sysfile = sysfile, config = config}
+
+file = arg[2] or "/dev/stdout"
+generate(tbl, config, file)
diff --git a/bsd-user/freebsd/strace.list b/bsd-user/freebsd/strace.list
index d7f61f480e..2c4176475a 100644
--- a/bsd-user/freebsd/strace.list
+++ b/bsd-user/freebsd/strace.list
@@ -1,273 +1,443 @@
 /*
- *  FreeBSD strace list
+ * FreeBSD strace list
+ * NOTE: Use syscall numbers so we work on all the branches.
  *
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, see <http://www.gnu.org/licenses/>.
+ * DO NOT EDIT-- this file is automatically @generated.
  */
 
-{ TARGET_FREEBSD_NR___acl_aclcheck_fd, "__acl_aclcheck_fd", "%s(%d, %d, %#x)", NULL, NULL },
-{ TARGET_FREEBSD_NR___acl_aclcheck_file, "__acl_aclcheck_file", "%s(\"%s\", %d, %#x)", NULL, NULL },
-{ TARGET_FREEBSD_NR___acl_aclcheck_link, "__acl_aclcheck_link", "%s(\"%s\", %d, %#x)", NULL, NULL },
-{ TARGET_FREEBSD_NR___acl_delete_fd, "__acl_delete_fd", "%s(%d, %d)", NULL, NULL },
-{ TARGET_FREEBSD_NR___acl_delete_file, "__acl_delete_file", "%s(\"%s\", %d)", NULL, NULL },
-{ TARGET_FREEBSD_NR___acl_delete_link, "__acl_delete_link", "%s(\"%s\", %d)", NULL, NULL },
-{ TARGET_FREEBSD_NR___acl_get_fd, "__acl_get_fd", "%s(%d, %d, %#x)", NULL, NULL },
-{ TARGET_FREEBSD_NR___acl_get_file, "__acl_get_file", "%s(\"%s\", %d, %#x)", NULL, NULL },
-{ TARGET_FREEBSD_NR___acl_get_link, "__acl_get_link", "%s(\"%s\", %d, %#x)", NULL, NULL },
-{ TARGET_FREEBSD_NR___acl_set_fd, "__acl_set_fd", "%s(%d, %d, %#x)", NULL, NULL },
-{ TARGET_FREEBSD_NR___acl_set_file, "__acl_set_file", "%s(\"%s\", %d, %#x)", NULL, NULL },
-{ TARGET_FREEBSD_NR___acl_set_link, "__acl_set_link", "%s(\"%s\", %d, %#x)", NULL, NULL },
-{ TARGET_FREEBSD_NR___getcwd, "__getcwd", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR___semctl, "__semctl", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR___syscall, "__syscall", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR___sysctl, "__sysctl", NULL, print_sysctl, NULL },
-{ TARGET_FREEBSD_NR__umtx_op, "_umtx_op", "%s(%#x, %d, %d, %#x, %#x)", NULL, NULL },
-{ TARGET_FREEBSD_NR_accept, "accept", "%s(%d,%#x,%#x)", NULL, NULL },
-{ TARGET_FREEBSD_NR_accept4, "accept4", "%s(%d,%d,%#x,%#x)", NULL, NULL },
-{ TARGET_FREEBSD_NR_access, "access", "%s(\"%s\",%#o)", NULL, NULL },
-{ TARGET_FREEBSD_NR_acct, "acct", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_adjtime, "adjtime", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_bind, "bind", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_bindat, "bindat", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_break, "break", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_cap_enter, "cap_enter", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_cap_fcntls_get, "cap_fcntls_get", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_cap_fcntls_limit, "cap_fcntls_limit", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_cap_getmode, "cap_getmode", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_cap_ioctls_get, "cap_ioctls_get", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_cap_ioctls_limit, "cap_ioctls_limit", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_cap_rights_limit, "cap_rights_limit", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_chdir, "chdir", "%s(\"%s\")", NULL, NULL },
-{ TARGET_FREEBSD_NR_chflags, "chflags", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_chflagsat, "chflagsat", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_chmod, "chmod", "%s(\"%s\",%#o)", NULL, NULL },
-{ TARGET_FREEBSD_NR_chown, "chown", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_chroot, "chroot", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_clock_getres, "clock_getres", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_clock_gettime, "clock_gettime", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_clock_settime, "clock_settime", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_close, "close", "%s(%d)", NULL, NULL },
-{ TARGET_FREEBSD_NR_connect, "connect", "%s(%d,%#x,%d)", NULL, NULL },
-{ TARGET_FREEBSD_NR_connectat, "connectat", "%s(%d,%d,%#x,%d)", NULL, NULL },
-{ TARGET_FREEBSD_NR_cpuset_getdomain, "cpuset_getdomain", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_cpuset_setdomain, "cpuset_setdomain", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_dup, "dup", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_dup2, "dup2", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_eaccess, "eaccess", "%s(\"%s\",%#x)", NULL, NULL },
-{ TARGET_FREEBSD_NR_execve, "execve", NULL, print_execve, NULL },
-{ TARGET_FREEBSD_NR_exit, "exit", "%s(%d)\n", NULL, NULL },
-{ TARGET_FREEBSD_NR_extattrctl, "extattrctl", "%s(\"%s\", %d, \"%s\", %d, \"%s\"", NULL, NULL },
-{ TARGET_FREEBSD_NR_extattr_delete_fd, "extattr_delete_fd", "%s(%d, %d, \"%s\")", NULL, NULL },
-{ TARGET_FREEBSD_NR_extattr_delete_file, "extattr_delete_file", "%s(\"%s\", %d, \"%s\")", NULL, NULL },
-{ TARGET_FREEBSD_NR_extattr_delete_link, "extattr_delete_link", "%s(\"%s\", %d, \"%s\")", NULL, NULL },
-{ TARGET_FREEBSD_NR_extattr_get_fd, "extattr_get_fd", "%s(%d, %d, \"%s\", %#x, %d)", NULL, NULL },
-{ TARGET_FREEBSD_NR_extattr_get_file, "extattr_get_file", "%s(\"%s\", %d, \"%s\", %#x, %d)", NULL, NULL },
-{ TARGET_FREEBSD_NR_extattr_get_file, "extattr_get_link", "%s(\"%s\", %d, \"%s\", %#x, %d)", NULL, NULL },
-{ TARGET_FREEBSD_NR_extattr_list_fd, "extattr_list_fd", "%s(%d, %d, %#x, %d)", NULL, NULL },
-{ TARGET_FREEBSD_NR_extattr_list_file, "extattr_list_file", "%s(\"%s\", %#x, %d)", NULL, NULL },
-{ TARGET_FREEBSD_NR_extattr_list_link, "extattr_list_link", "%s(\"%s\", %d, %#x, %d)", NULL, NULL },
-{ TARGET_FREEBSD_NR_extattr_set_fd, "extattr_set_fd", "%s(%d, %d, \"%s\", %#x, %d)", NULL, NULL },
-{ TARGET_FREEBSD_NR_extattr_set_file, "extattr_set_file", "%s(\"%s\", %d, \"%s\", %#x, %d)", NULL, NULL },
-{ TARGET_FREEBSD_NR_extattr_set_link, "extattr_set_link", "%s(\"%s\", %d, \"%s\", %#x, %d)", NULL, NULL },
-{ TARGET_FREEBSD_NR_fchdir, "fchdir", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_fchflags, "fchflags", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_fchmod, "fchmod", "%s(%d,%#o)", NULL, NULL },
-{ TARGET_FREEBSD_NR_fchown, "fchown", "%s(%d,%d,%d)", NULL, NULL },
-{ TARGET_FREEBSD_NR_fcntl, "fcntl", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_fdatasync, "fdatasync", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_fexecve, "fexecve", NULL, print_execve, NULL },
-{ TARGET_FREEBSD_NR_fhopen, "fhopen", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_fhstat, "fhstat", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_fhstatfs, "fhstatfs", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_freebsd11_fhstat, "freebsd11_fhstat", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_freebsd11_fhstatfs, "freebsd11_fhstatfs", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_flock, "flock", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_fork, "fork", "%s()", NULL, NULL },
-{ TARGET_FREEBSD_NR_fpathconf, "fpathconf", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_fstat, "fstat", "%s(%d,%#x)", NULL, NULL },
-{ TARGET_FREEBSD_NR_fstatat, "fstatat", "%s(%d,\"%s\", %#x, %d)", NULL, NULL },
-{ TARGET_FREEBSD_NR_fstatfs, "fstatfs", "%s(%d,%#x)", NULL, NULL },
-{ TARGET_FREEBSD_NR_freebsd11_fstat, "freebsd11_fstat", "%s(%d,%#x)", NULL, NULL },
-{ TARGET_FREEBSD_NR_freebsd11_fstatat, "freebsd11_fstatat", "%s(%d,\"%s\", %#x, %d)", NULL, NULL },
-{ TARGET_FREEBSD_NR_freebsd11_fstatfs, "freebsd11_fstatfs", "%s(%d,%#x)", NULL, NULL },
-{ TARGET_FREEBSD_NR_fsync, "fsync", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_ftruncate, "ftruncate", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_futimens, "futimens", "%s(%d,%p)", NULL, NULL },
-{ TARGET_FREEBSD_NR_futimes, "futimes", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_getcontext, "getcontext", "%s(%#x)", NULL, NULL },
-{ TARGET_FREEBSD_NR_getdirentries, "getdirentries", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_freebsd11_getdirentries, "freebsd11_getdirentries", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_getegid, "getegid", "%s()", NULL, NULL },
-{ TARGET_FREEBSD_NR_geteuid, "geteuid", "%s()", NULL, NULL },
-{ TARGET_FREEBSD_NR_getfh, "getfh", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_getfsstat, "getfsstat", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_freebsd11_getfsstat, "freebsd11_getfsstat", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_getgid, "getgid", "%s()", NULL, NULL },
-{ TARGET_FREEBSD_NR_getgroups, "getgroups", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_getitimer, "getitimer", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_getlogin, "getlogin", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_getpeername, "getpeername", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_getpgid, "getpgid", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_getpgrp, "getpgrp", "%s()", NULL, NULL },
-{ TARGET_FREEBSD_NR_getpid, "getpid", "%s()", NULL, NULL },
-{ TARGET_FREEBSD_NR_getppid, "getppid", "%s()", NULL, NULL },
-{ TARGET_FREEBSD_NR_getpriority, "getpriority", "%s(%#x,%#x)", NULL, NULL },
-{ TARGET_FREEBSD_NR_getrandom, "getrandom", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_getresgid, "getresgid", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_getresuid, "getresuid", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_getrlimit, "getrlimit", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_getrusage, "getrusage", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_getsid, "getsid", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_getsockname, "getsockname", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_getsockopt, "getsockopt", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_gettimeofday, "gettimeofday", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_getuid, "getuid", "%s()", NULL, NULL },
-{ TARGET_FREEBSD_NR_ioctl, "ioctl", NULL, print_ioctl, NULL },
-{ TARGET_FREEBSD_NR_issetugid, "issetugid", "%s()", NULL, NULL },
-{ TARGET_FREEBSD_NR_freebsd11_kevent, "freebsd11_kevent", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_kevent, "kevent", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_kill, "kill", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_kqueue, "kqueue", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_ktrace, "ktrace", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_lchown, "lchown", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_link, "link", "%s(\"%s\",\"%s\")", NULL, NULL },
-{ TARGET_FREEBSD_NR_listen, "listen", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_lpathconf, "lpathconf", "%s(\"%s\", %d)", NULL, NULL },
-{ TARGET_FREEBSD_NR_lseek, "lseek", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_freebsd11_lstat, "freebsd11_lstat", "%s(\"%s\",%p)", NULL, NULL },
-{ TARGET_FREEBSD_NR_madvise, "madvise", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_mincore, "mincore", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_minherit, "minherit", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_mkdir, "mkdir", "%s(\"%s\",%#o)", NULL, NULL },
-{ TARGET_FREEBSD_NR_mkfifo, "mkfifo", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_mknodat, "mknodat", "%s(%d, \"%s\",%#o,%#x)", NULL, NULL },
-{ TARGET_FREEBSD_NR_freebsd11_mknod, "freebsd11_mknod", "%s(\"%s\",%#o,%#x)", NULL, NULL },
-{ TARGET_FREEBSD_NR_freebsd11_mknodat, "freebsd11_mknodat", "%s(%d, \"%s\",%#o,%#x)", NULL, NULL },
-{ TARGET_FREEBSD_NR_mlock, "mlock", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_mlockall, "mlockall", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_mmap, "mmap", NULL, NULL, print_syscall_ret_addr },
-{ TARGET_FREEBSD_NR_mount, "mount", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_mprotect, "mprotect", "%s(%#x,%#x,%d)", NULL, NULL },
-{ TARGET_FREEBSD_NR_msgctl, "msgctl", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_msgget, "msgget", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_msgrcv, "msgrcv", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_msgsnd, "msgsnd", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_msync, "msync", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_munlock, "munlock", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_munlockall, "munlockall", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_munmap, "munmap", "%s(%p,%d)", NULL, NULL },
-{ TARGET_FREEBSD_NR_nanosleep, "nanosleep", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_nfssvc, "nfssvc", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_open, "open", "%s(\"%s\",%#x,%#o)", NULL, NULL },
-{ TARGET_FREEBSD_NR_openat, "openat", "%s(%d, \"%s\",%#x,%#o)", NULL, NULL },
-{ TARGET_FREEBSD_NR_pathconf, "pathconf", "%s(\"%s\", %d)", NULL, NULL },
-{ TARGET_FREEBSD_NR_freebsd10_pipe, "freebsd10_pipe", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_pipe2, "pipe2", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_poll, "poll", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_posix_fallocate, "posix_fallocate", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_pread, "pread", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_preadv, "preadv", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_profil, "profil", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_ptrace, "ptrace", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_pwrite, "pwrite", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_pwritev, "pwritev", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_quotactl, "quotactl", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_read, "read", "%s(%d,%#x,%d)", NULL, NULL },
-{ TARGET_FREEBSD_NR_readlink, "readlink", "%s(\"%s\",%p,%d)", NULL, NULL },
-{ TARGET_FREEBSD_NR_readv, "readv", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_reboot, "reboot", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_recvfrom, "recvfrom", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_recvmsg, "recvmsg", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_rename, "rename", "%s(\"%s\",\"%s\")", NULL, NULL },
-{ TARGET_FREEBSD_NR_revoke, "revoke", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_rfork, "rfork", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_rmdir, "rmdir", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_rtprio_thread, "rtprio_thread", "%s(%d, %d, %p)", NULL, NULL },
-#ifdef TARGET_FREEBSD_NR_sbrk
-{ TARGET_FREEBSD_NR_sbrk, "sbrk", NULL, NULL, NULL },
-#endif
-{ TARGET_FREEBSD_NR_sched_get_priority_max, "sched_get_priority_max", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_sched_get_priority_min, "sched_get_priority_min", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_sched_yield, "sched_yield", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_select, "select", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_semget, "semget", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_semop, "semop", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_sendmsg, "sendmsg", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_sendto, "sendto", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_setcontext, "setcontext", "%s(%#x)", NULL, NULL },
-{ TARGET_FREEBSD_NR_setegid, "setegid", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_seteuid, "seteuid", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_setgid, "setgid", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_setgroups, "setgroups", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_setitimer, "setitimer", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_setlogin, "setlogin", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_setpgid, "setpgid", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_setpriority, "setpriority", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_setregid, "setregid", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_setresgid, "setresgid", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_setresuid, "setresuid", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_setreuid, "setreuid", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_setrlimit, "setrlimit", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_setsid, "setsid", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_setsockopt, "setsockopt", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_settimeofday, "settimeofday", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_setuid, "setuid", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_shmat, "shmat", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_shmctl, "shmctl", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_shmdt, "shmdt", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_shmget, "shmget", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_shutdown, "shutdown", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_sigaction, "sigaction", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_sigaltstack, "sigaltstack", "%s(%p,%p)", NULL, NULL },
-{ TARGET_FREEBSD_NR_sigpending, "sigpending", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_sigprocmask, "sigprocmask", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_sigreturn, "sigreturn", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_sigsuspend, "sigsuspend", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_socket, "socket", "%s(%d,%d,%d)", NULL, NULL },
-{ TARGET_FREEBSD_NR_socketpair, "socketpair", NULL, NULL, NULL },
-#ifdef TARGET_FREEBSD_NR_sstk
-{ TARGET_FREEBSD_NR_sstk, "sstk", NULL, NULL, NULL },
-#endif
-{ TARGET_FREEBSD_NR_freebsd11_stat, "freebsd11_stat", "%s(\"%s\",%p)", NULL, NULL },
-{ TARGET_FREEBSD_NR_freebsd11_statfs, "freebsd11_statfs", "%s(\"%s\",%p)", NULL, NULL },
-{ TARGET_FREEBSD_NR_symlink, "symlink", "%s(\"%s\",\"%s\")", NULL, NULL },
-{ TARGET_FREEBSD_NR_sync, "sync", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_sysarch, "sysarch", NULL, print_sysarch, NULL },
-{ TARGET_FREEBSD_NR_syscall, "syscall", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_ktimer_create, "timer_create" , NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_ktimer_delete, "timer_delete" , NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_ktimer_settime, "timer_settime" , NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_ktimer_gettime, "timer_gettime" , NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_ktimer_getoverrun, "timer_getoverrun" , NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_thr_create, "thr_create", "%s(%#x, %#x, %d)", NULL, NULL },
-{ TARGET_FREEBSD_NR_thr_exit, "thr_exit", "%s(%#x)", NULL, NULL },
-{ TARGET_FREEBSD_NR_thr_kill, "thr_kill", "%s(%d, %#x)", NULL, NULL },
-{ TARGET_FREEBSD_NR_thr_kill2, "thr_kill2", "%s(%d, %d, %d)", NULL, NULL },
-{ TARGET_FREEBSD_NR_thr_new, "thr_new", "%s(%#x, %d)", NULL, NULL },
-{ TARGET_FREEBSD_NR_thr_self, "thr_self", "%s(%#x)", NULL, NULL },
-{ TARGET_FREEBSD_NR_thr_set_name, "thr_set_name", "%s(%d, \"%s\")", NULL, NULL },
-{ TARGET_FREEBSD_NR_thr_suspend, "thr_suspend", "%s(%d, %#x)", NULL, NULL },
-{ TARGET_FREEBSD_NR_thr_wake, "thr_wake", "%s(%d)", NULL, NULL },
-{ TARGET_FREEBSD_NR_truncate, "truncate", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_umask, "umask", "%s(%#o)", NULL, NULL },
-{ TARGET_FREEBSD_NR_unlink, "unlink", "%s(\"%s\")", NULL, NULL },
-{ TARGET_FREEBSD_NR_unmount, "unmount", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_utimes, "utimes", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_utimensat, "utimensat", "%s(%d,%s,%p,%#x)", NULL, NULL },
-{ TARGET_FREEBSD_NR_vfork, "vfork", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_wait4, "wait4", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_wait6, "wait6", NULL, NULL, NULL },
-{ TARGET_FREEBSD_NR_write, "write", "%s(%d,%#x,%d)", NULL, NULL },
-{ TARGET_FREEBSD_NR_writev, "writev", "%s(%d,%p,%#x)", NULL, NULL },
-{ TARGET_FREEBSD_NR_posix_openpt, "posix_openpt", "%s(%d)", NULL, NULL },
+{ 354, "__acl_aclcheck_fd_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 353, "__acl_aclcheck_file_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 428, "__acl_aclcheck_link_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 352, "__acl_delete_fd_args", "%s(%#x, %#x)", NULL, NULL },
+{ 351, "__acl_delete_file_args", "%s(%#x, %#x)", NULL, NULL },
+{ 427, "__acl_delete_link_args", "%s(%#x, %#x)", NULL, NULL },
+{ 349, "__acl_get_fd_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 347, "__acl_get_file_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 425, "__acl_get_link_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 350, "__acl_set_fd_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 348, "__acl_set_file_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 426, "__acl_set_link_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 515, "__cap_rights_get_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 326, "__getcwd_args", "%s(%s, %#x)", NULL, NULL },
+{ 415, "__mac_execve_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 386, "__mac_get_fd_args", "%s(%#x, %#x)", NULL, NULL },
+{ 387, "__mac_get_file_args", "%s(%#x, %#x)", NULL, NULL },
+{ 410, "__mac_get_link_args", "%s(%#x, %#x)", NULL, NULL },
+{ 409, "__mac_get_pid_args", "%s(%#x, %#x)", NULL, NULL },
+{ 384, "__mac_get_proc_args", "%s(%#x)", NULL, NULL },
+{ 388, "__mac_set_fd_args", "%s(%#x, %#x)", NULL, NULL },
+{ 389, "__mac_set_file_args", "%s(%#x, %#x)", NULL, NULL },
+{ 411, "__mac_set_link_args", "%s(%#x, %#x)", NULL, NULL },
+{ 385, "__mac_set_proc_args", "%s(%#x)", NULL, NULL },
+{ 574, "__realpathat_args", "%s(%#x, %#x, %s, %#x, %#x)", NULL, NULL },
+{ 510, "__semctl_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 374, "__setugid_args", "%s(%#x)", NULL, NULL },
+{ 577, "__specialfd_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 202, "__sysctl_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
+{ 570, "__sysctlbyname_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
+{ 1, "_exit_args", "%s(%#x)", NULL, NULL },
+{ 454, "_umtx_op_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
+{ 463, "abort2_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 541, "accept4_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 30, "accept_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 33, "access_args", "%s(%#x, %#x)", NULL, NULL },
+{ 51, "acct_args", "%s(%#x)", NULL, NULL },
+{ 140, "adjtime_args", "%s(%#x, %#x)", NULL, NULL },
+{ 377, "afs3_syscall_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
+{ 316, "aio_cancel_args", "%s(%#x, %#x)", NULL, NULL },
+{ 317, "aio_error_args", "%s(%#x)", NULL, NULL },
+{ 465, "aio_fsync_args", "%s(%#x, %#x)", NULL, NULL },
+{ 543, "aio_mlock_args", "%s(%#x)", NULL, NULL },
+{ 255, "aio_read_args", "%s(%#x)", NULL, NULL },
+{ 579, "aio_readv_args", "%s(%#x)", NULL, NULL },
+{ 314, "aio_return_args", "%s(%#x)", NULL, NULL },
+{ 315, "aio_suspend_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 359, "aio_waitcomplete_args", "%s(%#x, %#x)", NULL, NULL },
+{ 256, "aio_write_args", "%s(%#x)", NULL, NULL },
+{ 578, "aio_writev_args", "%s(%#x)", NULL, NULL },
+{ 445, "audit_args", "%s(%#x, %#x)", NULL, NULL },
+{ 453, "auditctl_args", "%s(%#x)", NULL, NULL },
+{ 446, "auditon_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 104, "bind_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 538, "bindat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 17, "break_args", "%s(%s)", NULL, NULL },
+{ 516, "cap_enter_args", NULL, NULL, NULL },
+{ 537, "cap_fcntls_get_args", "%s(%#x, %#x)", NULL, NULL },
+{ 536, "cap_fcntls_limit_args", "%s(%#x, %#x)", NULL, NULL },
+{ 517, "cap_getmode_args", "%s(%#x)", NULL, NULL },
+{ 535, "cap_ioctls_get_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 534, "cap_ioctls_limit_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 533, "cap_rights_limit_args", "%s(%#x, %#x)", NULL, NULL },
+{ 12, "chdir_args", "%s(%#x)", NULL, NULL },
+{ 34, "chflags_args", "%s(%#x, %#x)", NULL, NULL },
+{ 540, "chflagsat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 15, "chmod_args", "%s(%#x, %o)", NULL, NULL },
+{ 16, "chown_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 61, "chroot_args", "%s(%#x)", NULL, NULL },
+{ 247, "clock_getcpuclockid2_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 234, "clock_getres_args", "%s(%#x, %#x)", NULL, NULL },
+{ 232, "clock_gettime_args", "%s(%#x, %#x)", NULL, NULL },
+{ 244, "clock_nanosleep_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 233, "clock_settime_args", "%s(%#x, %#x)", NULL, NULL },
+{ 6, "close_args", "%s(%#x)", NULL, NULL },
+{ 575, "close_range_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 98, "connect_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 539, "connectat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 569, "copy_file_range_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
+{ 484, "cpuset_args", "%s(%#x)", NULL, NULL },
+{ 487, "cpuset_getaffinity_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
+{ 561, "cpuset_getdomain_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
+{ 486, "cpuset_getid_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 488, "cpuset_setaffinity_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
+{ 562, "cpuset_setdomain_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
+{ 485, "cpuset_setid_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 90, "dup2_args", "%s(%#x, %#x)", NULL, NULL },
+{ 41, "dup_args", "%s(%#x)", NULL, NULL },
+{ 376, "eaccess_args", "%s(%#x, %#x)", NULL, NULL },
+{ 59, "execve_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 373, "extattr_delete_fd_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 358, "extattr_delete_file_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 414, "extattr_delete_link_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 372, "extattr_get_fd_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
+{ 357, "extattr_get_file_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
+{ 413, "extattr_get_link_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
+{ 437, "extattr_list_fd_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 438, "extattr_list_file_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 439, "extattr_list_link_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 371, "extattr_set_fd_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
+{ 356, "extattr_set_file_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
+{ 412, "extattr_set_link_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
+{ 355, "extattrctl_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
+{ 592, "exterrctl_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 489, "faccessat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 13, "fchdir_args", "%s(%#x)", NULL, NULL },
+{ 35, "fchflags_args", "%s(%#x, %#x)", NULL, NULL },
+{ 124, "fchmod_args", "%s(%#x, %o)", NULL, NULL },
+{ 490, "fchmodat_args", "%s(%#x, %#x, %o, %#x)", NULL, NULL },
+{ 123, "fchown_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 491, "fchownat_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
+{ 590, "fchroot_args", "%s(%#x)", NULL, NULL },
+{ 92, "fcntl_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 550, "fdatasync_args", "%s(%#x)", NULL, NULL },
+{ 492, "fexecve_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 241, "ffclock_getcounter_args", "%s(%#x)", NULL, NULL },
+{ 243, "ffclock_getestimate_args", "%s(%#x)", NULL, NULL },
+{ 242, "ffclock_setestimate_args", "%s(%#x)", NULL, NULL },
+{ 565, "fhlink_args", "%s(%#x, %#x)", NULL, NULL },
+{ 566, "fhlinkat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 298, "fhopen_args", "%s(%#x, %#x)", NULL, NULL },
+{ 567, "fhreadlink_args", "%s(%#x, %s, %#x)", NULL, NULL },
+{ 553, "fhstat_args", "%s(%#x, %#x)", NULL, NULL },
+{ 558, "fhstatfs_args", "%s(%#x, %#x)", NULL, NULL },
+{ 131, "flock_args", "%s(%#x, %#x)", NULL, NULL },
+{ 2, "fork_args", NULL, NULL, NULL },
+{ 192, "fpathconf_args", "%s(%#x, %#x)", NULL, NULL },
+{ 434, "freebsd10__umtx_lock_args", "%s(%#x)", NULL, NULL },
+{ 435, "freebsd10__umtx_unlock_args", "%s(%#x)", NULL, NULL },
+{ 42, "freebsd10_pipe_args", NULL, NULL, NULL },
+{ 299, "freebsd11_fhstat_args", "%s(%#x, %#x)", NULL, NULL },
+{ 398, "freebsd11_fhstatfs_args", "%s(%#x, %#x)", NULL, NULL },
+{ 189, "freebsd11_fstat_args", "%s(%#x, %#x)", NULL, NULL },
+{ 493, "freebsd11_fstatat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 397, "freebsd11_fstatfs_args", "%s(%#x, %#x)", NULL, NULL },
+{ 272, "freebsd11_getdents_args", "%s(%#x, %s, %#x)", NULL, NULL },
+{ 196, "freebsd11_getdirentries_args", "%s(%#x, %s, %#x, %#x)", NULL, NULL },
+{ 395, "freebsd11_getfsstat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 363, "freebsd11_kevent_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
+{ 190, "freebsd11_lstat_args", "%s(%#x, %#x)", NULL, NULL },
+{ 14, "freebsd11_mknod_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 498, "freebsd11_mknodat_args", "%s(%#x, %#x, %o, %#x)", NULL, NULL },
+{ 279, "freebsd11_nfstat_args", "%s(%#x, %#x)", NULL, NULL },
+{ 280, "freebsd11_nlstat_args", "%s(%#x, %#x)", NULL, NULL },
+{ 278, "freebsd11_nstat_args", "%s(%#x, %#x)", NULL, NULL },
+{ 188, "freebsd11_stat_args", "%s(%#x, %#x)", NULL, NULL },
+{ 396, "freebsd11_statfs_args", "%s(%#x, %#x)", NULL, NULL },
+{ 72, "freebsd11_vadvise_args", "%s(%#x)", NULL, NULL },
+{ 509, "freebsd12_closefrom_args", "%s(%#x)", NULL, NULL },
+{ 482, "freebsd12_shm_open_args", "%s(%#x, %#x, %o)", NULL, NULL },
+{ 424, "freebsd13_swapoff_args", "%s(%#x)", NULL, NULL },
+{ 79, "freebsd14_getgroups_args", "%s(%#x, %#x)", NULL, NULL },
+{ 80, "freebsd14_setgroups_args", "%s(%#x, %#x)", NULL, NULL },
+{ 580, "fspacectl_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
+{ 551, "fstat_args", "%s(%#x, %#x)", NULL, NULL },
+{ 552, "fstatat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 556, "fstatfs_args", "%s(%#x, %#x)", NULL, NULL },
+{ 95, "fsync_args", "%s(%#x)", NULL, NULL },
+{ 480, "ftruncate_args", "%s(%#x, %#x)", NULL, NULL },
+{ 568, "funlinkat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 546, "futimens_args", "%s(%#x, %#x)", NULL, NULL },
+{ 206, "futimes_args", "%s(%#x, %#x)", NULL, NULL },
+{ 494, "futimesat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 451, "getaudit_addr_args", "%s(%#x, %#x)", NULL, NULL },
+{ 449, "getaudit_args", "%s(%#x)", NULL, NULL },
+{ 447, "getauid_args", "%s(%#x)", NULL, NULL },
+{ 421, "getcontext_args", "%s(%#x)", NULL, NULL },
+{ 554, "getdirentries_args", "%s(%#x, %s, %#x, %#x)", NULL, NULL },
+{ 89, "getdtablesize_args", NULL, NULL, NULL },
+{ 43, "getegid_args", NULL, NULL, NULL },
+{ 25, "geteuid_args", NULL, NULL, NULL },
+{ 161, "getfh_args", "%s(%#x, %#x)", NULL, NULL },
+{ 564, "getfhat_args", "%s(%#x, %s, %#x, %#x)", NULL, NULL },
+{ 557, "getfsstat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 47, "getgid_args", NULL, NULL, NULL },
+{ 595, "getgroups_args", "%s(%#x, %#x)", NULL, NULL },
+{ 86, "getitimer_args", "%s(%#x, %#x)", NULL, NULL },
+{ 49, "getlogin_args", "%s(%s, %#x)", NULL, NULL },
+{ 523, "getloginclass_args", "%s(%s, %#x)", NULL, NULL },
+{ 31, "getpeername_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 207, "getpgid_args", "%s(%#x)", NULL, NULL },
+{ 81, "getpgrp_args", NULL, NULL, NULL },
+{ 20, "getpid_args", NULL, NULL, NULL },
+{ 39, "getppid_args", NULL, NULL, NULL },
+{ 100, "getpriority_args", "%s(%#x, %#x)", NULL, NULL },
+{ 563, "getrandom_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 361, "getresgid_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 360, "getresuid_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 194, "getrlimit_args", "%s(%#x, %#x)", NULL, NULL },
+{ 589, "getrlimitusage_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 117, "getrusage_args", "%s(%#x, %#x)", NULL, NULL },
+{ 310, "getsid_args", "%s(%#x)", NULL, NULL },
+{ 32, "getsockname_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 118, "getsockopt_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
+{ 116, "gettimeofday_args", "%s(%#x, %#x)", NULL, NULL },
+{ 24, "getuid_args", NULL, NULL, NULL },
+{ 593, "inotify_add_watch_at_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 594, "inotify_rm_watch_args", "%s(%#x, %#x)", NULL, NULL },
+{ 54, "ioctl_args", "%s(%#x, %#x, %s)", NULL, NULL },
+{ 253, "issetugid_args", NULL, NULL, NULL },
+{ 338, "jail_args", "%s(%#x)", NULL, NULL },
+{ 436, "jail_attach_args", "%s(%#x)", NULL, NULL },
+{ 597, "jail_attach_jd_args", "%s(%#x)", NULL, NULL },
+{ 506, "jail_get_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 508, "jail_remove_args", "%s(%#x)", NULL, NULL },
+{ 598, "jail_remove_jd_args", "%s(%#x)", NULL, NULL },
+{ 507, "jail_set_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 588, "kcmp_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
+{ 390, "kenv_args", "%s(%#x, %#x, %s, %#x)", NULL, NULL },
+{ 560, "kevent_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
+{ 599, "kexec_load_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 37, "kill_args", "%s(%#x, %#x)", NULL, NULL },
+{ 306, "kldfind_args", "%s(%#x)", NULL, NULL },
+{ 309, "kldfirstmod_args", "%s(%#x)", NULL, NULL },
+{ 304, "kldload_args", "%s(%#x)", NULL, NULL },
+{ 307, "kldnext_args", "%s(%#x)", NULL, NULL },
+{ 308, "kldstat_args", "%s(%#x, %#x)", NULL, NULL },
+{ 337, "kldsym_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 305, "kldunload_args", "%s(%#x)", NULL, NULL },
+{ 444, "kldunloadf_args", "%s(%#x, %#x)", NULL, NULL },
+{ 461, "kmq_notify_args", "%s(%#x, %#x)", NULL, NULL },
+{ 457, "kmq_open_args", "%s(%#x, %#x, %o, %#x)", NULL, NULL },
+{ 458, "kmq_setattr_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 459, "kmq_timedreceive_args", "%s(%#x, %s, %#x, %#x, %#x)", NULL, NULL },
+{ 460, "kmq_timedsend_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
+{ 462, "kmq_unlink_args", "%s(%#x)", NULL, NULL },
+{ 362, "kqueue_args", NULL, NULL, NULL },
+{ 583, "kqueuex_args", "%s(%#x)", NULL, NULL },
+{ 400, "ksem_close_args", "%s(%#x)", NULL, NULL },
+{ 408, "ksem_destroy_args", "%s(%#x)", NULL, NULL },
+{ 407, "ksem_getvalue_args", "%s(%#x, %#x)", NULL, NULL },
+{ 404, "ksem_init_args", "%s(%#x, %#x)", NULL, NULL },
+{ 405, "ksem_open_args", "%s(%#x, %#x, %#x, %o, %#x)", NULL, NULL },
+{ 401, "ksem_post_args", "%s(%#x)", NULL, NULL },
+{ 441, "ksem_timedwait_args", "%s(%#x, %#x)", NULL, NULL },
+{ 403, "ksem_trywait_args", "%s(%#x)", NULL, NULL },
+{ 406, "ksem_unlink_args", "%s(%#x)", NULL, NULL },
+{ 402, "ksem_wait_args", "%s(%#x)", NULL, NULL },
+{ 235, "ktimer_create_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 236, "ktimer_delete_args", "%s(%#x)", NULL, NULL },
+{ 239, "ktimer_getoverrun_args", "%s(%#x)", NULL, NULL },
+{ 238, "ktimer_gettime_args", "%s(%#x, %#x)", NULL, NULL },
+{ 237, "ktimer_settime_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 45, "ktrace_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 391, "lchflags_args", "%s(%#x, %#x)", NULL, NULL },
+{ 274, "lchmod_args", "%s(%#x, %o)", NULL, NULL },
+{ 254, "lchown_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 160, "lgetfh_args", "%s(%#x, %#x)", NULL, NULL },
+{ 9, "link_args", "%s(%#x, %#x)", NULL, NULL },
+{ 495, "linkat_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
+{ 257, "lio_listio_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 106, "listen_args", "%s(%#x, %#x)", NULL, NULL },
+{ 513, "lpathconf_args", "%s(%#x, %#x)", NULL, NULL },
+{ 478, "lseek_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 276, "lutimes_args", "%s(%#x, %#x)", NULL, NULL },
+{ 394, "mac_syscall_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 75, "madvise_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 584, "membarrier_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 78, "mincore_args", "%s(%#x, %#x, %s)", NULL, NULL },
+{ 250, "minherit_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 136, "mkdir_args", "%s(%#x, %o)", NULL, NULL },
+{ 496, "mkdirat_args", "%s(%#x, %#x, %o)", NULL, NULL },
+{ 132, "mkfifo_args", "%s(%#x, %o)", NULL, NULL },
+{ 497, "mkfifoat_args", "%s(%#x, %#x, %o)", NULL, NULL },
+{ 559, "mknodat_args", "%s(%#x, %#x, %o, %#x)", NULL, NULL },
+{ 203, "mlock_args", "%s(%#x, %#x)", NULL, NULL },
+{ 324, "mlockall_args", "%s(%#x)", NULL, NULL },
+{ 477, "mmap_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
+{ 303, "modfind_args", "%s(%#x)", NULL, NULL },
+{ 302, "modfnext_args", "%s(%#x)", NULL, NULL },
+{ 300, "modnext_args", "%s(%#x)", NULL, NULL },
+{ 301, "modstat_args", "%s(%#x, %#x)", NULL, NULL },
+{ 21, "mount_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 74, "mprotect_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 511, "msgctl_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 225, "msgget_args", "%s(%#x, %#x)", NULL, NULL },
+{ 227, "msgrcv_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
+{ 226, "msgsnd_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 170, "msgsys_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
+{ 65, "msync_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 204, "munlock_args", "%s(%#x, %#x)", NULL, NULL },
+{ 325, "munlockall_args", NULL, NULL, NULL },
+{ 73, "munmap_args", "%s(%#x, %#x)", NULL, NULL },
+{ 240, "nanosleep_args", "%s(%#x, %#x)", NULL, NULL },
+{ 155, "nfssvc_args", "%s(%#x, %#x)", NULL, NULL },
+{ 154, "nlm_syscall_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 378, "nmount_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 339, "nnpfs_syscall_args", "%s(%#x, %s, %#x, %#x, %#x)", NULL, NULL },
+{ 176, "ntp_adjtime_args", "%s(%#x)", NULL, NULL },
+{ 248, "ntp_gettime_args", "%s(%#x)", NULL, NULL },
+{ 5, "open_args", "%s(%#x, %#x, %o)", NULL, NULL },
+{ 499, "openat_args", "%s(%#x, %#x, %#x, %o)", NULL, NULL },
+{ 191, "pathconf_args", "%s(%#x, %#x)", NULL, NULL },
+{ 518, "pdfork_args", "%s(%#x, %#x)", NULL, NULL },
+{ 520, "pdgetpid_args", "%s(%#x, %#x)", NULL, NULL },
+{ 519, "pdkill_args", "%s(%#x, %#x)", NULL, NULL },
+{ 600, "pdrfork_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 601, "pdwait_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
+{ 542, "pipe2_args", "%s(%#x, %#x)", NULL, NULL },
+{ 209, "poll_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 531, "posix_fadvise_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 530, "posix_fallocate_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 504, "posix_openpt_args", "%s(%#x)", NULL, NULL },
+{ 545, "ppoll_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 475, "pread_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 289, "preadv_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 544, "procctl_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 44, "profil_args", "%s(%s, %#x, %#x, %#x)", NULL, NULL },
+{ 522, "pselect_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
+{ 26, "ptrace_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 476, "pwrite_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 290, "pwritev_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 148, "quotactl_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 528, "rctl_add_rule_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 527, "rctl_get_limits_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 525, "rctl_get_racct_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 526, "rctl_get_rules_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 529, "rctl_remove_rule_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 3, "read_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 58, "readlink_args", "%s(%#x, %s, %#x)", NULL, NULL },
+{ 500, "readlinkat_args", "%s(%#x, %#x, %s, %#x)", NULL, NULL },
+{ 120, "readv_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 55, "reboot_args", "%s(%#x)", NULL, NULL },
+{ 29, "recvfrom_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
+{ 27, "recvmsg_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 128, "rename_args", "%s(%#x, %#x)", NULL, NULL },
+{ 602, "renameat2_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
+{ 501, "renameat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 56, "revoke_args", "%s(%#x)", NULL, NULL },
+{ 251, "rfork_args", "%s(%#x)", NULL, NULL },
+{ 137, "rmdir_args", "%s(%#x)", NULL, NULL },
+{ 576, "rpctls_syscall_args", "%s(%#x)", NULL, NULL },
+{ 166, "rtprio_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 466, "rtprio_thread_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 332, "sched_get_priority_max_args", "%s(%#x)", NULL, NULL },
+{ 333, "sched_get_priority_min_args", "%s(%#x)", NULL, NULL },
+{ 581, "sched_getcpu_args", NULL, NULL, NULL },
+{ 328, "sched_getparam_args", "%s(%#x, %#x)", NULL, NULL },
+{ 330, "sched_getscheduler_args", "%s(%#x)", NULL, NULL },
+{ 334, "sched_rr_get_interval_args", "%s(%#x, %#x)", NULL, NULL },
+{ 327, "sched_setparam_args", "%s(%#x, %#x)", NULL, NULL },
+{ 329, "sched_setscheduler_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 331, "sched_yield_args", NULL, NULL, NULL },
+{ 474, "sctp_generic_recvmsg_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
+{ 472, "sctp_generic_sendmsg_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
+{ 473, "sctp_generic_sendmsg_iov_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
+{ 471, "sctp_peeloff_args", "%s(%#x, %#x)", NULL, NULL },
+{ 93, "select_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
+{ 221, "semget_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 222, "semop_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 169, "semsys_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
+{ 393, "sendfile_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
+{ 28, "sendmsg_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 133, "sendto_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
+{ 452, "setaudit_addr_args", "%s(%#x, %#x)", NULL, NULL },
+{ 450, "setaudit_args", "%s(%#x)", NULL, NULL },
+{ 448, "setauid_args", "%s(%#x)", NULL, NULL },
+{ 422, "setcontext_args", "%s(%#x)", NULL, NULL },
+{ 591, "setcred_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 182, "setegid_args", "%s(%#x)", NULL, NULL },
+{ 183, "seteuid_args", "%s(%#x)", NULL, NULL },
+{ 175, "setfib_args", "%s(%#x)", NULL, NULL },
+{ 181, "setgid_args", "%s(%#x)", NULL, NULL },
+{ 596, "setgroups_args", "%s(%#x, %#x)", NULL, NULL },
+{ 83, "setitimer_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 50, "setlogin_args", "%s(%#x)", NULL, NULL },
+{ 524, "setloginclass_args", "%s(%#x)", NULL, NULL },
+{ 82, "setpgid_args", "%s(%#x, %#x)", NULL, NULL },
+{ 96, "setpriority_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 127, "setregid_args", "%s(%#x, %#x)", NULL, NULL },
+{ 312, "setresgid_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 311, "setresuid_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 126, "setreuid_args", "%s(%#x, %#x)", NULL, NULL },
+{ 195, "setrlimit_args", "%s(%#x, %#x)", NULL, NULL },
+{ 147, "setsid_args", NULL, NULL, NULL },
+{ 105, "setsockopt_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
+{ 122, "settimeofday_args", "%s(%#x, %#x)", NULL, NULL },
+{ 23, "setuid_args", "%s(%#x)", NULL, NULL },
+{ 571, "shm_open2_args", "%s(%#x, %#x, %o, %#x, %#x)", NULL, NULL },
+{ 572, "shm_rename_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 483, "shm_unlink_args", "%s(%#x)", NULL, NULL },
+{ 228, "shmat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 512, "shmctl_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 230, "shmdt_args", "%s(%#x)", NULL, NULL },
+{ 231, "shmget_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 171, "shmsys_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 134, "shutdown_args", "%s(%#x, %#x)", NULL, NULL },
+{ 416, "sigaction_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 53, "sigaltstack_args", "%s(%#x, %#x)", NULL, NULL },
+{ 573, "sigfastblock_args", "%s(%#x, %#x)", NULL, NULL },
+{ 343, "sigpending_args", "%s(%#x)", NULL, NULL },
+{ 340, "sigprocmask_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 456, "sigqueue_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 417, "sigreturn_args", "%s(%#x)", NULL, NULL },
+{ 341, "sigsuspend_args", "%s(%#x)", NULL, NULL },
+{ 345, "sigtimedwait_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 429, "sigwait_args", "%s(%#x, %#x)", NULL, NULL },
+{ 346, "sigwaitinfo_args", "%s(%#x, %#x)", NULL, NULL },
+{ 97, "socket_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 135, "socketpair_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 555, "statfs_args", "%s(%#x, %#x)", NULL, NULL },
+{ 423, "swapcontext_args", "%s(%#x, %#x)", NULL, NULL },
+{ 582, "swapoff_args", "%s(%#x, %#x)", NULL, NULL },
+{ 85, "swapon_args", "%s(%#x)", NULL, NULL },
+{ 57, "symlink_args", "%s(%#x, %#x)", NULL, NULL },
+{ 502, "symlinkat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 36, "sync_args", NULL, NULL, NULL },
+{ 165, "sysarch_args", "%s(%#x, %s)", NULL, NULL },
+{ 430, "thr_create_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 431, "thr_exit_args", "%s(%#x)", NULL, NULL },
+{ 481, "thr_kill2_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 433, "thr_kill_args", "%s(%#x, %#x)", NULL, NULL },
+{ 455, "thr_new_args", "%s(%#x, %#x)", NULL, NULL },
+{ 432, "thr_self_args", "%s(%#x)", NULL, NULL },
+{ 464, "thr_set_name_args", "%s(%#x, %#x)", NULL, NULL },
+{ 442, "thr_suspend_args", "%s(%#x)", NULL, NULL },
+{ 443, "thr_wake_args", "%s(%#x)", NULL, NULL },
+{ 585, "timerfd_create_args", "%s(%#x, %#x)", NULL, NULL },
+{ 586, "timerfd_gettime_args", "%s(%#x, %#x)", NULL, NULL },
+{ 587, "timerfd_settime_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 479, "truncate_args", "%s(%#x, %#x)", NULL, NULL },
+{ 60, "umask_args", "%s(%o)", NULL, NULL },
+{ 205, "undelete_args", "%s(%#x)", NULL, NULL },
+{ 10, "unlink_args", "%s(%#x)", NULL, NULL },
+{ 503, "unlinkat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 22, "unmount_args", "%s(%#x, %#x)", NULL, NULL },
+{ 547, "utimensat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 138, "utimes_args", "%s(%#x, %#x)", NULL, NULL },
+{ 335, "utrace_args", "%s(%#x, %#x)", NULL, NULL },
+{ 392, "uuidgen_args", "%s(%#x, %#x)", NULL, NULL },
+{ 66, "vfork_args", NULL, NULL, NULL },
+{ 7, "wait4_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
+{ 532, "wait6_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
+{ 4, "write_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 121, "writev_args", "%s(%#x, %#x, %#x)", NULL, NULL },
+{ 321, "yield_args", NULL, NULL, NULL },

-- 
2.52.0



^ permalink raw reply related	[flat|nested] 15+ messages in thread

* Re: [PATCH v2 1/5] bsd-user: Add syscall header generator for FreeBSD
  2026-04-29 14:38 ` [PATCH v2 1/5] bsd-user: Add syscall header generator for FreeBSD Warner Losh
@ 2026-04-29 22:30   ` Pierrick Bouvier
  0 siblings, 0 replies; 15+ messages in thread
From: Pierrick Bouvier @ 2026-04-29 22:30 UTC (permalink / raw)
  To: Warner Losh, qemu-devel
  Cc: Kyle Evans, Paolo Bonzini, Marc-André Lureau,
	Daniel P. Berrangé, Philippe Mathieu-Daudé

On 4/29/2026 7:38 AM, Warner Losh wrote:
> Generate the syscall numbers from the installed header that has them.
> Ideally, we'd use FreeBSD's lua infra for this, but that requires that
> we have those files installed, and they aren't quite the same across
> supported versions yet, so use this simple, but effective hack. Add to
> meson build, but unused.
> 
> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> Signed-off-by: Warner Losh <imp@bsdimp.com>
> ---
>  bsd-user/freebsd/meson.build           | 11 ++++++++++-
>  bsd-user/freebsd/scripts/syscallhdr.sh |  9 +++++++++
>  2 files changed, 19 insertions(+), 1 deletion(-)
> 

Reviewed-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH v2 2/5] bsd-user: Delete sbrk and sstk system calls.
  2026-04-29 14:38 ` [PATCH v2 2/5] bsd-user: Delete sbrk and sstk system calls Warner Losh
@ 2026-04-29 22:31   ` Pierrick Bouvier
  0 siblings, 0 replies; 15+ messages in thread
From: Pierrick Bouvier @ 2026-04-29 22:31 UTC (permalink / raw)
  To: Warner Losh, qemu-devel
  Cc: Kyle Evans, Paolo Bonzini, Marc-André Lureau,
	Daniel P. Berrangé, Philippe Mathieu-Daudé

On 4/29/2026 7:38 AM, Warner Losh wrote:
> sbrk and sstk were an experimental system call introduced in 4.2BSD, but
> with an blank implementation. They remained in subsequent 4BSD releases
> doing nothing (with 4.3-Reno and later returning not supported). FreeBSD
> 1.x imported this. They were removed in 2023. Remove them from here
> because no real, non-contrived program on FreeBSD ever had them.
> 
> Signed-off-by: Warner Losh <imp@bsdimp.com>
> ---
>  bsd-user/bsd-mem.h            | 2 ++
>  bsd-user/freebsd/os-syscall.c | 8 --------
>  bsd-user/freebsd/strace.list  | 4 ++++
>  3 files changed, 6 insertions(+), 8 deletions(-)
> 

Reviewed-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH v2 3/5] bsd-user: Create os-syscall.h
  2026-04-29 14:38 ` [PATCH v2 3/5] bsd-user: Create os-syscall.h Warner Losh
@ 2026-04-29 22:33   ` Pierrick Bouvier
  0 siblings, 0 replies; 15+ messages in thread
From: Pierrick Bouvier @ 2026-04-29 22:33 UTC (permalink / raw)
  To: Warner Losh, qemu-devel
  Cc: Kyle Evans, Paolo Bonzini, Marc-André Lureau,
	Daniel P. Berrangé, Philippe Mathieu-Daudé

On 4/29/2026 7:38 AM, Warner Losh wrote:
> Create os-syscall.h. The purpose of this file is to define anything
> that's different among the BSDs, like system call numbers and
> time_t. While there's a lot more different between the BSDs, this is at
> least a start at capturing it.
> 
> Signed-off-by: Warner Losh <imp@bsdimp.com>
> ---
>  bsd-user/freebsd/os-syscall.h | 21 +++++++++++++++++++++
>  1 file changed, 21 insertions(+)
> 

Reviewed-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH v2 4/5] bsd-user: Switch to generated syscall_nr.h
  2026-04-29 14:38 ` [PATCH v2 4/5] bsd-user: Switch to generated syscall_nr.h Warner Losh
@ 2026-04-29 22:33   ` Pierrick Bouvier
  0 siblings, 0 replies; 15+ messages in thread
From: Pierrick Bouvier @ 2026-04-29 22:33 UTC (permalink / raw)
  To: Warner Losh, qemu-devel
  Cc: Kyle Evans, Paolo Bonzini, Marc-André Lureau,
	Daniel P. Berrangé, Philippe Mathieu-Daudé

On 4/29/2026 7:38 AM, Warner Losh wrote:
> Now that this will build and work, remove the old syscall_nr.h and
> switch the include over to the generated file in syscall_defs.h.
> 
> To do this, I had to delete the old, wrong definition of time_t for
> FreeBSD on amd64 since it stumbled over the fact that TARGET_i386 is
> defined for both 32-bit and 64-bit builds (the new os-syscall.h had the
> rigth definition). Rather than modify this file twice to fix it, rolled
> the fix into using os-syscall.h since it's still easy enough to review.
> 
> Signed-off-by: Warner Losh <imp@bsdimp.com>
> ---
>  bsd-user/freebsd/syscall_nr.h | 515 ------------------------------------------
>  bsd-user/syscall_defs.h       |  18 +-
>  2 files changed, 1 insertion(+), 532 deletions(-)
> 

Reviewed-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH v2 5/5] bsd-user: Regnerate strace.list
  2026-04-29 14:38 ` [PATCH v2 5/5] bsd-user: Regnerate strace.list Warner Losh
@ 2026-04-29 22:41   ` Pierrick Bouvier
  2026-04-30  2:21     ` Warner Losh
  2026-04-30  8:18   ` Daniel P. Berrangé
  1 sibling, 1 reply; 15+ messages in thread
From: Pierrick Bouvier @ 2026-04-29 22:41 UTC (permalink / raw)
  To: Warner Losh, qemu-devel
  Cc: Kyle Evans, Paolo Bonzini, Marc-André Lureau,
	Daniel P. Berrangé, Philippe Mathieu-Daudé

On 4/29/2026 7:38 AM, Warner Losh wrote:
> Generate strace.list in a stable way. All FreeBSD system call numbers
> are stable: they always and will forever mean only one thing (even if we
> abandon a syscall number and remove the code from the kernel, we'll
> never reuse it). System calls are the same across all architectures, and
> newer versions just have more of them. Use the number in the generated
> table so we can compile it on any version of FreeBSD.
> 
> Also include the script that I used to generate this. It requires the
> FreeBSD source tree, which is why we can't use it to generate
> strace.list. This depends on the FreeBSD source tree at the moment,
> since it uses the same system call generation machinery that FreeBSD
> uses to generate its system call tables, so we can't connect it to the
> qemu build until that issue is corrected. We've had a terrible strace.list
> for a while, and this will make it better (and there's serious issues
> with strace, just like linux-user, so it's a little-used feature).
>

That's fine for now, and you can eliminate the intree strace.list once
it will be solved.

> Note: I derived this script from one of the FreeBSD system call
> generation scripts, so it needs to be BSD-2-Clause license, which
> deviates a bit from the GPL-2.0-or-newer preference, but I think is OK
> since it's not folded into the qemu binaries themselves (and output of
> scripts is typically public domain, as is the case here). This script is
> written in lua, but every FreeBSD installation has a 'flua' binary that
> can run this script, and it leverages about 7k lines of library and
> metadata FreeBSD maintains well.
>

This sounds like a reasonable requirement given that it will be only
called on FreeBSD hosts.

> Signed-off-by: Warner Losh <imp@bsdimp.com>
> ---
>  bsd-user/freebsd/scripts/strace.lua | 117 ++++++
>  bsd-user/freebsd/strace.list        | 708 ++++++++++++++++++++++--------------
>  2 files changed, 556 insertions(+), 269 deletions(-)
> 
> diff --git a/bsd-user/freebsd/scripts/strace.lua b/bsd-user/freebsd/scripts/strace.lua
> new file mode 100755
> index 0000000000..c89e8e3aeb
> --- /dev/null
> +++ b/bsd-user/freebsd/scripts/strace.lua
> @@ -0,0 +1,117 @@
> +#!/usr/libexec/flua
> +--
> +-- SPDX-License-Identifier: BSD-2-Clause
> +--
> +-- Copyright (c) 2026 Warner Losh <imp@FreeBSD.org>
> +-- Copyright (c) 2024 Tyler Baxter <agge@FreeBSD.org>
> +-- Copyright (c) 2019 Kyle Evans <kevans@FreeBSD.org>
> +--
> +
> +-- Add library root to the package path.
> +local path = arg[0]:gsub("/[^/]+.lua$", "")
> +package.path = package.path .. ";" .. path .. "/?.lua;" .. os.getenv('FREEBSD_SYSCALL_DIR') .. "/?.lua"
> +
> +local FreeBSDSyscall = require("core.freebsd-syscall")
> +local generator = require("tools.generator")
> +local config = require("config")
> +
> +-- File has not been decided yet; config will decide file.  Default defined as
> +-- /dev/null.

Not sure what this comment means, given that it's declared and defined
as stdout on next line.

> +file = "/dev/stdout"
> +
> +function generate(tbl, config, fh)
> +	-- Grab the master system calls table.
> +	local s = tbl.syscalls
> +
> +	table.sort(s, function(a, b)
> +	    return a.arg_alias < b.arg_alias
> +	end)
> +	-- Bind the generator to the parameter file.
> +	local gen = generator:new({}, fh)
> +	gen.storage_levels = {}	-- make sure storage is clear
> +
> +	-- Write the generated preamble.
> +	gen:preamble("FreeBSD strace list\nNOTE: Use syscall numbers so we work on all the branches.")
> +
> +	for _, v in pairs(s) do
> +		local c = v:compatLevel()
> +
> +		-- Handle non-compat:
> +		if v:native() then
> +			-- All these negation conditions are because (in
> +			-- general) these are cases where code for sysproto.h
> +			-- is not generated.
> +			if not v.type.NOARGS and not v.type.NOPROTO and
> +			    not v.type.NODEF then
> +				fmt = "NULL"
> +				fcn = "NULL"
> +				if v.arg_alias == "__sysctl" then
> +					fcn = "print_sysctl"
> +				elseif v.arg_alias == "execve" or v.arg_alias == "fexecve" then
> +					fcn = "print_execve"
> +				elseif v.arg_alias == "ioctl" then
> +					fcn = "print_ioctl"
> +				elseif v.arg_alias == "mmap" then
> +					fcn = "print_mmap"
> +				elseif v.arg_alias == "sysarch" then
> +					fcn = "print_sysarch"
> +				elseif #v.args > 0 then
> +					fmt = "\"%s("
> +					for _, arg in ipairs(v.args) do
> +						if arg.type == "char *" then
> +							fmt = fmt .. "%s, "
> +						elseif arg.type == "mode_t" then
> +							fmt = fmt .. "%o, "
> +						else
> +							fmt = fmt .. "%#x, "
> +						end
> +					end
> +					fmt = fmt:sub(1, -3)  .. ")\""
> +				end
> +				gen:write(string.format(
> +				    "{ %d, \"%s\", %s, %s, NULL },\n",
> +				    v.num, v.arg_alias, fmt, fcn))
> +			end
> +		-- Handle compat (everything >= FREEBSD9):
> +		elseif c >= 9 then
> +			local idx = c * 10
> +			if not v.type.NOARGS and not v.type.NOPROTO and
> +			    not v.type.NODEF then
> +				fmt = "NULL"
> +				if #v.args > 0 then
> +					fmt = "\"%s("
> +					for _, arg in ipairs(v.args) do
> +						if arg.type == "char *" then
> +							fmt = fmt .. "%s, "
> +						elseif arg.type == "mode_t" then
> +							fmt = fmt .. "%o, "
> +						else
> +							fmt = fmt .. "%#x, "
> +						end
> +					end
> +					fmt = fmt:sub(1, -3)  .. ")\""
> +				end
> +				gen:write(string.format(
> +				    "{ %d, \"%s\", %s, %s, NULL },\n",
> +				    v.num, v.arg_alias, fmt, fcn))
> +			end
> +		end
> +		-- Do nothing for obsolete, unimplemented, and reserved.
> +	end
> +end
> +
> +
> +if #arg < 1 or #arg > 2 then
> +	error("usage: " .. arg[0] .. " syscall.master")
> +end
> +
> +local sysfile = arg[1]
> +
> +config.merge(None)
> +config.mergeCompat()
> +
> +-- The parsed system call table.
> +local tbl = FreeBSDSyscall:new{sysfile = sysfile, config = config}
> +
> +file = arg[2] or "/dev/stdout"

I'm not very familiar with lua, but since file has a default value set
to /dev/stdout, I guess it could be?
file = arg[2] or file

> +generate(tbl, config, file)
> diff --git a/bsd-user/freebsd/strace.list b/bsd-user/freebsd/strace.list
> index d7f61f480e..2c4176475a 100644
> --- a/bsd-user/freebsd/strace.list
> +++ b/bsd-user/freebsd/strace.list
> @@ -1,273 +1,443 @@
>  /*
> - *  FreeBSD strace list
> + * FreeBSD strace list
> + * NOTE: Use syscall numbers so we work on all the branches.
>   *
> - *
> - *  This program is free software; you can redistribute it and/or modify
> - *  it under the terms of the GNU General Public License as published by
> - *  the Free Software Foundation; either version 2 of the License, or
> - *  (at your option) any later version.
> - *
> - *  This program is distributed in the hope that it will be useful,
> - *  but WITHOUT ANY WARRANTY; without even the implied warranty of
> - *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> - *  GNU General Public License for more details.
> - *
> - *  You should have received a copy of the GNU General Public License
> - *  along with this program; if not, see <http://www.gnu.org/licenses/>.
> + * DO NOT EDIT-- this file is automatically @generated.
>   */
>  
> -{ TARGET_FREEBSD_NR___acl_aclcheck_fd, "__acl_aclcheck_fd", "%s(%d, %d, %#x)", NULL, NULL },
> -{ TARGET_FREEBSD_NR___acl_aclcheck_file, "__acl_aclcheck_file", "%s(\"%s\", %d, %#x)", NULL, NULL },
> -{ TARGET_FREEBSD_NR___acl_aclcheck_link, "__acl_aclcheck_link", "%s(\"%s\", %d, %#x)", NULL, NULL },
> -{ TARGET_FREEBSD_NR___acl_delete_fd, "__acl_delete_fd", "%s(%d, %d)", NULL, NULL },
> -{ TARGET_FREEBSD_NR___acl_delete_file, "__acl_delete_file", "%s(\"%s\", %d)", NULL, NULL },
> -{ TARGET_FREEBSD_NR___acl_delete_link, "__acl_delete_link", "%s(\"%s\", %d)", NULL, NULL },
> -{ TARGET_FREEBSD_NR___acl_get_fd, "__acl_get_fd", "%s(%d, %d, %#x)", NULL, NULL },
> -{ TARGET_FREEBSD_NR___acl_get_file, "__acl_get_file", "%s(\"%s\", %d, %#x)", NULL, NULL },
> -{ TARGET_FREEBSD_NR___acl_get_link, "__acl_get_link", "%s(\"%s\", %d, %#x)", NULL, NULL },
> -{ TARGET_FREEBSD_NR___acl_set_fd, "__acl_set_fd", "%s(%d, %d, %#x)", NULL, NULL },
> -{ TARGET_FREEBSD_NR___acl_set_file, "__acl_set_file", "%s(\"%s\", %d, %#x)", NULL, NULL },
> -{ TARGET_FREEBSD_NR___acl_set_link, "__acl_set_link", "%s(\"%s\", %d, %#x)", NULL, NULL },
> -{ TARGET_FREEBSD_NR___getcwd, "__getcwd", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR___semctl, "__semctl", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR___syscall, "__syscall", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR___sysctl, "__sysctl", NULL, print_sysctl, NULL },
> -{ TARGET_FREEBSD_NR__umtx_op, "_umtx_op", "%s(%#x, %d, %d, %#x, %#x)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_accept, "accept", "%s(%d,%#x,%#x)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_accept4, "accept4", "%s(%d,%d,%#x,%#x)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_access, "access", "%s(\"%s\",%#o)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_acct, "acct", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_adjtime, "adjtime", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_bind, "bind", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_bindat, "bindat", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_break, "break", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_cap_enter, "cap_enter", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_cap_fcntls_get, "cap_fcntls_get", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_cap_fcntls_limit, "cap_fcntls_limit", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_cap_getmode, "cap_getmode", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_cap_ioctls_get, "cap_ioctls_get", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_cap_ioctls_limit, "cap_ioctls_limit", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_cap_rights_limit, "cap_rights_limit", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_chdir, "chdir", "%s(\"%s\")", NULL, NULL },
> -{ TARGET_FREEBSD_NR_chflags, "chflags", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_chflagsat, "chflagsat", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_chmod, "chmod", "%s(\"%s\",%#o)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_chown, "chown", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_chroot, "chroot", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_clock_getres, "clock_getres", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_clock_gettime, "clock_gettime", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_clock_settime, "clock_settime", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_close, "close", "%s(%d)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_connect, "connect", "%s(%d,%#x,%d)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_connectat, "connectat", "%s(%d,%d,%#x,%d)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_cpuset_getdomain, "cpuset_getdomain", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_cpuset_setdomain, "cpuset_setdomain", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_dup, "dup", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_dup2, "dup2", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_eaccess, "eaccess", "%s(\"%s\",%#x)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_execve, "execve", NULL, print_execve, NULL },
> -{ TARGET_FREEBSD_NR_exit, "exit", "%s(%d)\n", NULL, NULL },
> -{ TARGET_FREEBSD_NR_extattrctl, "extattrctl", "%s(\"%s\", %d, \"%s\", %d, \"%s\"", NULL, NULL },
> -{ TARGET_FREEBSD_NR_extattr_delete_fd, "extattr_delete_fd", "%s(%d, %d, \"%s\")", NULL, NULL },
> -{ TARGET_FREEBSD_NR_extattr_delete_file, "extattr_delete_file", "%s(\"%s\", %d, \"%s\")", NULL, NULL },
> -{ TARGET_FREEBSD_NR_extattr_delete_link, "extattr_delete_link", "%s(\"%s\", %d, \"%s\")", NULL, NULL },
> -{ TARGET_FREEBSD_NR_extattr_get_fd, "extattr_get_fd", "%s(%d, %d, \"%s\", %#x, %d)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_extattr_get_file, "extattr_get_file", "%s(\"%s\", %d, \"%s\", %#x, %d)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_extattr_get_file, "extattr_get_link", "%s(\"%s\", %d, \"%s\", %#x, %d)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_extattr_list_fd, "extattr_list_fd", "%s(%d, %d, %#x, %d)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_extattr_list_file, "extattr_list_file", "%s(\"%s\", %#x, %d)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_extattr_list_link, "extattr_list_link", "%s(\"%s\", %d, %#x, %d)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_extattr_set_fd, "extattr_set_fd", "%s(%d, %d, \"%s\", %#x, %d)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_extattr_set_file, "extattr_set_file", "%s(\"%s\", %d, \"%s\", %#x, %d)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_extattr_set_link, "extattr_set_link", "%s(\"%s\", %d, \"%s\", %#x, %d)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_fchdir, "fchdir", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_fchflags, "fchflags", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_fchmod, "fchmod", "%s(%d,%#o)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_fchown, "fchown", "%s(%d,%d,%d)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_fcntl, "fcntl", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_fdatasync, "fdatasync", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_fexecve, "fexecve", NULL, print_execve, NULL },
> -{ TARGET_FREEBSD_NR_fhopen, "fhopen", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_fhstat, "fhstat", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_fhstatfs, "fhstatfs", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_freebsd11_fhstat, "freebsd11_fhstat", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_freebsd11_fhstatfs, "freebsd11_fhstatfs", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_flock, "flock", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_fork, "fork", "%s()", NULL, NULL },
> -{ TARGET_FREEBSD_NR_fpathconf, "fpathconf", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_fstat, "fstat", "%s(%d,%#x)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_fstatat, "fstatat", "%s(%d,\"%s\", %#x, %d)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_fstatfs, "fstatfs", "%s(%d,%#x)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_freebsd11_fstat, "freebsd11_fstat", "%s(%d,%#x)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_freebsd11_fstatat, "freebsd11_fstatat", "%s(%d,\"%s\", %#x, %d)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_freebsd11_fstatfs, "freebsd11_fstatfs", "%s(%d,%#x)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_fsync, "fsync", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_ftruncate, "ftruncate", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_futimens, "futimens", "%s(%d,%p)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_futimes, "futimes", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_getcontext, "getcontext", "%s(%#x)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_getdirentries, "getdirentries", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_freebsd11_getdirentries, "freebsd11_getdirentries", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_getegid, "getegid", "%s()", NULL, NULL },
> -{ TARGET_FREEBSD_NR_geteuid, "geteuid", "%s()", NULL, NULL },
> -{ TARGET_FREEBSD_NR_getfh, "getfh", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_getfsstat, "getfsstat", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_freebsd11_getfsstat, "freebsd11_getfsstat", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_getgid, "getgid", "%s()", NULL, NULL },
> -{ TARGET_FREEBSD_NR_getgroups, "getgroups", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_getitimer, "getitimer", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_getlogin, "getlogin", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_getpeername, "getpeername", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_getpgid, "getpgid", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_getpgrp, "getpgrp", "%s()", NULL, NULL },
> -{ TARGET_FREEBSD_NR_getpid, "getpid", "%s()", NULL, NULL },
> -{ TARGET_FREEBSD_NR_getppid, "getppid", "%s()", NULL, NULL },
> -{ TARGET_FREEBSD_NR_getpriority, "getpriority", "%s(%#x,%#x)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_getrandom, "getrandom", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_getresgid, "getresgid", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_getresuid, "getresuid", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_getrlimit, "getrlimit", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_getrusage, "getrusage", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_getsid, "getsid", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_getsockname, "getsockname", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_getsockopt, "getsockopt", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_gettimeofday, "gettimeofday", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_getuid, "getuid", "%s()", NULL, NULL },
> -{ TARGET_FREEBSD_NR_ioctl, "ioctl", NULL, print_ioctl, NULL },
> -{ TARGET_FREEBSD_NR_issetugid, "issetugid", "%s()", NULL, NULL },
> -{ TARGET_FREEBSD_NR_freebsd11_kevent, "freebsd11_kevent", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_kevent, "kevent", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_kill, "kill", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_kqueue, "kqueue", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_ktrace, "ktrace", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_lchown, "lchown", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_link, "link", "%s(\"%s\",\"%s\")", NULL, NULL },
> -{ TARGET_FREEBSD_NR_listen, "listen", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_lpathconf, "lpathconf", "%s(\"%s\", %d)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_lseek, "lseek", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_freebsd11_lstat, "freebsd11_lstat", "%s(\"%s\",%p)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_madvise, "madvise", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_mincore, "mincore", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_minherit, "minherit", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_mkdir, "mkdir", "%s(\"%s\",%#o)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_mkfifo, "mkfifo", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_mknodat, "mknodat", "%s(%d, \"%s\",%#o,%#x)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_freebsd11_mknod, "freebsd11_mknod", "%s(\"%s\",%#o,%#x)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_freebsd11_mknodat, "freebsd11_mknodat", "%s(%d, \"%s\",%#o,%#x)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_mlock, "mlock", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_mlockall, "mlockall", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_mmap, "mmap", NULL, NULL, print_syscall_ret_addr },
> -{ TARGET_FREEBSD_NR_mount, "mount", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_mprotect, "mprotect", "%s(%#x,%#x,%d)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_msgctl, "msgctl", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_msgget, "msgget", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_msgrcv, "msgrcv", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_msgsnd, "msgsnd", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_msync, "msync", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_munlock, "munlock", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_munlockall, "munlockall", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_munmap, "munmap", "%s(%p,%d)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_nanosleep, "nanosleep", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_nfssvc, "nfssvc", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_open, "open", "%s(\"%s\",%#x,%#o)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_openat, "openat", "%s(%d, \"%s\",%#x,%#o)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_pathconf, "pathconf", "%s(\"%s\", %d)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_freebsd10_pipe, "freebsd10_pipe", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_pipe2, "pipe2", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_poll, "poll", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_posix_fallocate, "posix_fallocate", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_pread, "pread", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_preadv, "preadv", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_profil, "profil", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_ptrace, "ptrace", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_pwrite, "pwrite", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_pwritev, "pwritev", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_quotactl, "quotactl", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_read, "read", "%s(%d,%#x,%d)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_readlink, "readlink", "%s(\"%s\",%p,%d)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_readv, "readv", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_reboot, "reboot", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_recvfrom, "recvfrom", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_recvmsg, "recvmsg", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_rename, "rename", "%s(\"%s\",\"%s\")", NULL, NULL },
> -{ TARGET_FREEBSD_NR_revoke, "revoke", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_rfork, "rfork", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_rmdir, "rmdir", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_rtprio_thread, "rtprio_thread", "%s(%d, %d, %p)", NULL, NULL },
> -#ifdef TARGET_FREEBSD_NR_sbrk
> -{ TARGET_FREEBSD_NR_sbrk, "sbrk", NULL, NULL, NULL },
> -#endif
> -{ TARGET_FREEBSD_NR_sched_get_priority_max, "sched_get_priority_max", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_sched_get_priority_min, "sched_get_priority_min", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_sched_yield, "sched_yield", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_select, "select", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_semget, "semget", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_semop, "semop", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_sendmsg, "sendmsg", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_sendto, "sendto", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_setcontext, "setcontext", "%s(%#x)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_setegid, "setegid", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_seteuid, "seteuid", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_setgid, "setgid", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_setgroups, "setgroups", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_setitimer, "setitimer", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_setlogin, "setlogin", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_setpgid, "setpgid", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_setpriority, "setpriority", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_setregid, "setregid", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_setresgid, "setresgid", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_setresuid, "setresuid", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_setreuid, "setreuid", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_setrlimit, "setrlimit", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_setsid, "setsid", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_setsockopt, "setsockopt", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_settimeofday, "settimeofday", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_setuid, "setuid", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_shmat, "shmat", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_shmctl, "shmctl", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_shmdt, "shmdt", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_shmget, "shmget", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_shutdown, "shutdown", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_sigaction, "sigaction", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_sigaltstack, "sigaltstack", "%s(%p,%p)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_sigpending, "sigpending", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_sigprocmask, "sigprocmask", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_sigreturn, "sigreturn", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_sigsuspend, "sigsuspend", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_socket, "socket", "%s(%d,%d,%d)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_socketpair, "socketpair", NULL, NULL, NULL },
> -#ifdef TARGET_FREEBSD_NR_sstk
> -{ TARGET_FREEBSD_NR_sstk, "sstk", NULL, NULL, NULL },
> -#endif
> -{ TARGET_FREEBSD_NR_freebsd11_stat, "freebsd11_stat", "%s(\"%s\",%p)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_freebsd11_statfs, "freebsd11_statfs", "%s(\"%s\",%p)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_symlink, "symlink", "%s(\"%s\",\"%s\")", NULL, NULL },
> -{ TARGET_FREEBSD_NR_sync, "sync", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_sysarch, "sysarch", NULL, print_sysarch, NULL },
> -{ TARGET_FREEBSD_NR_syscall, "syscall", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_ktimer_create, "timer_create" , NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_ktimer_delete, "timer_delete" , NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_ktimer_settime, "timer_settime" , NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_ktimer_gettime, "timer_gettime" , NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_ktimer_getoverrun, "timer_getoverrun" , NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_thr_create, "thr_create", "%s(%#x, %#x, %d)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_thr_exit, "thr_exit", "%s(%#x)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_thr_kill, "thr_kill", "%s(%d, %#x)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_thr_kill2, "thr_kill2", "%s(%d, %d, %d)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_thr_new, "thr_new", "%s(%#x, %d)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_thr_self, "thr_self", "%s(%#x)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_thr_set_name, "thr_set_name", "%s(%d, \"%s\")", NULL, NULL },
> -{ TARGET_FREEBSD_NR_thr_suspend, "thr_suspend", "%s(%d, %#x)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_thr_wake, "thr_wake", "%s(%d)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_truncate, "truncate", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_umask, "umask", "%s(%#o)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_unlink, "unlink", "%s(\"%s\")", NULL, NULL },
> -{ TARGET_FREEBSD_NR_unmount, "unmount", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_utimes, "utimes", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_utimensat, "utimensat", "%s(%d,%s,%p,%#x)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_vfork, "vfork", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_wait4, "wait4", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_wait6, "wait6", NULL, NULL, NULL },
> -{ TARGET_FREEBSD_NR_write, "write", "%s(%d,%#x,%d)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_writev, "writev", "%s(%d,%p,%#x)", NULL, NULL },
> -{ TARGET_FREEBSD_NR_posix_openpt, "posix_openpt", "%s(%d)", NULL, NULL },
> +{ 354, "__acl_aclcheck_fd_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 353, "__acl_aclcheck_file_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 428, "__acl_aclcheck_link_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 352, "__acl_delete_fd_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 351, "__acl_delete_file_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 427, "__acl_delete_link_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 349, "__acl_get_fd_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 347, "__acl_get_file_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 425, "__acl_get_link_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 350, "__acl_set_fd_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 348, "__acl_set_file_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 426, "__acl_set_link_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 515, "__cap_rights_get_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 326, "__getcwd_args", "%s(%s, %#x)", NULL, NULL },
> +{ 415, "__mac_execve_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 386, "__mac_get_fd_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 387, "__mac_get_file_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 410, "__mac_get_link_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 409, "__mac_get_pid_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 384, "__mac_get_proc_args", "%s(%#x)", NULL, NULL },
> +{ 388, "__mac_set_fd_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 389, "__mac_set_file_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 411, "__mac_set_link_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 385, "__mac_set_proc_args", "%s(%#x)", NULL, NULL },
> +{ 574, "__realpathat_args", "%s(%#x, %#x, %s, %#x, %#x)", NULL, NULL },
> +{ 510, "__semctl_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 374, "__setugid_args", "%s(%#x)", NULL, NULL },
> +{ 577, "__specialfd_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 202, "__sysctl_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 570, "__sysctlbyname_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 1, "_exit_args", "%s(%#x)", NULL, NULL },
> +{ 454, "_umtx_op_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 463, "abort2_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 541, "accept4_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 30, "accept_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 33, "access_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 51, "acct_args", "%s(%#x)", NULL, NULL },
> +{ 140, "adjtime_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 377, "afs3_syscall_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 316, "aio_cancel_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 317, "aio_error_args", "%s(%#x)", NULL, NULL },
> +{ 465, "aio_fsync_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 543, "aio_mlock_args", "%s(%#x)", NULL, NULL },
> +{ 255, "aio_read_args", "%s(%#x)", NULL, NULL },
> +{ 579, "aio_readv_args", "%s(%#x)", NULL, NULL },
> +{ 314, "aio_return_args", "%s(%#x)", NULL, NULL },
> +{ 315, "aio_suspend_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 359, "aio_waitcomplete_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 256, "aio_write_args", "%s(%#x)", NULL, NULL },
> +{ 578, "aio_writev_args", "%s(%#x)", NULL, NULL },
> +{ 445, "audit_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 453, "auditctl_args", "%s(%#x)", NULL, NULL },
> +{ 446, "auditon_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 104, "bind_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 538, "bindat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 17, "break_args", "%s(%s)", NULL, NULL },
> +{ 516, "cap_enter_args", NULL, NULL, NULL },
> +{ 537, "cap_fcntls_get_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 536, "cap_fcntls_limit_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 517, "cap_getmode_args", "%s(%#x)", NULL, NULL },
> +{ 535, "cap_ioctls_get_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 534, "cap_ioctls_limit_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 533, "cap_rights_limit_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 12, "chdir_args", "%s(%#x)", NULL, NULL },
> +{ 34, "chflags_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 540, "chflagsat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 15, "chmod_args", "%s(%#x, %o)", NULL, NULL },
> +{ 16, "chown_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 61, "chroot_args", "%s(%#x)", NULL, NULL },
> +{ 247, "clock_getcpuclockid2_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 234, "clock_getres_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 232, "clock_gettime_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 244, "clock_nanosleep_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 233, "clock_settime_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 6, "close_args", "%s(%#x)", NULL, NULL },
> +{ 575, "close_range_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 98, "connect_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 539, "connectat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 569, "copy_file_range_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 484, "cpuset_args", "%s(%#x)", NULL, NULL },
> +{ 487, "cpuset_getaffinity_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 561, "cpuset_getdomain_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 486, "cpuset_getid_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 488, "cpuset_setaffinity_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 562, "cpuset_setdomain_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 485, "cpuset_setid_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 90, "dup2_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 41, "dup_args", "%s(%#x)", NULL, NULL },
> +{ 376, "eaccess_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 59, "execve_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 373, "extattr_delete_fd_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 358, "extattr_delete_file_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 414, "extattr_delete_link_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 372, "extattr_get_fd_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 357, "extattr_get_file_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 413, "extattr_get_link_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 437, "extattr_list_fd_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 438, "extattr_list_file_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 439, "extattr_list_link_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 371, "extattr_set_fd_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 356, "extattr_set_file_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 412, "extattr_set_link_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 355, "extattrctl_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 592, "exterrctl_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 489, "faccessat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 13, "fchdir_args", "%s(%#x)", NULL, NULL },
> +{ 35, "fchflags_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 124, "fchmod_args", "%s(%#x, %o)", NULL, NULL },
> +{ 490, "fchmodat_args", "%s(%#x, %#x, %o, %#x)", NULL, NULL },
> +{ 123, "fchown_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 491, "fchownat_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 590, "fchroot_args", "%s(%#x)", NULL, NULL },
> +{ 92, "fcntl_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 550, "fdatasync_args", "%s(%#x)", NULL, NULL },
> +{ 492, "fexecve_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 241, "ffclock_getcounter_args", "%s(%#x)", NULL, NULL },
> +{ 243, "ffclock_getestimate_args", "%s(%#x)", NULL, NULL },
> +{ 242, "ffclock_setestimate_args", "%s(%#x)", NULL, NULL },
> +{ 565, "fhlink_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 566, "fhlinkat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 298, "fhopen_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 567, "fhreadlink_args", "%s(%#x, %s, %#x)", NULL, NULL },
> +{ 553, "fhstat_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 558, "fhstatfs_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 131, "flock_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 2, "fork_args", NULL, NULL, NULL },
> +{ 192, "fpathconf_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 434, "freebsd10__umtx_lock_args", "%s(%#x)", NULL, NULL },
> +{ 435, "freebsd10__umtx_unlock_args", "%s(%#x)", NULL, NULL },
> +{ 42, "freebsd10_pipe_args", NULL, NULL, NULL },
> +{ 299, "freebsd11_fhstat_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 398, "freebsd11_fhstatfs_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 189, "freebsd11_fstat_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 493, "freebsd11_fstatat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 397, "freebsd11_fstatfs_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 272, "freebsd11_getdents_args", "%s(%#x, %s, %#x)", NULL, NULL },
> +{ 196, "freebsd11_getdirentries_args", "%s(%#x, %s, %#x, %#x)", NULL, NULL },
> +{ 395, "freebsd11_getfsstat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 363, "freebsd11_kevent_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 190, "freebsd11_lstat_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 14, "freebsd11_mknod_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 498, "freebsd11_mknodat_args", "%s(%#x, %#x, %o, %#x)", NULL, NULL },
> +{ 279, "freebsd11_nfstat_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 280, "freebsd11_nlstat_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 278, "freebsd11_nstat_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 188, "freebsd11_stat_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 396, "freebsd11_statfs_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 72, "freebsd11_vadvise_args", "%s(%#x)", NULL, NULL },
> +{ 509, "freebsd12_closefrom_args", "%s(%#x)", NULL, NULL },
> +{ 482, "freebsd12_shm_open_args", "%s(%#x, %#x, %o)", NULL, NULL },
> +{ 424, "freebsd13_swapoff_args", "%s(%#x)", NULL, NULL },
> +{ 79, "freebsd14_getgroups_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 80, "freebsd14_setgroups_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 580, "fspacectl_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 551, "fstat_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 552, "fstatat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 556, "fstatfs_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 95, "fsync_args", "%s(%#x)", NULL, NULL },
> +{ 480, "ftruncate_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 568, "funlinkat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 546, "futimens_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 206, "futimes_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 494, "futimesat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 451, "getaudit_addr_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 449, "getaudit_args", "%s(%#x)", NULL, NULL },
> +{ 447, "getauid_args", "%s(%#x)", NULL, NULL },
> +{ 421, "getcontext_args", "%s(%#x)", NULL, NULL },
> +{ 554, "getdirentries_args", "%s(%#x, %s, %#x, %#x)", NULL, NULL },
> +{ 89, "getdtablesize_args", NULL, NULL, NULL },
> +{ 43, "getegid_args", NULL, NULL, NULL },
> +{ 25, "geteuid_args", NULL, NULL, NULL },
> +{ 161, "getfh_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 564, "getfhat_args", "%s(%#x, %s, %#x, %#x)", NULL, NULL },
> +{ 557, "getfsstat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 47, "getgid_args", NULL, NULL, NULL },
> +{ 595, "getgroups_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 86, "getitimer_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 49, "getlogin_args", "%s(%s, %#x)", NULL, NULL },
> +{ 523, "getloginclass_args", "%s(%s, %#x)", NULL, NULL },
> +{ 31, "getpeername_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 207, "getpgid_args", "%s(%#x)", NULL, NULL },
> +{ 81, "getpgrp_args", NULL, NULL, NULL },
> +{ 20, "getpid_args", NULL, NULL, NULL },
> +{ 39, "getppid_args", NULL, NULL, NULL },
> +{ 100, "getpriority_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 563, "getrandom_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 361, "getresgid_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 360, "getresuid_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 194, "getrlimit_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 589, "getrlimitusage_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 117, "getrusage_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 310, "getsid_args", "%s(%#x)", NULL, NULL },
> +{ 32, "getsockname_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 118, "getsockopt_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 116, "gettimeofday_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 24, "getuid_args", NULL, NULL, NULL },
> +{ 593, "inotify_add_watch_at_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 594, "inotify_rm_watch_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 54, "ioctl_args", "%s(%#x, %#x, %s)", NULL, NULL },
> +{ 253, "issetugid_args", NULL, NULL, NULL },
> +{ 338, "jail_args", "%s(%#x)", NULL, NULL },
> +{ 436, "jail_attach_args", "%s(%#x)", NULL, NULL },
> +{ 597, "jail_attach_jd_args", "%s(%#x)", NULL, NULL },
> +{ 506, "jail_get_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 508, "jail_remove_args", "%s(%#x)", NULL, NULL },
> +{ 598, "jail_remove_jd_args", "%s(%#x)", NULL, NULL },
> +{ 507, "jail_set_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 588, "kcmp_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 390, "kenv_args", "%s(%#x, %#x, %s, %#x)", NULL, NULL },
> +{ 560, "kevent_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 599, "kexec_load_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 37, "kill_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 306, "kldfind_args", "%s(%#x)", NULL, NULL },
> +{ 309, "kldfirstmod_args", "%s(%#x)", NULL, NULL },
> +{ 304, "kldload_args", "%s(%#x)", NULL, NULL },
> +{ 307, "kldnext_args", "%s(%#x)", NULL, NULL },
> +{ 308, "kldstat_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 337, "kldsym_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 305, "kldunload_args", "%s(%#x)", NULL, NULL },
> +{ 444, "kldunloadf_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 461, "kmq_notify_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 457, "kmq_open_args", "%s(%#x, %#x, %o, %#x)", NULL, NULL },
> +{ 458, "kmq_setattr_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 459, "kmq_timedreceive_args", "%s(%#x, %s, %#x, %#x, %#x)", NULL, NULL },
> +{ 460, "kmq_timedsend_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 462, "kmq_unlink_args", "%s(%#x)", NULL, NULL },
> +{ 362, "kqueue_args", NULL, NULL, NULL },
> +{ 583, "kqueuex_args", "%s(%#x)", NULL, NULL },
> +{ 400, "ksem_close_args", "%s(%#x)", NULL, NULL },
> +{ 408, "ksem_destroy_args", "%s(%#x)", NULL, NULL },
> +{ 407, "ksem_getvalue_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 404, "ksem_init_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 405, "ksem_open_args", "%s(%#x, %#x, %#x, %o, %#x)", NULL, NULL },
> +{ 401, "ksem_post_args", "%s(%#x)", NULL, NULL },
> +{ 441, "ksem_timedwait_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 403, "ksem_trywait_args", "%s(%#x)", NULL, NULL },
> +{ 406, "ksem_unlink_args", "%s(%#x)", NULL, NULL },
> +{ 402, "ksem_wait_args", "%s(%#x)", NULL, NULL },
> +{ 235, "ktimer_create_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 236, "ktimer_delete_args", "%s(%#x)", NULL, NULL },
> +{ 239, "ktimer_getoverrun_args", "%s(%#x)", NULL, NULL },
> +{ 238, "ktimer_gettime_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 237, "ktimer_settime_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 45, "ktrace_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 391, "lchflags_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 274, "lchmod_args", "%s(%#x, %o)", NULL, NULL },
> +{ 254, "lchown_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 160, "lgetfh_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 9, "link_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 495, "linkat_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 257, "lio_listio_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 106, "listen_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 513, "lpathconf_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 478, "lseek_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 276, "lutimes_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 394, "mac_syscall_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 75, "madvise_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 584, "membarrier_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 78, "mincore_args", "%s(%#x, %#x, %s)", NULL, NULL },
> +{ 250, "minherit_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 136, "mkdir_args", "%s(%#x, %o)", NULL, NULL },
> +{ 496, "mkdirat_args", "%s(%#x, %#x, %o)", NULL, NULL },
> +{ 132, "mkfifo_args", "%s(%#x, %o)", NULL, NULL },
> +{ 497, "mkfifoat_args", "%s(%#x, %#x, %o)", NULL, NULL },
> +{ 559, "mknodat_args", "%s(%#x, %#x, %o, %#x)", NULL, NULL },
> +{ 203, "mlock_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 324, "mlockall_args", "%s(%#x)", NULL, NULL },
> +{ 477, "mmap_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 303, "modfind_args", "%s(%#x)", NULL, NULL },
> +{ 302, "modfnext_args", "%s(%#x)", NULL, NULL },
> +{ 300, "modnext_args", "%s(%#x)", NULL, NULL },
> +{ 301, "modstat_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 21, "mount_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 74, "mprotect_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 511, "msgctl_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 225, "msgget_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 227, "msgrcv_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 226, "msgsnd_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 170, "msgsys_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 65, "msync_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 204, "munlock_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 325, "munlockall_args", NULL, NULL, NULL },
> +{ 73, "munmap_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 240, "nanosleep_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 155, "nfssvc_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 154, "nlm_syscall_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 378, "nmount_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 339, "nnpfs_syscall_args", "%s(%#x, %s, %#x, %#x, %#x)", NULL, NULL },
> +{ 176, "ntp_adjtime_args", "%s(%#x)", NULL, NULL },
> +{ 248, "ntp_gettime_args", "%s(%#x)", NULL, NULL },
> +{ 5, "open_args", "%s(%#x, %#x, %o)", NULL, NULL },
> +{ 499, "openat_args", "%s(%#x, %#x, %#x, %o)", NULL, NULL },
> +{ 191, "pathconf_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 518, "pdfork_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 520, "pdgetpid_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 519, "pdkill_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 600, "pdrfork_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 601, "pdwait_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 542, "pipe2_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 209, "poll_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 531, "posix_fadvise_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 530, "posix_fallocate_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 504, "posix_openpt_args", "%s(%#x)", NULL, NULL },
> +{ 545, "ppoll_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 475, "pread_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 289, "preadv_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 544, "procctl_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 44, "profil_args", "%s(%s, %#x, %#x, %#x)", NULL, NULL },
> +{ 522, "pselect_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 26, "ptrace_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 476, "pwrite_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 290, "pwritev_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 148, "quotactl_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 528, "rctl_add_rule_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 527, "rctl_get_limits_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 525, "rctl_get_racct_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 526, "rctl_get_rules_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 529, "rctl_remove_rule_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 3, "read_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 58, "readlink_args", "%s(%#x, %s, %#x)", NULL, NULL },
> +{ 500, "readlinkat_args", "%s(%#x, %#x, %s, %#x)", NULL, NULL },
> +{ 120, "readv_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 55, "reboot_args", "%s(%#x)", NULL, NULL },
> +{ 29, "recvfrom_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 27, "recvmsg_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 128, "rename_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 602, "renameat2_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 501, "renameat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 56, "revoke_args", "%s(%#x)", NULL, NULL },
> +{ 251, "rfork_args", "%s(%#x)", NULL, NULL },
> +{ 137, "rmdir_args", "%s(%#x)", NULL, NULL },
> +{ 576, "rpctls_syscall_args", "%s(%#x)", NULL, NULL },
> +{ 166, "rtprio_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 466, "rtprio_thread_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 332, "sched_get_priority_max_args", "%s(%#x)", NULL, NULL },
> +{ 333, "sched_get_priority_min_args", "%s(%#x)", NULL, NULL },
> +{ 581, "sched_getcpu_args", NULL, NULL, NULL },
> +{ 328, "sched_getparam_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 330, "sched_getscheduler_args", "%s(%#x)", NULL, NULL },
> +{ 334, "sched_rr_get_interval_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 327, "sched_setparam_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 329, "sched_setscheduler_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 331, "sched_yield_args", NULL, NULL, NULL },
> +{ 474, "sctp_generic_recvmsg_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 472, "sctp_generic_sendmsg_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 473, "sctp_generic_sendmsg_iov_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 471, "sctp_peeloff_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 93, "select_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 221, "semget_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 222, "semop_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 169, "semsys_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 393, "sendfile_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 28, "sendmsg_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 133, "sendto_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 452, "setaudit_addr_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 450, "setaudit_args", "%s(%#x)", NULL, NULL },
> +{ 448, "setauid_args", "%s(%#x)", NULL, NULL },
> +{ 422, "setcontext_args", "%s(%#x)", NULL, NULL },
> +{ 591, "setcred_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 182, "setegid_args", "%s(%#x)", NULL, NULL },
> +{ 183, "seteuid_args", "%s(%#x)", NULL, NULL },
> +{ 175, "setfib_args", "%s(%#x)", NULL, NULL },
> +{ 181, "setgid_args", "%s(%#x)", NULL, NULL },
> +{ 596, "setgroups_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 83, "setitimer_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 50, "setlogin_args", "%s(%#x)", NULL, NULL },
> +{ 524, "setloginclass_args", "%s(%#x)", NULL, NULL },
> +{ 82, "setpgid_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 96, "setpriority_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 127, "setregid_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 312, "setresgid_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 311, "setresuid_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 126, "setreuid_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 195, "setrlimit_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 147, "setsid_args", NULL, NULL, NULL },
> +{ 105, "setsockopt_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 122, "settimeofday_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 23, "setuid_args", "%s(%#x)", NULL, NULL },
> +{ 571, "shm_open2_args", "%s(%#x, %#x, %o, %#x, %#x)", NULL, NULL },
> +{ 572, "shm_rename_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 483, "shm_unlink_args", "%s(%#x)", NULL, NULL },
> +{ 228, "shmat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 512, "shmctl_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 230, "shmdt_args", "%s(%#x)", NULL, NULL },
> +{ 231, "shmget_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 171, "shmsys_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 134, "shutdown_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 416, "sigaction_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 53, "sigaltstack_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 573, "sigfastblock_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 343, "sigpending_args", "%s(%#x)", NULL, NULL },
> +{ 340, "sigprocmask_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 456, "sigqueue_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 417, "sigreturn_args", "%s(%#x)", NULL, NULL },
> +{ 341, "sigsuspend_args", "%s(%#x)", NULL, NULL },
> +{ 345, "sigtimedwait_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 429, "sigwait_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 346, "sigwaitinfo_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 97, "socket_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 135, "socketpair_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 555, "statfs_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 423, "swapcontext_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 582, "swapoff_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 85, "swapon_args", "%s(%#x)", NULL, NULL },
> +{ 57, "symlink_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 502, "symlinkat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 36, "sync_args", NULL, NULL, NULL },
> +{ 165, "sysarch_args", "%s(%#x, %s)", NULL, NULL },
> +{ 430, "thr_create_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 431, "thr_exit_args", "%s(%#x)", NULL, NULL },
> +{ 481, "thr_kill2_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 433, "thr_kill_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 455, "thr_new_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 432, "thr_self_args", "%s(%#x)", NULL, NULL },
> +{ 464, "thr_set_name_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 442, "thr_suspend_args", "%s(%#x)", NULL, NULL },
> +{ 443, "thr_wake_args", "%s(%#x)", NULL, NULL },
> +{ 585, "timerfd_create_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 586, "timerfd_gettime_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 587, "timerfd_settime_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 479, "truncate_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 60, "umask_args", "%s(%o)", NULL, NULL },
> +{ 205, "undelete_args", "%s(%#x)", NULL, NULL },
> +{ 10, "unlink_args", "%s(%#x)", NULL, NULL },
> +{ 503, "unlinkat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 22, "unmount_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 547, "utimensat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 138, "utimes_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 335, "utrace_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 392, "uuidgen_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 66, "vfork_args", NULL, NULL, NULL },
> +{ 7, "wait4_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 532, "wait6_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 4, "write_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 121, "writev_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 321, "yield_args", NULL, NULL, NULL },
> 

Overall looks good, and my comments on file variable should not be blocking.

Reviewed-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>

Regards,
Pierrick


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH v2 5/5] bsd-user: Regnerate strace.list
  2026-04-29 22:41   ` Pierrick Bouvier
@ 2026-04-30  2:21     ` Warner Losh
  0 siblings, 0 replies; 15+ messages in thread
From: Warner Losh @ 2026-04-30  2:21 UTC (permalink / raw)
  To: Pierrick Bouvier
  Cc: qemu-devel, Kyle Evans, Paolo Bonzini, Marc-André Lureau,
	Daniel P. Berrangé, Philippe Mathieu-Daudé

[-- Attachment #1: Type: text/plain, Size: 57467 bytes --]

On Wed, Apr 29, 2026 at 4:41 PM Pierrick Bouvier <
pierrick.bouvier@oss.qualcomm.com> wrote:

> On 4/29/2026 7:38 AM, Warner Losh wrote:
> > Generate strace.list in a stable way. All FreeBSD system call numbers
> > are stable: they always and will forever mean only one thing (even if we
> > abandon a syscall number and remove the code from the kernel, we'll
> > never reuse it). System calls are the same across all architectures, and
> > newer versions just have more of them. Use the number in the generated
> > table so we can compile it on any version of FreeBSD.
> >
> > Also include the script that I used to generate this. It requires the
> > FreeBSD source tree, which is why we can't use it to generate
> > strace.list. This depends on the FreeBSD source tree at the moment,
> > since it uses the same system call generation machinery that FreeBSD
> > uses to generate its system call tables, so we can't connect it to the
> > qemu build until that issue is corrected. We've had a terrible
> strace.list
> > for a while, and this will make it better (and there's serious issues
> > with strace, just like linux-user, so it's a little-used feature).
> >
>
> That's fine for now, and you can eliminate the intree strace.list once
> it will be solved.
>

Yes. That's the plan.


> > Note: I derived this script from one of the FreeBSD system call
> > generation scripts, so it needs to be BSD-2-Clause license, which
> > deviates a bit from the GPL-2.0-or-newer preference, but I think is OK
> > since it's not folded into the qemu binaries themselves (and output of
> > scripts is typically public domain, as is the case here). This script is
> > written in lua, but every FreeBSD installation has a 'flua' binary that
> > can run this script, and it leverages about 7k lines of library and
> > metadata FreeBSD maintains well.
> >
>
> This sounds like a reasonable requirement given that it will be only
> called on FreeBSD hosts.
>
> > Signed-off-by: Warner Losh <imp@bsdimp.com>
> > ---
> >  bsd-user/freebsd/scripts/strace.lua | 117 ++++++
> >  bsd-user/freebsd/strace.list        | 708
> ++++++++++++++++++++++--------------
> >  2 files changed, 556 insertions(+), 269 deletions(-)
> >
> > diff --git a/bsd-user/freebsd/scripts/strace.lua
> b/bsd-user/freebsd/scripts/strace.lua
> > new file mode 100755
> > index 0000000000..c89e8e3aeb
> > --- /dev/null
> > +++ b/bsd-user/freebsd/scripts/strace.lua
> > @@ -0,0 +1,117 @@
> > +#!/usr/libexec/flua
> > +--
> > +-- SPDX-License-Identifier: BSD-2-Clause
> > +--
> > +-- Copyright (c) 2026 Warner Losh <imp@FreeBSD.org>
> > +-- Copyright (c) 2024 Tyler Baxter <agge@FreeBSD.org>
> > +-- Copyright (c) 2019 Kyle Evans <kevans@FreeBSD.org>
> > +--
> > +
> > +-- Add library root to the package path.
> > +local path = arg[0]:gsub("/[^/]+.lua$", "")
> > +package.path = package.path .. ";" .. path .. "/?.lua;" ..
> os.getenv('FREEBSD_SYSCALL_DIR') .. "/?.lua"
> > +
> > +local FreeBSDSyscall = require("core.freebsd-syscall")
> > +local generator = require("tools.generator")
> > +local config = require("config")
> > +
> > +-- File has not been decided yet; config will decide file.  Default
> defined as
> > +-- /dev/null.
>
> Not sure what this comment means, given that it's declared and defined
> as stdout on next line
>

The comment is wrong. It was copied from what I started with and is bogus.
I'll fix that.


> > +file = "/dev/stdout"
> > +
> > +function generate(tbl, config, fh)
> > +     -- Grab the master system calls table.
> > +     local s = tbl.syscalls
> > +
> > +     table.sort(s, function(a, b)
> > +         return a.arg_alias < b.arg_alias
> > +     end)
> > +     -- Bind the generator to the parameter file.
> > +     local gen = generator:new({}, fh)
> > +     gen.storage_levels = {} -- make sure storage is clear
> > +
> > +     -- Write the generated preamble.
> > +     gen:preamble("FreeBSD strace list\nNOTE: Use syscall numbers so we
> work on all the branches.")
> > +
> > +     for _, v in pairs(s) do
> > +             local c = v:compatLevel()
> > +
> > +             -- Handle non-compat:
> > +             if v:native() then
> > +                     -- All these negation conditions are because (in
> > +                     -- general) these are cases where code for
> sysproto.h
> > +                     -- is not generated.
> > +                     if not v.type.NOARGS and not v.type.NOPROTO and
> > +                         not v.type.NODEF then
> > +                             fmt = "NULL"
> > +                             fcn = "NULL"
> > +                             if v.arg_alias == "__sysctl" then
> > +                                     fcn = "print_sysctl"
> > +                             elseif v.arg_alias == "execve" or
> v.arg_alias == "fexecve" then
> > +                                     fcn = "print_execve"
> > +                             elseif v.arg_alias == "ioctl" then
> > +                                     fcn = "print_ioctl"
> > +                             elseif v.arg_alias == "mmap" then
> > +                                     fcn = "print_mmap"
> > +                             elseif v.arg_alias == "sysarch" then
> > +                                     fcn = "print_sysarch"
> > +                             elseif #v.args > 0 then
> > +                                     fmt = "\"%s("
> > +                                     for _, arg in ipairs(v.args) do
> > +                                             if arg.type == "char *"
> then
> > +                                                     fmt = fmt .. "%s, "
> > +                                             elseif arg.type ==
> "mode_t" then
> > +                                                     fmt = fmt .. "%o, "
> > +                                             else
> > +                                                     fmt = fmt .. "%#x,
> "
> > +                                             end
> > +                                     end
> > +                                     fmt = fmt:sub(1, -3)  .. ")\""
> > +                             end
> > +                             gen:write(string.format(
> > +                                 "{ %d, \"%s\", %s, %s, NULL },\n",
> > +                                 v.num, v.arg_alias, fmt, fcn))
> > +                     end
> > +             -- Handle compat (everything >= FREEBSD9):
> > +             elseif c >= 9 then
> > +                     local idx = c * 10
> > +                     if not v.type.NOARGS and not v.type.NOPROTO and
> > +                         not v.type.NODEF then
> > +                             fmt = "NULL"
> > +                             if #v.args > 0 then
> > +                                     fmt = "\"%s("
> > +                                     for _, arg in ipairs(v.args) do
> > +                                             if arg.type == "char *"
> then
> > +                                                     fmt = fmt .. "%s, "
> > +                                             elseif arg.type ==
> "mode_t" then
> > +                                                     fmt = fmt .. "%o, "
> > +                                             else
> > +                                                     fmt = fmt .. "%#x,
> "
> > +                                             end
> > +                                     end
> > +                                     fmt = fmt:sub(1, -3)  .. ")\""
> > +                             end
> > +                             gen:write(string.format(
> > +                                 "{ %d, \"%s\", %s, %s, NULL },\n",
> > +                                 v.num, v.arg_alias, fmt, fcn))
> > +                     end
> > +             end
> > +             -- Do nothing for obsolete, unimplemented, and reserved.
> > +     end
> > +end
> > +
> > +
> > +if #arg < 1 or #arg > 2 then
> > +     error("usage: " .. arg[0] .. " syscall.master")
> > +end
> > +
> > +local sysfile = arg[1]
> > +
> > +config.merge(None)
> > +config.mergeCompat()
> > +
> > +-- The parsed system call table.
> > +local tbl = FreeBSDSyscall:new{sysfile = sysfile, config = config}
> > +
> > +file = arg[2] or "/dev/stdout"
>
> I'm not very familiar with lua, but since file has a default value set
> to /dev/stdout, I guess it could be?
> file = arg[2] or file
>

Yea, this is just me being a little sloppy. I'll clean it up since I really
shouldn't have
the stuff at the top of the file and here. But you're intuition is right,
as written,
it would be better as 'or file' here. I'll fix that in the next iteration.

Warner


> > +generate(tbl, config, file)
> > diff --git a/bsd-user/freebsd/strace.list b/bsd-user/freebsd/strace.list
> > index d7f61f480e..2c4176475a 100644
> > --- a/bsd-user/freebsd/strace.list
> > +++ b/bsd-user/freebsd/strace.list
> > @@ -1,273 +1,443 @@
> >  /*
> > - *  FreeBSD strace list
> > + * FreeBSD strace list
> > + * NOTE: Use syscall numbers so we work on all the branches.
> >   *
> > - *
> > - *  This program is free software; you can redistribute it and/or modify
> > - *  it under the terms of the GNU General Public License as published by
> > - *  the Free Software Foundation; either version 2 of the License, or
> > - *  (at your option) any later version.
> > - *
> > - *  This program is distributed in the hope that it will be useful,
> > - *  but WITHOUT ANY WARRANTY; without even the implied warranty of
> > - *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> > - *  GNU General Public License for more details.
> > - *
> > - *  You should have received a copy of the GNU General Public License
> > - *  along with this program; if not, see <http://www.gnu.org/licenses/
> >.
> > + * DO NOT EDIT-- this file is automatically @generated.
> >   */
> >
> > -{ TARGET_FREEBSD_NR___acl_aclcheck_fd, "__acl_aclcheck_fd", "%s(%d, %d,
> %#x)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR___acl_aclcheck_file, "__acl_aclcheck_file",
> "%s(\"%s\", %d, %#x)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR___acl_aclcheck_link, "__acl_aclcheck_link",
> "%s(\"%s\", %d, %#x)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR___acl_delete_fd, "__acl_delete_fd", "%s(%d, %d)",
> NULL, NULL },
> > -{ TARGET_FREEBSD_NR___acl_delete_file, "__acl_delete_file", "%s(\"%s\",
> %d)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR___acl_delete_link, "__acl_delete_link", "%s(\"%s\",
> %d)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR___acl_get_fd, "__acl_get_fd", "%s(%d, %d, %#x)",
> NULL, NULL },
> > -{ TARGET_FREEBSD_NR___acl_get_file, "__acl_get_file", "%s(\"%s\", %d,
> %#x)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR___acl_get_link, "__acl_get_link", "%s(\"%s\", %d,
> %#x)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR___acl_set_fd, "__acl_set_fd", "%s(%d, %d, %#x)",
> NULL, NULL },
> > -{ TARGET_FREEBSD_NR___acl_set_file, "__acl_set_file", "%s(\"%s\", %d,
> %#x)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR___acl_set_link, "__acl_set_link", "%s(\"%s\", %d,
> %#x)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR___getcwd, "__getcwd", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR___semctl, "__semctl", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR___syscall, "__syscall", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR___sysctl, "__sysctl", NULL, print_sysctl, NULL },
> > -{ TARGET_FREEBSD_NR__umtx_op, "_umtx_op", "%s(%#x, %d, %d, %#x, %#x)",
> NULL, NULL },
> > -{ TARGET_FREEBSD_NR_accept, "accept", "%s(%d,%#x,%#x)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_accept4, "accept4", "%s(%d,%d,%#x,%#x)", NULL, NULL
> },
> > -{ TARGET_FREEBSD_NR_access, "access", "%s(\"%s\",%#o)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_acct, "acct", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_adjtime, "adjtime", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_bind, "bind", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_bindat, "bindat", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_break, "break", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_cap_enter, "cap_enter", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_cap_fcntls_get, "cap_fcntls_get", NULL, NULL, NULL
> },
> > -{ TARGET_FREEBSD_NR_cap_fcntls_limit, "cap_fcntls_limit", NULL, NULL,
> NULL },
> > -{ TARGET_FREEBSD_NR_cap_getmode, "cap_getmode", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_cap_ioctls_get, "cap_ioctls_get", NULL, NULL, NULL
> },
> > -{ TARGET_FREEBSD_NR_cap_ioctls_limit, "cap_ioctls_limit", NULL, NULL,
> NULL },
> > -{ TARGET_FREEBSD_NR_cap_rights_limit, "cap_rights_limit", NULL, NULL,
> NULL },
> > -{ TARGET_FREEBSD_NR_chdir, "chdir", "%s(\"%s\")", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_chflags, "chflags", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_chflagsat, "chflagsat", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_chmod, "chmod", "%s(\"%s\",%#o)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_chown, "chown", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_chroot, "chroot", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_clock_getres, "clock_getres", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_clock_gettime, "clock_gettime", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_clock_settime, "clock_settime", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_close, "close", "%s(%d)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_connect, "connect", "%s(%d,%#x,%d)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_connectat, "connectat", "%s(%d,%d,%#x,%d)", NULL,
> NULL },
> > -{ TARGET_FREEBSD_NR_cpuset_getdomain, "cpuset_getdomain", NULL, NULL,
> NULL },
> > -{ TARGET_FREEBSD_NR_cpuset_setdomain, "cpuset_setdomain", NULL, NULL,
> NULL },
> > -{ TARGET_FREEBSD_NR_dup, "dup", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_dup2, "dup2", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_eaccess, "eaccess", "%s(\"%s\",%#x)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_execve, "execve", NULL, print_execve, NULL },
> > -{ TARGET_FREEBSD_NR_exit, "exit", "%s(%d)\n", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_extattrctl, "extattrctl", "%s(\"%s\", %d, \"%s\",
> %d, \"%s\"", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_extattr_delete_fd, "extattr_delete_fd", "%s(%d, %d,
> \"%s\")", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_extattr_delete_file, "extattr_delete_file",
> "%s(\"%s\", %d, \"%s\")", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_extattr_delete_link, "extattr_delete_link",
> "%s(\"%s\", %d, \"%s\")", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_extattr_get_fd, "extattr_get_fd", "%s(%d, %d,
> \"%s\", %#x, %d)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_extattr_get_file, "extattr_get_file", "%s(\"%s\",
> %d, \"%s\", %#x, %d)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_extattr_get_file, "extattr_get_link", "%s(\"%s\",
> %d, \"%s\", %#x, %d)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_extattr_list_fd, "extattr_list_fd", "%s(%d, %d,
> %#x, %d)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_extattr_list_file, "extattr_list_file", "%s(\"%s\",
> %#x, %d)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_extattr_list_link, "extattr_list_link", "%s(\"%s\",
> %d, %#x, %d)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_extattr_set_fd, "extattr_set_fd", "%s(%d, %d,
> \"%s\", %#x, %d)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_extattr_set_file, "extattr_set_file", "%s(\"%s\",
> %d, \"%s\", %#x, %d)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_extattr_set_link, "extattr_set_link", "%s(\"%s\",
> %d, \"%s\", %#x, %d)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_fchdir, "fchdir", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_fchflags, "fchflags", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_fchmod, "fchmod", "%s(%d,%#o)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_fchown, "fchown", "%s(%d,%d,%d)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_fcntl, "fcntl", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_fdatasync, "fdatasync", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_fexecve, "fexecve", NULL, print_execve, NULL },
> > -{ TARGET_FREEBSD_NR_fhopen, "fhopen", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_fhstat, "fhstat", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_fhstatfs, "fhstatfs", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_freebsd11_fhstat, "freebsd11_fhstat", NULL, NULL,
> NULL },
> > -{ TARGET_FREEBSD_NR_freebsd11_fhstatfs, "freebsd11_fhstatfs", NULL,
> NULL, NULL },
> > -{ TARGET_FREEBSD_NR_flock, "flock", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_fork, "fork", "%s()", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_fpathconf, "fpathconf", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_fstat, "fstat", "%s(%d,%#x)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_fstatat, "fstatat", "%s(%d,\"%s\", %#x, %d)", NULL,
> NULL },
> > -{ TARGET_FREEBSD_NR_fstatfs, "fstatfs", "%s(%d,%#x)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_freebsd11_fstat, "freebsd11_fstat", "%s(%d,%#x)",
> NULL, NULL },
> > -{ TARGET_FREEBSD_NR_freebsd11_fstatat, "freebsd11_fstatat",
> "%s(%d,\"%s\", %#x, %d)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_freebsd11_fstatfs, "freebsd11_fstatfs",
> "%s(%d,%#x)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_fsync, "fsync", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_ftruncate, "ftruncate", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_futimens, "futimens", "%s(%d,%p)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_futimes, "futimes", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_getcontext, "getcontext", "%s(%#x)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_getdirentries, "getdirentries", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_freebsd11_getdirentries, "freebsd11_getdirentries",
> NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_getegid, "getegid", "%s()", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_geteuid, "geteuid", "%s()", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_getfh, "getfh", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_getfsstat, "getfsstat", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_freebsd11_getfsstat, "freebsd11_getfsstat", NULL,
> NULL, NULL },
> > -{ TARGET_FREEBSD_NR_getgid, "getgid", "%s()", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_getgroups, "getgroups", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_getitimer, "getitimer", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_getlogin, "getlogin", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_getpeername, "getpeername", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_getpgid, "getpgid", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_getpgrp, "getpgrp", "%s()", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_getpid, "getpid", "%s()", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_getppid, "getppid", "%s()", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_getpriority, "getpriority", "%s(%#x,%#x)", NULL,
> NULL },
> > -{ TARGET_FREEBSD_NR_getrandom, "getrandom", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_getresgid, "getresgid", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_getresuid, "getresuid", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_getrlimit, "getrlimit", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_getrusage, "getrusage", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_getsid, "getsid", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_getsockname, "getsockname", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_getsockopt, "getsockopt", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_gettimeofday, "gettimeofday", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_getuid, "getuid", "%s()", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_ioctl, "ioctl", NULL, print_ioctl, NULL },
> > -{ TARGET_FREEBSD_NR_issetugid, "issetugid", "%s()", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_freebsd11_kevent, "freebsd11_kevent", NULL, NULL,
> NULL },
> > -{ TARGET_FREEBSD_NR_kevent, "kevent", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_kill, "kill", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_kqueue, "kqueue", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_ktrace, "ktrace", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_lchown, "lchown", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_link, "link", "%s(\"%s\",\"%s\")", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_listen, "listen", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_lpathconf, "lpathconf", "%s(\"%s\", %d)", NULL,
> NULL },
> > -{ TARGET_FREEBSD_NR_lseek, "lseek", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_freebsd11_lstat, "freebsd11_lstat",
> "%s(\"%s\",%p)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_madvise, "madvise", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_mincore, "mincore", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_minherit, "minherit", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_mkdir, "mkdir", "%s(\"%s\",%#o)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_mkfifo, "mkfifo", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_mknodat, "mknodat", "%s(%d, \"%s\",%#o,%#x)", NULL,
> NULL },
> > -{ TARGET_FREEBSD_NR_freebsd11_mknod, "freebsd11_mknod",
> "%s(\"%s\",%#o,%#x)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_freebsd11_mknodat, "freebsd11_mknodat", "%s(%d,
> \"%s\",%#o,%#x)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_mlock, "mlock", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_mlockall, "mlockall", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_mmap, "mmap", NULL, NULL, print_syscall_ret_addr },
> > -{ TARGET_FREEBSD_NR_mount, "mount", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_mprotect, "mprotect", "%s(%#x,%#x,%d)", NULL, NULL
> },
> > -{ TARGET_FREEBSD_NR_msgctl, "msgctl", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_msgget, "msgget", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_msgrcv, "msgrcv", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_msgsnd, "msgsnd", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_msync, "msync", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_munlock, "munlock", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_munlockall, "munlockall", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_munmap, "munmap", "%s(%p,%d)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_nanosleep, "nanosleep", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_nfssvc, "nfssvc", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_open, "open", "%s(\"%s\",%#x,%#o)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_openat, "openat", "%s(%d, \"%s\",%#x,%#o)", NULL,
> NULL },
> > -{ TARGET_FREEBSD_NR_pathconf, "pathconf", "%s(\"%s\", %d)", NULL, NULL
> },
> > -{ TARGET_FREEBSD_NR_freebsd10_pipe, "freebsd10_pipe", NULL, NULL, NULL
> },
> > -{ TARGET_FREEBSD_NR_pipe2, "pipe2", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_poll, "poll", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_posix_fallocate, "posix_fallocate", NULL, NULL,
> NULL },
> > -{ TARGET_FREEBSD_NR_pread, "pread", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_preadv, "preadv", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_profil, "profil", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_ptrace, "ptrace", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_pwrite, "pwrite", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_pwritev, "pwritev", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_quotactl, "quotactl", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_read, "read", "%s(%d,%#x,%d)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_readlink, "readlink", "%s(\"%s\",%p,%d)", NULL,
> NULL },
> > -{ TARGET_FREEBSD_NR_readv, "readv", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_reboot, "reboot", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_recvfrom, "recvfrom", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_recvmsg, "recvmsg", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_rename, "rename", "%s(\"%s\",\"%s\")", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_revoke, "revoke", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_rfork, "rfork", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_rmdir, "rmdir", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_rtprio_thread, "rtprio_thread", "%s(%d, %d, %p)",
> NULL, NULL },
> > -#ifdef TARGET_FREEBSD_NR_sbrk
> > -{ TARGET_FREEBSD_NR_sbrk, "sbrk", NULL, NULL, NULL },
> > -#endif
> > -{ TARGET_FREEBSD_NR_sched_get_priority_max, "sched_get_priority_max",
> NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_sched_get_priority_min, "sched_get_priority_min",
> NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_sched_yield, "sched_yield", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_select, "select", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_semget, "semget", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_semop, "semop", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_sendmsg, "sendmsg", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_sendto, "sendto", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_setcontext, "setcontext", "%s(%#x)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_setegid, "setegid", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_seteuid, "seteuid", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_setgid, "setgid", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_setgroups, "setgroups", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_setitimer, "setitimer", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_setlogin, "setlogin", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_setpgid, "setpgid", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_setpriority, "setpriority", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_setregid, "setregid", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_setresgid, "setresgid", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_setresuid, "setresuid", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_setreuid, "setreuid", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_setrlimit, "setrlimit", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_setsid, "setsid", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_setsockopt, "setsockopt", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_settimeofday, "settimeofday", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_setuid, "setuid", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_shmat, "shmat", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_shmctl, "shmctl", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_shmdt, "shmdt", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_shmget, "shmget", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_shutdown, "shutdown", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_sigaction, "sigaction", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_sigaltstack, "sigaltstack", "%s(%p,%p)", NULL, NULL
> },
> > -{ TARGET_FREEBSD_NR_sigpending, "sigpending", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_sigprocmask, "sigprocmask", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_sigreturn, "sigreturn", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_sigsuspend, "sigsuspend", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_socket, "socket", "%s(%d,%d,%d)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_socketpair, "socketpair", NULL, NULL, NULL },
> > -#ifdef TARGET_FREEBSD_NR_sstk
> > -{ TARGET_FREEBSD_NR_sstk, "sstk", NULL, NULL, NULL },
> > -#endif
> > -{ TARGET_FREEBSD_NR_freebsd11_stat, "freebsd11_stat", "%s(\"%s\",%p)",
> NULL, NULL },
> > -{ TARGET_FREEBSD_NR_freebsd11_statfs, "freebsd11_statfs",
> "%s(\"%s\",%p)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_symlink, "symlink", "%s(\"%s\",\"%s\")", NULL, NULL
> },
> > -{ TARGET_FREEBSD_NR_sync, "sync", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_sysarch, "sysarch", NULL, print_sysarch, NULL },
> > -{ TARGET_FREEBSD_NR_syscall, "syscall", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_ktimer_create, "timer_create" , NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_ktimer_delete, "timer_delete" , NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_ktimer_settime, "timer_settime" , NULL, NULL, NULL
> },
> > -{ TARGET_FREEBSD_NR_ktimer_gettime, "timer_gettime" , NULL, NULL, NULL
> },
> > -{ TARGET_FREEBSD_NR_ktimer_getoverrun, "timer_getoverrun" , NULL, NULL,
> NULL },
> > -{ TARGET_FREEBSD_NR_thr_create, "thr_create", "%s(%#x, %#x, %d)", NULL,
> NULL },
> > -{ TARGET_FREEBSD_NR_thr_exit, "thr_exit", "%s(%#x)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_thr_kill, "thr_kill", "%s(%d, %#x)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_thr_kill2, "thr_kill2", "%s(%d, %d, %d)", NULL,
> NULL },
> > -{ TARGET_FREEBSD_NR_thr_new, "thr_new", "%s(%#x, %d)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_thr_self, "thr_self", "%s(%#x)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_thr_set_name, "thr_set_name", "%s(%d, \"%s\")",
> NULL, NULL },
> > -{ TARGET_FREEBSD_NR_thr_suspend, "thr_suspend", "%s(%d, %#x)", NULL,
> NULL },
> > -{ TARGET_FREEBSD_NR_thr_wake, "thr_wake", "%s(%d)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_truncate, "truncate", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_umask, "umask", "%s(%#o)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_unlink, "unlink", "%s(\"%s\")", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_unmount, "unmount", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_utimes, "utimes", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_utimensat, "utimensat", "%s(%d,%s,%p,%#x)", NULL,
> NULL },
> > -{ TARGET_FREEBSD_NR_vfork, "vfork", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_wait4, "wait4", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_wait6, "wait6", NULL, NULL, NULL },
> > -{ TARGET_FREEBSD_NR_write, "write", "%s(%d,%#x,%d)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_writev, "writev", "%s(%d,%p,%#x)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR_posix_openpt, "posix_openpt", "%s(%d)", NULL, NULL
> },
> > +{ 354, "__acl_aclcheck_fd_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 353, "__acl_aclcheck_file_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 428, "__acl_aclcheck_link_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 352, "__acl_delete_fd_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 351, "__acl_delete_file_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 427, "__acl_delete_link_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 349, "__acl_get_fd_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 347, "__acl_get_file_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 425, "__acl_get_link_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 350, "__acl_set_fd_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 348, "__acl_set_file_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 426, "__acl_set_link_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 515, "__cap_rights_get_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 326, "__getcwd_args", "%s(%s, %#x)", NULL, NULL },
> > +{ 415, "__mac_execve_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 386, "__mac_get_fd_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 387, "__mac_get_file_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 410, "__mac_get_link_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 409, "__mac_get_pid_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 384, "__mac_get_proc_args", "%s(%#x)", NULL, NULL },
> > +{ 388, "__mac_set_fd_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 389, "__mac_set_file_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 411, "__mac_set_link_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 385, "__mac_set_proc_args", "%s(%#x)", NULL, NULL },
> > +{ 574, "__realpathat_args", "%s(%#x, %#x, %s, %#x, %#x)", NULL, NULL },
> > +{ 510, "__semctl_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 374, "__setugid_args", "%s(%#x)", NULL, NULL },
> > +{ 577, "__specialfd_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 202, "__sysctl_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL
> },
> > +{ 570, "__sysctlbyname_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL,
> NULL },
> > +{ 1, "_exit_args", "%s(%#x)", NULL, NULL },
> > +{ 454, "_umtx_op_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 463, "abort2_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 541, "accept4_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 30, "accept_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 33, "access_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 51, "acct_args", "%s(%#x)", NULL, NULL },
> > +{ 140, "adjtime_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 377, "afs3_syscall_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x, %#x)",
> NULL, NULL },
> > +{ 316, "aio_cancel_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 317, "aio_error_args", "%s(%#x)", NULL, NULL },
> > +{ 465, "aio_fsync_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 543, "aio_mlock_args", "%s(%#x)", NULL, NULL },
> > +{ 255, "aio_read_args", "%s(%#x)", NULL, NULL },
> > +{ 579, "aio_readv_args", "%s(%#x)", NULL, NULL },
> > +{ 314, "aio_return_args", "%s(%#x)", NULL, NULL },
> > +{ 315, "aio_suspend_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 359, "aio_waitcomplete_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 256, "aio_write_args", "%s(%#x)", NULL, NULL },
> > +{ 578, "aio_writev_args", "%s(%#x)", NULL, NULL },
> > +{ 445, "audit_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 453, "auditctl_args", "%s(%#x)", NULL, NULL },
> > +{ 446, "auditon_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 104, "bind_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 538, "bindat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 17, "break_args", "%s(%s)", NULL, NULL },
> > +{ 516, "cap_enter_args", NULL, NULL, NULL },
> > +{ 537, "cap_fcntls_get_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 536, "cap_fcntls_limit_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 517, "cap_getmode_args", "%s(%#x)", NULL, NULL },
> > +{ 535, "cap_ioctls_get_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 534, "cap_ioctls_limit_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 533, "cap_rights_limit_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 12, "chdir_args", "%s(%#x)", NULL, NULL },
> > +{ 34, "chflags_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 540, "chflagsat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 15, "chmod_args", "%s(%#x, %o)", NULL, NULL },
> > +{ 16, "chown_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 61, "chroot_args", "%s(%#x)", NULL, NULL },
> > +{ 247, "clock_getcpuclockid2_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 234, "clock_getres_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 232, "clock_gettime_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 244, "clock_nanosleep_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 233, "clock_settime_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 6, "close_args", "%s(%#x)", NULL, NULL },
> > +{ 575, "close_range_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 98, "connect_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 539, "connectat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 569, "copy_file_range_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)",
> NULL, NULL },
> > +{ 484, "cpuset_args", "%s(%#x)", NULL, NULL },
> > +{ 487, "cpuset_getaffinity_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL,
> NULL },
> > +{ 561, "cpuset_getdomain_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)",
> NULL, NULL },
> > +{ 486, "cpuset_getid_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 488, "cpuset_setaffinity_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL,
> NULL },
> > +{ 562, "cpuset_setdomain_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)",
> NULL, NULL },
> > +{ 485, "cpuset_setid_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 90, "dup2_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 41, "dup_args", "%s(%#x)", NULL, NULL },
> > +{ 376, "eaccess_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 59, "execve_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 373, "extattr_delete_fd_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 358, "extattr_delete_file_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 414, "extattr_delete_link_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 372, "extattr_get_fd_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL
> },
> > +{ 357, "extattr_get_file_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL,
> NULL },
> > +{ 413, "extattr_get_link_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL,
> NULL },
> > +{ 437, "extattr_list_fd_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 438, "extattr_list_file_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 439, "extattr_list_link_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 371, "extattr_set_fd_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL
> },
> > +{ 356, "extattr_set_file_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL,
> NULL },
> > +{ 412, "extattr_set_link_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL,
> NULL },
> > +{ 355, "extattrctl_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 592, "exterrctl_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 489, "faccessat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 13, "fchdir_args", "%s(%#x)", NULL, NULL },
> > +{ 35, "fchflags_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 124, "fchmod_args", "%s(%#x, %o)", NULL, NULL },
> > +{ 490, "fchmodat_args", "%s(%#x, %#x, %o, %#x)", NULL, NULL },
> > +{ 123, "fchown_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 491, "fchownat_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 590, "fchroot_args", "%s(%#x)", NULL, NULL },
> > +{ 92, "fcntl_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 550, "fdatasync_args", "%s(%#x)", NULL, NULL },
> > +{ 492, "fexecve_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 241, "ffclock_getcounter_args", "%s(%#x)", NULL, NULL },
> > +{ 243, "ffclock_getestimate_args", "%s(%#x)", NULL, NULL },
> > +{ 242, "ffclock_setestimate_args", "%s(%#x)", NULL, NULL },
> > +{ 565, "fhlink_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 566, "fhlinkat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 298, "fhopen_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 567, "fhreadlink_args", "%s(%#x, %s, %#x)", NULL, NULL },
> > +{ 553, "fhstat_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 558, "fhstatfs_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 131, "flock_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 2, "fork_args", NULL, NULL, NULL },
> > +{ 192, "fpathconf_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 434, "freebsd10__umtx_lock_args", "%s(%#x)", NULL, NULL },
> > +{ 435, "freebsd10__umtx_unlock_args", "%s(%#x)", NULL, NULL },
> > +{ 42, "freebsd10_pipe_args", NULL, NULL, NULL },
> > +{ 299, "freebsd11_fhstat_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 398, "freebsd11_fhstatfs_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 189, "freebsd11_fstat_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 493, "freebsd11_fstatat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 397, "freebsd11_fstatfs_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 272, "freebsd11_getdents_args", "%s(%#x, %s, %#x)", NULL, NULL },
> > +{ 196, "freebsd11_getdirentries_args", "%s(%#x, %s, %#x, %#x)", NULL,
> NULL },
> > +{ 395, "freebsd11_getfsstat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 363, "freebsd11_kevent_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)",
> NULL, NULL },
> > +{ 190, "freebsd11_lstat_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 14, "freebsd11_mknod_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 498, "freebsd11_mknodat_args", "%s(%#x, %#x, %o, %#x)", NULL, NULL },
> > +{ 279, "freebsd11_nfstat_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 280, "freebsd11_nlstat_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 278, "freebsd11_nstat_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 188, "freebsd11_stat_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 396, "freebsd11_statfs_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 72, "freebsd11_vadvise_args", "%s(%#x)", NULL, NULL },
> > +{ 509, "freebsd12_closefrom_args", "%s(%#x)", NULL, NULL },
> > +{ 482, "freebsd12_shm_open_args", "%s(%#x, %#x, %o)", NULL, NULL },
> > +{ 424, "freebsd13_swapoff_args", "%s(%#x)", NULL, NULL },
> > +{ 79, "freebsd14_getgroups_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 80, "freebsd14_setgroups_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 580, "fspacectl_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 551, "fstat_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 552, "fstatat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 556, "fstatfs_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 95, "fsync_args", "%s(%#x)", NULL, NULL },
> > +{ 480, "ftruncate_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 568, "funlinkat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 546, "futimens_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 206, "futimes_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 494, "futimesat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 451, "getaudit_addr_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 449, "getaudit_args", "%s(%#x)", NULL, NULL },
> > +{ 447, "getauid_args", "%s(%#x)", NULL, NULL },
> > +{ 421, "getcontext_args", "%s(%#x)", NULL, NULL },
> > +{ 554, "getdirentries_args", "%s(%#x, %s, %#x, %#x)", NULL, NULL },
> > +{ 89, "getdtablesize_args", NULL, NULL, NULL },
> > +{ 43, "getegid_args", NULL, NULL, NULL },
> > +{ 25, "geteuid_args", NULL, NULL, NULL },
> > +{ 161, "getfh_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 564, "getfhat_args", "%s(%#x, %s, %#x, %#x)", NULL, NULL },
> > +{ 557, "getfsstat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 47, "getgid_args", NULL, NULL, NULL },
> > +{ 595, "getgroups_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 86, "getitimer_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 49, "getlogin_args", "%s(%s, %#x)", NULL, NULL },
> > +{ 523, "getloginclass_args", "%s(%s, %#x)", NULL, NULL },
> > +{ 31, "getpeername_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 207, "getpgid_args", "%s(%#x)", NULL, NULL },
> > +{ 81, "getpgrp_args", NULL, NULL, NULL },
> > +{ 20, "getpid_args", NULL, NULL, NULL },
> > +{ 39, "getppid_args", NULL, NULL, NULL },
> > +{ 100, "getpriority_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 563, "getrandom_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 361, "getresgid_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 360, "getresuid_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 194, "getrlimit_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 589, "getrlimitusage_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 117, "getrusage_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 310, "getsid_args", "%s(%#x)", NULL, NULL },
> > +{ 32, "getsockname_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 118, "getsockopt_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 116, "gettimeofday_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 24, "getuid_args", NULL, NULL, NULL },
> > +{ 593, "inotify_add_watch_at_args", "%s(%#x, %#x, %#x, %#x)", NULL,
> NULL },
> > +{ 594, "inotify_rm_watch_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 54, "ioctl_args", "%s(%#x, %#x, %s)", NULL, NULL },
> > +{ 253, "issetugid_args", NULL, NULL, NULL },
> > +{ 338, "jail_args", "%s(%#x)", NULL, NULL },
> > +{ 436, "jail_attach_args", "%s(%#x)", NULL, NULL },
> > +{ 597, "jail_attach_jd_args", "%s(%#x)", NULL, NULL },
> > +{ 506, "jail_get_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 508, "jail_remove_args", "%s(%#x)", NULL, NULL },
> > +{ 598, "jail_remove_jd_args", "%s(%#x)", NULL, NULL },
> > +{ 507, "jail_set_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 588, "kcmp_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 390, "kenv_args", "%s(%#x, %#x, %s, %#x)", NULL, NULL },
> > +{ 560, "kevent_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 599, "kexec_load_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 37, "kill_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 306, "kldfind_args", "%s(%#x)", NULL, NULL },
> > +{ 309, "kldfirstmod_args", "%s(%#x)", NULL, NULL },
> > +{ 304, "kldload_args", "%s(%#x)", NULL, NULL },
> > +{ 307, "kldnext_args", "%s(%#x)", NULL, NULL },
> > +{ 308, "kldstat_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 337, "kldsym_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 305, "kldunload_args", "%s(%#x)", NULL, NULL },
> > +{ 444, "kldunloadf_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 461, "kmq_notify_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 457, "kmq_open_args", "%s(%#x, %#x, %o, %#x)", NULL, NULL },
> > +{ 458, "kmq_setattr_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 459, "kmq_timedreceive_args", "%s(%#x, %s, %#x, %#x, %#x)", NULL,
> NULL },
> > +{ 460, "kmq_timedsend_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL
> },
> > +{ 462, "kmq_unlink_args", "%s(%#x)", NULL, NULL },
> > +{ 362, "kqueue_args", NULL, NULL, NULL },
> > +{ 583, "kqueuex_args", "%s(%#x)", NULL, NULL },
> > +{ 400, "ksem_close_args", "%s(%#x)", NULL, NULL },
> > +{ 408, "ksem_destroy_args", "%s(%#x)", NULL, NULL },
> > +{ 407, "ksem_getvalue_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 404, "ksem_init_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 405, "ksem_open_args", "%s(%#x, %#x, %#x, %o, %#x)", NULL, NULL },
> > +{ 401, "ksem_post_args", "%s(%#x)", NULL, NULL },
> > +{ 441, "ksem_timedwait_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 403, "ksem_trywait_args", "%s(%#x)", NULL, NULL },
> > +{ 406, "ksem_unlink_args", "%s(%#x)", NULL, NULL },
> > +{ 402, "ksem_wait_args", "%s(%#x)", NULL, NULL },
> > +{ 235, "ktimer_create_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 236, "ktimer_delete_args", "%s(%#x)", NULL, NULL },
> > +{ 239, "ktimer_getoverrun_args", "%s(%#x)", NULL, NULL },
> > +{ 238, "ktimer_gettime_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 237, "ktimer_settime_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 45, "ktrace_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 391, "lchflags_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 274, "lchmod_args", "%s(%#x, %o)", NULL, NULL },
> > +{ 254, "lchown_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 160, "lgetfh_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 9, "link_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 495, "linkat_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 257, "lio_listio_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 106, "listen_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 513, "lpathconf_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 478, "lseek_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 276, "lutimes_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 394, "mac_syscall_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 75, "madvise_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 584, "membarrier_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 78, "mincore_args", "%s(%#x, %#x, %s)", NULL, NULL },
> > +{ 250, "minherit_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 136, "mkdir_args", "%s(%#x, %o)", NULL, NULL },
> > +{ 496, "mkdirat_args", "%s(%#x, %#x, %o)", NULL, NULL },
> > +{ 132, "mkfifo_args", "%s(%#x, %o)", NULL, NULL },
> > +{ 497, "mkfifoat_args", "%s(%#x, %#x, %o)", NULL, NULL },
> > +{ 559, "mknodat_args", "%s(%#x, %#x, %o, %#x)", NULL, NULL },
> > +{ 203, "mlock_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 324, "mlockall_args", "%s(%#x)", NULL, NULL },
> > +{ 477, "mmap_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 303, "modfind_args", "%s(%#x)", NULL, NULL },
> > +{ 302, "modfnext_args", "%s(%#x)", NULL, NULL },
> > +{ 300, "modnext_args", "%s(%#x)", NULL, NULL },
> > +{ 301, "modstat_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 21, "mount_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 74, "mprotect_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 511, "msgctl_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 225, "msgget_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 227, "msgrcv_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 226, "msgsnd_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 170, "msgsys_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 65, "msync_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 204, "munlock_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 325, "munlockall_args", NULL, NULL, NULL },
> > +{ 73, "munmap_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 240, "nanosleep_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 155, "nfssvc_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 154, "nlm_syscall_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 378, "nmount_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 339, "nnpfs_syscall_args", "%s(%#x, %s, %#x, %#x, %#x)", NULL, NULL },
> > +{ 176, "ntp_adjtime_args", "%s(%#x)", NULL, NULL },
> > +{ 248, "ntp_gettime_args", "%s(%#x)", NULL, NULL },
> > +{ 5, "open_args", "%s(%#x, %#x, %o)", NULL, NULL },
> > +{ 499, "openat_args", "%s(%#x, %#x, %#x, %o)", NULL, NULL },
> > +{ 191, "pathconf_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 518, "pdfork_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 520, "pdgetpid_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 519, "pdkill_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 600, "pdrfork_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 601, "pdwait_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 542, "pipe2_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 209, "poll_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 531, "posix_fadvise_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 530, "posix_fallocate_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 504, "posix_openpt_args", "%s(%#x)", NULL, NULL },
> > +{ 545, "ppoll_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 475, "pread_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 289, "preadv_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 544, "procctl_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 44, "profil_args", "%s(%s, %#x, %#x, %#x)", NULL, NULL },
> > +{ 522, "pselect_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 26, "ptrace_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 476, "pwrite_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 290, "pwritev_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 148, "quotactl_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 528, "rctl_add_rule_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 527, "rctl_get_limits_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 525, "rctl_get_racct_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 526, "rctl_get_rules_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 529, "rctl_remove_rule_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 3, "read_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 58, "readlink_args", "%s(%#x, %s, %#x)", NULL, NULL },
> > +{ 500, "readlinkat_args", "%s(%#x, %#x, %s, %#x)", NULL, NULL },
> > +{ 120, "readv_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 55, "reboot_args", "%s(%#x)", NULL, NULL },
> > +{ 29, "recvfrom_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 27, "recvmsg_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 128, "rename_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 602, "renameat2_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 501, "renameat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 56, "revoke_args", "%s(%#x)", NULL, NULL },
> > +{ 251, "rfork_args", "%s(%#x)", NULL, NULL },
> > +{ 137, "rmdir_args", "%s(%#x)", NULL, NULL },
> > +{ 576, "rpctls_syscall_args", "%s(%#x)", NULL, NULL },
> > +{ 166, "rtprio_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 466, "rtprio_thread_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 332, "sched_get_priority_max_args", "%s(%#x)", NULL, NULL },
> > +{ 333, "sched_get_priority_min_args", "%s(%#x)", NULL, NULL },
> > +{ 581, "sched_getcpu_args", NULL, NULL, NULL },
> > +{ 328, "sched_getparam_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 330, "sched_getscheduler_args", "%s(%#x)", NULL, NULL },
> > +{ 334, "sched_rr_get_interval_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 327, "sched_setparam_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 329, "sched_setscheduler_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 331, "sched_yield_args", NULL, NULL, NULL },
> > +{ 474, "sctp_generic_recvmsg_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x,
> %#x)", NULL, NULL },
> > +{ 472, "sctp_generic_sendmsg_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x,
> %#x)", NULL, NULL },
> > +{ 473, "sctp_generic_sendmsg_iov_args", "%s(%#x, %#x, %#x, %#x, %#x,
> %#x, %#x)", NULL, NULL },
> > +{ 471, "sctp_peeloff_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 93, "select_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 221, "semget_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 222, "semop_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 169, "semsys_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 393, "sendfile_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x, %#x)", NULL,
> NULL },
> > +{ 28, "sendmsg_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 133, "sendto_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 452, "setaudit_addr_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 450, "setaudit_args", "%s(%#x)", NULL, NULL },
> > +{ 448, "setauid_args", "%s(%#x)", NULL, NULL },
> > +{ 422, "setcontext_args", "%s(%#x)", NULL, NULL },
> > +{ 591, "setcred_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 182, "setegid_args", "%s(%#x)", NULL, NULL },
> > +{ 183, "seteuid_args", "%s(%#x)", NULL, NULL },
> > +{ 175, "setfib_args", "%s(%#x)", NULL, NULL },
> > +{ 181, "setgid_args", "%s(%#x)", NULL, NULL },
> > +{ 596, "setgroups_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 83, "setitimer_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 50, "setlogin_args", "%s(%#x)", NULL, NULL },
> > +{ 524, "setloginclass_args", "%s(%#x)", NULL, NULL },
> > +{ 82, "setpgid_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 96, "setpriority_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 127, "setregid_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 312, "setresgid_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 311, "setresuid_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 126, "setreuid_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 195, "setrlimit_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 147, "setsid_args", NULL, NULL, NULL },
> > +{ 105, "setsockopt_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 122, "settimeofday_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 23, "setuid_args", "%s(%#x)", NULL, NULL },
> > +{ 571, "shm_open2_args", "%s(%#x, %#x, %o, %#x, %#x)", NULL, NULL },
> > +{ 572, "shm_rename_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 483, "shm_unlink_args", "%s(%#x)", NULL, NULL },
> > +{ 228, "shmat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 512, "shmctl_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 230, "shmdt_args", "%s(%#x)", NULL, NULL },
> > +{ 231, "shmget_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 171, "shmsys_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 134, "shutdown_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 416, "sigaction_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 53, "sigaltstack_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 573, "sigfastblock_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 343, "sigpending_args", "%s(%#x)", NULL, NULL },
> > +{ 340, "sigprocmask_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 456, "sigqueue_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 417, "sigreturn_args", "%s(%#x)", NULL, NULL },
> > +{ 341, "sigsuspend_args", "%s(%#x)", NULL, NULL },
> > +{ 345, "sigtimedwait_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 429, "sigwait_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 346, "sigwaitinfo_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 97, "socket_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 135, "socketpair_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 555, "statfs_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 423, "swapcontext_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 582, "swapoff_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 85, "swapon_args", "%s(%#x)", NULL, NULL },
> > +{ 57, "symlink_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 502, "symlinkat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 36, "sync_args", NULL, NULL, NULL },
> > +{ 165, "sysarch_args", "%s(%#x, %s)", NULL, NULL },
> > +{ 430, "thr_create_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 431, "thr_exit_args", "%s(%#x)", NULL, NULL },
> > +{ 481, "thr_kill2_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 433, "thr_kill_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 455, "thr_new_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 432, "thr_self_args", "%s(%#x)", NULL, NULL },
> > +{ 464, "thr_set_name_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 442, "thr_suspend_args", "%s(%#x)", NULL, NULL },
> > +{ 443, "thr_wake_args", "%s(%#x)", NULL, NULL },
> > +{ 585, "timerfd_create_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 586, "timerfd_gettime_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 587, "timerfd_settime_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 479, "truncate_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 60, "umask_args", "%s(%o)", NULL, NULL },
> > +{ 205, "undelete_args", "%s(%#x)", NULL, NULL },
> > +{ 10, "unlink_args", "%s(%#x)", NULL, NULL },
> > +{ 503, "unlinkat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 22, "unmount_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 547, "utimensat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 138, "utimes_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 335, "utrace_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 392, "uuidgen_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 66, "vfork_args", NULL, NULL, NULL },
> > +{ 7, "wait4_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 532, "wait6_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 4, "write_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 121, "writev_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 321, "yield_args", NULL, NULL, NULL },
> >
>
> Overall looks good, and my comments on file variable should not be
> blocking.
>
> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
>
> Regards,
> Pierrick
>

[-- Attachment #2: Type: text/html, Size: 76835 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH v2 5/5] bsd-user: Regnerate strace.list
  2026-04-29 14:38 ` [PATCH v2 5/5] bsd-user: Regnerate strace.list Warner Losh
  2026-04-29 22:41   ` Pierrick Bouvier
@ 2026-04-30  8:18   ` Daniel P. Berrangé
  2026-04-30 16:17     ` Warner Losh
  1 sibling, 1 reply; 15+ messages in thread
From: Daniel P. Berrangé @ 2026-04-30  8:18 UTC (permalink / raw)
  To: Warner Losh
  Cc: qemu-devel, Kyle Evans, Paolo Bonzini, Marc-André Lureau,
	Philippe Mathieu-Daudé, Pierrick Bouvier

On Wed, Apr 29, 2026 at 08:38:55AM -0600, Warner Losh wrote:
> Note: I derived this script from one of the FreeBSD system call
> generation scripts, so it needs to be BSD-2-Clause license, which
> deviates a bit from the GPL-2.0-or-newer preference, but I think is OK
> since it's not folded into the qemu binaries themselves (and output of
> scripts is typically public domain, as is the case here).

Yes, that's all absolutely fine - when pulling incode from outside,
or derived from outside, it is required to preserve the license.
The GPL-2.0-or-newer rule only applies to green field code written
for QEMU.

It would be fine even if it applied to code that needs to be linked
into QEMU, since BSD-2-Clause is compatible with GPL-2 in a combined
work.

>                                                           This script is
> written in lua, but every FreeBSD installation has a 'flua' binary that
> can run this script, and it leverages about 7k lines of library and
> metadata FreeBSD maintains well.
> 
> Signed-off-by: Warner Losh <imp@bsdimp.com>
> ---
>  bsd-user/freebsd/scripts/strace.lua | 117 ++++++
>  bsd-user/freebsd/strace.list        | 708 ++++++++++++++++++++++--------------
>  2 files changed, 556 insertions(+), 269 deletions(-)
> 
> diff --git a/bsd-user/freebsd/scripts/strace.lua b/bsd-user/freebsd/scripts/strace.lua
> new file mode 100755
> index 0000000000..c89e8e3aeb
> --- /dev/null
> +++ b/bsd-user/freebsd/scripts/strace.lua
> @@ -0,0 +1,117 @@

> +				gen:write(string.format(
> +				    "{ %d, \"%s\", %s, %s, NULL },\n",
> +				    v.num, v.arg_alias, fmt, fcn))

Is there a reason to use v.num, instead of the symbolic name that
was previously used ?  eg something like:

    "{ TARGET_FREEBSD_NR_%s, \"%s\", %s, %s, NULL },\n",
    v.arg_alias, v.arg_alias, fmt, fcn))


> diff --git a/bsd-user/freebsd/strace.list b/bsd-user/freebsd/strace.list
> index d7f61f480e..2c4176475a 100644
> --- a/bsd-user/freebsd/strace.list
> +++ b/bsd-user/freebsd/strace.list
> @@ -1,273 +1,443 @@
>  /*

If comparing the first few:

> -{ TARGET_FREEBSD_NR___acl_aclcheck_fd, "__acl_aclcheck_fd", "%s(%d, %d, %#x)", NULL, NULL },
> -{ TARGET_FREEBSD_NR___acl_aclcheck_file, "__acl_aclcheck_file", "%s(\"%s\", %d, %#x)", NULL, NULL },
> -{ TARGET_FREEBSD_NR___acl_aclcheck_link, "__acl_aclcheck_link", "%s(\"%s\", %d, %#x)", NULL, NULL },

vs

> +{ 354, "__acl_aclcheck_fd_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 353, "__acl_aclcheck_file_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 428, "__acl_aclcheck_link_args", "%s(%#x, %#x, %#x)", NULL, NULL },

The args pattern has changed significantly. Everything is now
%#x, where as before it was formatting strings and integers.

Looking further at just the new definitions, essentially
everything is now %#x.  Is that really intentional ? If
so just put a note in the commit message about why nearly
all the args are changing format.

> +{ 352, "__acl_delete_fd_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 351, "__acl_delete_file_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 427, "__acl_delete_link_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 349, "__acl_get_fd_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 347, "__acl_get_file_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 425, "__acl_get_link_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 350, "__acl_set_fd_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 348, "__acl_set_file_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 426, "__acl_set_link_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 515, "__cap_rights_get_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 326, "__getcwd_args", "%s(%s, %#x)", NULL, NULL },
> +{ 415, "__mac_execve_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 386, "__mac_get_fd_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 387, "__mac_get_file_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 410, "__mac_get_link_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 409, "__mac_get_pid_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 384, "__mac_get_proc_args", "%s(%#x)", NULL, NULL },
> +{ 388, "__mac_set_fd_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 389, "__mac_set_file_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 411, "__mac_set_link_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 385, "__mac_set_proc_args", "%s(%#x)", NULL, NULL },
> +{ 574, "__realpathat_args", "%s(%#x, %#x, %s, %#x, %#x)", NULL, NULL },
> +{ 510, "__semctl_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 374, "__setugid_args", "%s(%#x)", NULL, NULL },
> +{ 577, "__specialfd_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 202, "__sysctl_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 570, "__sysctlbyname_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 1, "_exit_args", "%s(%#x)", NULL, NULL },
> +{ 454, "_umtx_op_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 463, "abort2_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 541, "accept4_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 30, "accept_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 33, "access_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 51, "acct_args", "%s(%#x)", NULL, NULL },
> +{ 140, "adjtime_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 377, "afs3_syscall_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 316, "aio_cancel_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 317, "aio_error_args", "%s(%#x)", NULL, NULL },
> +{ 465, "aio_fsync_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 543, "aio_mlock_args", "%s(%#x)", NULL, NULL },
> +{ 255, "aio_read_args", "%s(%#x)", NULL, NULL },
> +{ 579, "aio_readv_args", "%s(%#x)", NULL, NULL },
> +{ 314, "aio_return_args", "%s(%#x)", NULL, NULL },
> +{ 315, "aio_suspend_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 359, "aio_waitcomplete_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 256, "aio_write_args", "%s(%#x)", NULL, NULL },
> +{ 578, "aio_writev_args", "%s(%#x)", NULL, NULL },
> +{ 445, "audit_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 453, "auditctl_args", "%s(%#x)", NULL, NULL },
> +{ 446, "auditon_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 104, "bind_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 538, "bindat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 17, "break_args", "%s(%s)", NULL, NULL },
> +{ 516, "cap_enter_args", NULL, NULL, NULL },
> +{ 537, "cap_fcntls_get_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 536, "cap_fcntls_limit_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 517, "cap_getmode_args", "%s(%#x)", NULL, NULL },
> +{ 535, "cap_ioctls_get_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 534, "cap_ioctls_limit_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 533, "cap_rights_limit_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 12, "chdir_args", "%s(%#x)", NULL, NULL },
> +{ 34, "chflags_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 540, "chflagsat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 15, "chmod_args", "%s(%#x, %o)", NULL, NULL },
> +{ 16, "chown_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 61, "chroot_args", "%s(%#x)", NULL, NULL },
> +{ 247, "clock_getcpuclockid2_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 234, "clock_getres_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 232, "clock_gettime_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 244, "clock_nanosleep_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 233, "clock_settime_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 6, "close_args", "%s(%#x)", NULL, NULL },
> +{ 575, "close_range_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 98, "connect_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 539, "connectat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 569, "copy_file_range_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 484, "cpuset_args", "%s(%#x)", NULL, NULL },
> +{ 487, "cpuset_getaffinity_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 561, "cpuset_getdomain_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 486, "cpuset_getid_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 488, "cpuset_setaffinity_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 562, "cpuset_setdomain_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 485, "cpuset_setid_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 90, "dup2_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 41, "dup_args", "%s(%#x)", NULL, NULL },
> +{ 376, "eaccess_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 59, "execve_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 373, "extattr_delete_fd_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 358, "extattr_delete_file_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 414, "extattr_delete_link_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 372, "extattr_get_fd_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 357, "extattr_get_file_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 413, "extattr_get_link_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 437, "extattr_list_fd_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 438, "extattr_list_file_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 439, "extattr_list_link_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 371, "extattr_set_fd_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 356, "extattr_set_file_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 412, "extattr_set_link_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 355, "extattrctl_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 592, "exterrctl_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 489, "faccessat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 13, "fchdir_args", "%s(%#x)", NULL, NULL },
> +{ 35, "fchflags_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 124, "fchmod_args", "%s(%#x, %o)", NULL, NULL },
> +{ 490, "fchmodat_args", "%s(%#x, %#x, %o, %#x)", NULL, NULL },
> +{ 123, "fchown_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 491, "fchownat_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 590, "fchroot_args", "%s(%#x)", NULL, NULL },
> +{ 92, "fcntl_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 550, "fdatasync_args", "%s(%#x)", NULL, NULL },
> +{ 492, "fexecve_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 241, "ffclock_getcounter_args", "%s(%#x)", NULL, NULL },
> +{ 243, "ffclock_getestimate_args", "%s(%#x)", NULL, NULL },
> +{ 242, "ffclock_setestimate_args", "%s(%#x)", NULL, NULL },
> +{ 565, "fhlink_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 566, "fhlinkat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 298, "fhopen_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 567, "fhreadlink_args", "%s(%#x, %s, %#x)", NULL, NULL },
> +{ 553, "fhstat_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 558, "fhstatfs_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 131, "flock_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 2, "fork_args", NULL, NULL, NULL },
> +{ 192, "fpathconf_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 434, "freebsd10__umtx_lock_args", "%s(%#x)", NULL, NULL },
> +{ 435, "freebsd10__umtx_unlock_args", "%s(%#x)", NULL, NULL },
> +{ 42, "freebsd10_pipe_args", NULL, NULL, NULL },
> +{ 299, "freebsd11_fhstat_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 398, "freebsd11_fhstatfs_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 189, "freebsd11_fstat_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 493, "freebsd11_fstatat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 397, "freebsd11_fstatfs_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 272, "freebsd11_getdents_args", "%s(%#x, %s, %#x)", NULL, NULL },
> +{ 196, "freebsd11_getdirentries_args", "%s(%#x, %s, %#x, %#x)", NULL, NULL },
> +{ 395, "freebsd11_getfsstat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 363, "freebsd11_kevent_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 190, "freebsd11_lstat_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 14, "freebsd11_mknod_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 498, "freebsd11_mknodat_args", "%s(%#x, %#x, %o, %#x)", NULL, NULL },
> +{ 279, "freebsd11_nfstat_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 280, "freebsd11_nlstat_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 278, "freebsd11_nstat_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 188, "freebsd11_stat_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 396, "freebsd11_statfs_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 72, "freebsd11_vadvise_args", "%s(%#x)", NULL, NULL },
> +{ 509, "freebsd12_closefrom_args", "%s(%#x)", NULL, NULL },
> +{ 482, "freebsd12_shm_open_args", "%s(%#x, %#x, %o)", NULL, NULL },
> +{ 424, "freebsd13_swapoff_args", "%s(%#x)", NULL, NULL },
> +{ 79, "freebsd14_getgroups_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 80, "freebsd14_setgroups_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 580, "fspacectl_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 551, "fstat_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 552, "fstatat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 556, "fstatfs_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 95, "fsync_args", "%s(%#x)", NULL, NULL },
> +{ 480, "ftruncate_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 568, "funlinkat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 546, "futimens_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 206, "futimes_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 494, "futimesat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 451, "getaudit_addr_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 449, "getaudit_args", "%s(%#x)", NULL, NULL },
> +{ 447, "getauid_args", "%s(%#x)", NULL, NULL },
> +{ 421, "getcontext_args", "%s(%#x)", NULL, NULL },
> +{ 554, "getdirentries_args", "%s(%#x, %s, %#x, %#x)", NULL, NULL },
> +{ 89, "getdtablesize_args", NULL, NULL, NULL },
> +{ 43, "getegid_args", NULL, NULL, NULL },
> +{ 25, "geteuid_args", NULL, NULL, NULL },
> +{ 161, "getfh_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 564, "getfhat_args", "%s(%#x, %s, %#x, %#x)", NULL, NULL },
> +{ 557, "getfsstat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 47, "getgid_args", NULL, NULL, NULL },
> +{ 595, "getgroups_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 86, "getitimer_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 49, "getlogin_args", "%s(%s, %#x)", NULL, NULL },
> +{ 523, "getloginclass_args", "%s(%s, %#x)", NULL, NULL },
> +{ 31, "getpeername_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 207, "getpgid_args", "%s(%#x)", NULL, NULL },
> +{ 81, "getpgrp_args", NULL, NULL, NULL },
> +{ 20, "getpid_args", NULL, NULL, NULL },
> +{ 39, "getppid_args", NULL, NULL, NULL },
> +{ 100, "getpriority_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 563, "getrandom_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 361, "getresgid_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 360, "getresuid_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 194, "getrlimit_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 589, "getrlimitusage_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 117, "getrusage_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 310, "getsid_args", "%s(%#x)", NULL, NULL },
> +{ 32, "getsockname_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 118, "getsockopt_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 116, "gettimeofday_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 24, "getuid_args", NULL, NULL, NULL },
> +{ 593, "inotify_add_watch_at_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 594, "inotify_rm_watch_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 54, "ioctl_args", "%s(%#x, %#x, %s)", NULL, NULL },
> +{ 253, "issetugid_args", NULL, NULL, NULL },
> +{ 338, "jail_args", "%s(%#x)", NULL, NULL },
> +{ 436, "jail_attach_args", "%s(%#x)", NULL, NULL },
> +{ 597, "jail_attach_jd_args", "%s(%#x)", NULL, NULL },
> +{ 506, "jail_get_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 508, "jail_remove_args", "%s(%#x)", NULL, NULL },
> +{ 598, "jail_remove_jd_args", "%s(%#x)", NULL, NULL },
> +{ 507, "jail_set_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 588, "kcmp_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 390, "kenv_args", "%s(%#x, %#x, %s, %#x)", NULL, NULL },
> +{ 560, "kevent_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 599, "kexec_load_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 37, "kill_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 306, "kldfind_args", "%s(%#x)", NULL, NULL },
> +{ 309, "kldfirstmod_args", "%s(%#x)", NULL, NULL },
> +{ 304, "kldload_args", "%s(%#x)", NULL, NULL },
> +{ 307, "kldnext_args", "%s(%#x)", NULL, NULL },
> +{ 308, "kldstat_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 337, "kldsym_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 305, "kldunload_args", "%s(%#x)", NULL, NULL },
> +{ 444, "kldunloadf_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 461, "kmq_notify_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 457, "kmq_open_args", "%s(%#x, %#x, %o, %#x)", NULL, NULL },
> +{ 458, "kmq_setattr_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 459, "kmq_timedreceive_args", "%s(%#x, %s, %#x, %#x, %#x)", NULL, NULL },
> +{ 460, "kmq_timedsend_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 462, "kmq_unlink_args", "%s(%#x)", NULL, NULL },
> +{ 362, "kqueue_args", NULL, NULL, NULL },
> +{ 583, "kqueuex_args", "%s(%#x)", NULL, NULL },
> +{ 400, "ksem_close_args", "%s(%#x)", NULL, NULL },
> +{ 408, "ksem_destroy_args", "%s(%#x)", NULL, NULL },
> +{ 407, "ksem_getvalue_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 404, "ksem_init_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 405, "ksem_open_args", "%s(%#x, %#x, %#x, %o, %#x)", NULL, NULL },
> +{ 401, "ksem_post_args", "%s(%#x)", NULL, NULL },
> +{ 441, "ksem_timedwait_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 403, "ksem_trywait_args", "%s(%#x)", NULL, NULL },
> +{ 406, "ksem_unlink_args", "%s(%#x)", NULL, NULL },
> +{ 402, "ksem_wait_args", "%s(%#x)", NULL, NULL },
> +{ 235, "ktimer_create_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 236, "ktimer_delete_args", "%s(%#x)", NULL, NULL },
> +{ 239, "ktimer_getoverrun_args", "%s(%#x)", NULL, NULL },
> +{ 238, "ktimer_gettime_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 237, "ktimer_settime_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 45, "ktrace_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 391, "lchflags_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 274, "lchmod_args", "%s(%#x, %o)", NULL, NULL },
> +{ 254, "lchown_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 160, "lgetfh_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 9, "link_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 495, "linkat_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 257, "lio_listio_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 106, "listen_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 513, "lpathconf_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 478, "lseek_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 276, "lutimes_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 394, "mac_syscall_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 75, "madvise_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 584, "membarrier_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 78, "mincore_args", "%s(%#x, %#x, %s)", NULL, NULL },
> +{ 250, "minherit_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 136, "mkdir_args", "%s(%#x, %o)", NULL, NULL },
> +{ 496, "mkdirat_args", "%s(%#x, %#x, %o)", NULL, NULL },
> +{ 132, "mkfifo_args", "%s(%#x, %o)", NULL, NULL },
> +{ 497, "mkfifoat_args", "%s(%#x, %#x, %o)", NULL, NULL },
> +{ 559, "mknodat_args", "%s(%#x, %#x, %o, %#x)", NULL, NULL },
> +{ 203, "mlock_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 324, "mlockall_args", "%s(%#x)", NULL, NULL },
> +{ 477, "mmap_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 303, "modfind_args", "%s(%#x)", NULL, NULL },
> +{ 302, "modfnext_args", "%s(%#x)", NULL, NULL },
> +{ 300, "modnext_args", "%s(%#x)", NULL, NULL },
> +{ 301, "modstat_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 21, "mount_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 74, "mprotect_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 511, "msgctl_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 225, "msgget_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 227, "msgrcv_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 226, "msgsnd_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 170, "msgsys_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 65, "msync_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 204, "munlock_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 325, "munlockall_args", NULL, NULL, NULL },
> +{ 73, "munmap_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 240, "nanosleep_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 155, "nfssvc_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 154, "nlm_syscall_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 378, "nmount_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 339, "nnpfs_syscall_args", "%s(%#x, %s, %#x, %#x, %#x)", NULL, NULL },
> +{ 176, "ntp_adjtime_args", "%s(%#x)", NULL, NULL },
> +{ 248, "ntp_gettime_args", "%s(%#x)", NULL, NULL },
> +{ 5, "open_args", "%s(%#x, %#x, %o)", NULL, NULL },
> +{ 499, "openat_args", "%s(%#x, %#x, %#x, %o)", NULL, NULL },
> +{ 191, "pathconf_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 518, "pdfork_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 520, "pdgetpid_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 519, "pdkill_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 600, "pdrfork_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 601, "pdwait_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 542, "pipe2_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 209, "poll_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 531, "posix_fadvise_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 530, "posix_fallocate_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 504, "posix_openpt_args", "%s(%#x)", NULL, NULL },
> +{ 545, "ppoll_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 475, "pread_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 289, "preadv_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 544, "procctl_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 44, "profil_args", "%s(%s, %#x, %#x, %#x)", NULL, NULL },
> +{ 522, "pselect_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 26, "ptrace_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 476, "pwrite_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 290, "pwritev_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 148, "quotactl_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 528, "rctl_add_rule_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 527, "rctl_get_limits_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 525, "rctl_get_racct_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 526, "rctl_get_rules_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 529, "rctl_remove_rule_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 3, "read_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 58, "readlink_args", "%s(%#x, %s, %#x)", NULL, NULL },
> +{ 500, "readlinkat_args", "%s(%#x, %#x, %s, %#x)", NULL, NULL },
> +{ 120, "readv_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 55, "reboot_args", "%s(%#x)", NULL, NULL },
> +{ 29, "recvfrom_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 27, "recvmsg_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 128, "rename_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 602, "renameat2_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 501, "renameat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 56, "revoke_args", "%s(%#x)", NULL, NULL },
> +{ 251, "rfork_args", "%s(%#x)", NULL, NULL },
> +{ 137, "rmdir_args", "%s(%#x)", NULL, NULL },
> +{ 576, "rpctls_syscall_args", "%s(%#x)", NULL, NULL },
> +{ 166, "rtprio_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 466, "rtprio_thread_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 332, "sched_get_priority_max_args", "%s(%#x)", NULL, NULL },
> +{ 333, "sched_get_priority_min_args", "%s(%#x)", NULL, NULL },
> +{ 581, "sched_getcpu_args", NULL, NULL, NULL },
> +{ 328, "sched_getparam_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 330, "sched_getscheduler_args", "%s(%#x)", NULL, NULL },
> +{ 334, "sched_rr_get_interval_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 327, "sched_setparam_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 329, "sched_setscheduler_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 331, "sched_yield_args", NULL, NULL, NULL },
> +{ 474, "sctp_generic_recvmsg_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 472, "sctp_generic_sendmsg_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 473, "sctp_generic_sendmsg_iov_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 471, "sctp_peeloff_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 93, "select_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 221, "semget_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 222, "semop_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 169, "semsys_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 393, "sendfile_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 28, "sendmsg_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 133, "sendto_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 452, "setaudit_addr_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 450, "setaudit_args", "%s(%#x)", NULL, NULL },
> +{ 448, "setauid_args", "%s(%#x)", NULL, NULL },
> +{ 422, "setcontext_args", "%s(%#x)", NULL, NULL },
> +{ 591, "setcred_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 182, "setegid_args", "%s(%#x)", NULL, NULL },
> +{ 183, "seteuid_args", "%s(%#x)", NULL, NULL },
> +{ 175, "setfib_args", "%s(%#x)", NULL, NULL },
> +{ 181, "setgid_args", "%s(%#x)", NULL, NULL },
> +{ 596, "setgroups_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 83, "setitimer_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 50, "setlogin_args", "%s(%#x)", NULL, NULL },
> +{ 524, "setloginclass_args", "%s(%#x)", NULL, NULL },
> +{ 82, "setpgid_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 96, "setpriority_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 127, "setregid_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 312, "setresgid_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 311, "setresuid_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 126, "setreuid_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 195, "setrlimit_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 147, "setsid_args", NULL, NULL, NULL },
> +{ 105, "setsockopt_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 122, "settimeofday_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 23, "setuid_args", "%s(%#x)", NULL, NULL },
> +{ 571, "shm_open2_args", "%s(%#x, %#x, %o, %#x, %#x)", NULL, NULL },
> +{ 572, "shm_rename_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 483, "shm_unlink_args", "%s(%#x)", NULL, NULL },
> +{ 228, "shmat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 512, "shmctl_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 230, "shmdt_args", "%s(%#x)", NULL, NULL },
> +{ 231, "shmget_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 171, "shmsys_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 134, "shutdown_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 416, "sigaction_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 53, "sigaltstack_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 573, "sigfastblock_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 343, "sigpending_args", "%s(%#x)", NULL, NULL },
> +{ 340, "sigprocmask_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 456, "sigqueue_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 417, "sigreturn_args", "%s(%#x)", NULL, NULL },
> +{ 341, "sigsuspend_args", "%s(%#x)", NULL, NULL },
> +{ 345, "sigtimedwait_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 429, "sigwait_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 346, "sigwaitinfo_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 97, "socket_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 135, "socketpair_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 555, "statfs_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 423, "swapcontext_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 582, "swapoff_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 85, "swapon_args", "%s(%#x)", NULL, NULL },
> +{ 57, "symlink_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 502, "symlinkat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 36, "sync_args", NULL, NULL, NULL },
> +{ 165, "sysarch_args", "%s(%#x, %s)", NULL, NULL },
> +{ 430, "thr_create_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 431, "thr_exit_args", "%s(%#x)", NULL, NULL },
> +{ 481, "thr_kill2_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 433, "thr_kill_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 455, "thr_new_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 432, "thr_self_args", "%s(%#x)", NULL, NULL },
> +{ 464, "thr_set_name_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 442, "thr_suspend_args", "%s(%#x)", NULL, NULL },
> +{ 443, "thr_wake_args", "%s(%#x)", NULL, NULL },
> +{ 585, "timerfd_create_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 586, "timerfd_gettime_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 587, "timerfd_settime_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 479, "truncate_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 60, "umask_args", "%s(%o)", NULL, NULL },
> +{ 205, "undelete_args", "%s(%#x)", NULL, NULL },
> +{ 10, "unlink_args", "%s(%#x)", NULL, NULL },
> +{ 503, "unlinkat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 22, "unmount_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 547, "utimensat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 138, "utimes_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 335, "utrace_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 392, "uuidgen_args", "%s(%#x, %#x)", NULL, NULL },
> +{ 66, "vfork_args", NULL, NULL, NULL },
> +{ 7, "wait4_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 532, "wait6_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> +{ 4, "write_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 121, "writev_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> +{ 321, "yield_args", NULL, NULL, NULL },
> 
> -- 
> 2.52.0
> 



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH v2 5/5] bsd-user: Regnerate strace.list
  2026-04-30  8:18   ` Daniel P. Berrangé
@ 2026-04-30 16:17     ` Warner Losh
  2026-05-01  3:00       ` Warner Losh
  0 siblings, 1 reply; 15+ messages in thread
From: Warner Losh @ 2026-04-30 16:17 UTC (permalink / raw)
  To: Daniel P. Berrangé
  Cc: qemu-devel, Kyle Evans, Paolo Bonzini, Marc-André Lureau,
	Philippe Mathieu-Daudé, Pierrick Bouvier

[-- Attachment #1: Type: text/plain, Size: 32130 bytes --]

On Thu, Apr 30, 2026 at 2:18 AM Daniel P. Berrangé <berrange@redhat.com>
wrote:

> On Wed, Apr 29, 2026 at 08:38:55AM -0600, Warner Losh wrote:
> > Note: I derived this script from one of the FreeBSD system call
> > generation scripts, so it needs to be BSD-2-Clause license, which
> > deviates a bit from the GPL-2.0-or-newer preference, but I think is OK
> > since it's not folded into the qemu binaries themselves (and output of
> > scripts is typically public domain, as is the case here).
>
> Yes, that's all absolutely fine - when pulling incode from outside,
> or derived from outside, it is required to preserve the license.
> The GPL-2.0-or-newer rule only applies to green field code written
> for QEMU.
>
> It would be fine even if it applied to code that needs to be linked
> into QEMU, since BSD-2-Clause is compatible with GPL-2 in a combined
> work.
>
> >                                                           This script is
> > written in lua, but every FreeBSD installation has a 'flua' binary that
> > can run this script, and it leverages about 7k lines of library and
> > metadata FreeBSD maintains well.
> >
> > Signed-off-by: Warner Losh <imp@bsdimp.com>
> > ---
> >  bsd-user/freebsd/scripts/strace.lua | 117 ++++++
> >  bsd-user/freebsd/strace.list        | 708
> ++++++++++++++++++++++--------------
> >  2 files changed, 556 insertions(+), 269 deletions(-)
> >
> > diff --git a/bsd-user/freebsd/scripts/strace.lua
> b/bsd-user/freebsd/scripts/strace.lua
> > new file mode 100755
> > index 0000000000..c89e8e3aeb
> > --- /dev/null
> > +++ b/bsd-user/freebsd/scripts/strace.lua
> > @@ -0,0 +1,117 @@
>
> > +                             gen:write(string.format(
> > +                                 "{ %d, \"%s\", %s, %s, NULL },\n",
> > +                                 v.num, v.arg_alias, fmt, fcn))
>
> Is there a reason to use v.num, instead of the symbolic name that
> was previously used ?  eg something like:
>
>     "{ TARGET_FREEBSD_NR_%s, \"%s\", %s, %s, NULL },\n",
>     v.arg_alias, v.arg_alias, fmt, fcn))
>

Yes. Since we're now generating the TARGET_FREEBSD_NR_ symbols from
sys/syscalls.h,
there are going to be some that are undefined. FreeBSD current introduces
new system calls
from time to time that older, but still supported, branches do not have. I
watned one file that
would work on all supported versions. Since adding an #ifdef before each
line exploded things,
and since you can't macroize #ifdef, and since the FreeBSD system call
numbers are completely
stable and never change and since humans rarely read this file, I used the
number so that it
would work everywhere.  I thought about adding a comment on each line, but
the syscall name
is the next field over so it wouldn't add much, if any, value.


>
> > diff --git a/bsd-user/freebsd/strace.list b/bsd-user/freebsd/strace.list
> > index d7f61f480e..2c4176475a 100644
> > --- a/bsd-user/freebsd/strace.list
> > +++ b/bsd-user/freebsd/strace.list
> > @@ -1,273 +1,443 @@
> >  /*
>
> If comparing the first few:
>
> > -{ TARGET_FREEBSD_NR___acl_aclcheck_fd, "__acl_aclcheck_fd", "%s(%d, %d,
> %#x)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR___acl_aclcheck_file, "__acl_aclcheck_file",
> "%s(\"%s\", %d, %#x)", NULL, NULL },
> > -{ TARGET_FREEBSD_NR___acl_aclcheck_link, "__acl_aclcheck_link",
> "%s(\"%s\", %d, %#x)", NULL, NULL },
>
> vs
>
> > +{ 354, "__acl_aclcheck_fd_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 353, "__acl_aclcheck_file_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 428, "__acl_aclcheck_link_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>
> The args pattern has changed significantly. Everything is now
> %#x, where as before it was formatting strings and integers.
>
> Looking further at just the new definitions, essentially
> everything is now %#x.  Is that really intentional ? If
> so just put a note in the commit message about why nearly
> all the args are changing format.
>

Hmmm, That's surprising to me. I'll double check what's going on to make
sure my logic is correct since that's not what was intended, nor what
earlier versions of the script produced.

Warner


> > +{ 352, "__acl_delete_fd_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 351, "__acl_delete_file_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 427, "__acl_delete_link_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 349, "__acl_get_fd_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 347, "__acl_get_file_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 425, "__acl_get_link_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 350, "__acl_set_fd_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 348, "__acl_set_file_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 426, "__acl_set_link_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 515, "__cap_rights_get_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 326, "__getcwd_args", "%s(%s, %#x)", NULL, NULL },
> > +{ 415, "__mac_execve_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 386, "__mac_get_fd_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 387, "__mac_get_file_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 410, "__mac_get_link_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 409, "__mac_get_pid_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 384, "__mac_get_proc_args", "%s(%#x)", NULL, NULL },
> > +{ 388, "__mac_set_fd_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 389, "__mac_set_file_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 411, "__mac_set_link_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 385, "__mac_set_proc_args", "%s(%#x)", NULL, NULL },
> > +{ 574, "__realpathat_args", "%s(%#x, %#x, %s, %#x, %#x)", NULL, NULL },
> > +{ 510, "__semctl_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 374, "__setugid_args", "%s(%#x)", NULL, NULL },
> > +{ 577, "__specialfd_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 202, "__sysctl_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL
> },
> > +{ 570, "__sysctlbyname_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL,
> NULL },
> > +{ 1, "_exit_args", "%s(%#x)", NULL, NULL },
> > +{ 454, "_umtx_op_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 463, "abort2_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 541, "accept4_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 30, "accept_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 33, "access_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 51, "acct_args", "%s(%#x)", NULL, NULL },
> > +{ 140, "adjtime_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 377, "afs3_syscall_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x, %#x)",
> NULL, NULL },
> > +{ 316, "aio_cancel_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 317, "aio_error_args", "%s(%#x)", NULL, NULL },
> > +{ 465, "aio_fsync_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 543, "aio_mlock_args", "%s(%#x)", NULL, NULL },
> > +{ 255, "aio_read_args", "%s(%#x)", NULL, NULL },
> > +{ 579, "aio_readv_args", "%s(%#x)", NULL, NULL },
> > +{ 314, "aio_return_args", "%s(%#x)", NULL, NULL },
> > +{ 315, "aio_suspend_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 359, "aio_waitcomplete_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 256, "aio_write_args", "%s(%#x)", NULL, NULL },
> > +{ 578, "aio_writev_args", "%s(%#x)", NULL, NULL },
> > +{ 445, "audit_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 453, "auditctl_args", "%s(%#x)", NULL, NULL },
> > +{ 446, "auditon_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 104, "bind_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 538, "bindat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 17, "break_args", "%s(%s)", NULL, NULL },
> > +{ 516, "cap_enter_args", NULL, NULL, NULL },
> > +{ 537, "cap_fcntls_get_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 536, "cap_fcntls_limit_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 517, "cap_getmode_args", "%s(%#x)", NULL, NULL },
> > +{ 535, "cap_ioctls_get_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 534, "cap_ioctls_limit_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 533, "cap_rights_limit_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 12, "chdir_args", "%s(%#x)", NULL, NULL },
> > +{ 34, "chflags_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 540, "chflagsat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 15, "chmod_args", "%s(%#x, %o)", NULL, NULL },
> > +{ 16, "chown_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 61, "chroot_args", "%s(%#x)", NULL, NULL },
> > +{ 247, "clock_getcpuclockid2_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 234, "clock_getres_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 232, "clock_gettime_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 244, "clock_nanosleep_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 233, "clock_settime_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 6, "close_args", "%s(%#x)", NULL, NULL },
> > +{ 575, "close_range_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 98, "connect_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 539, "connectat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 569, "copy_file_range_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)",
> NULL, NULL },
> > +{ 484, "cpuset_args", "%s(%#x)", NULL, NULL },
> > +{ 487, "cpuset_getaffinity_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL,
> NULL },
> > +{ 561, "cpuset_getdomain_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)",
> NULL, NULL },
> > +{ 486, "cpuset_getid_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 488, "cpuset_setaffinity_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL,
> NULL },
> > +{ 562, "cpuset_setdomain_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)",
> NULL, NULL },
> > +{ 485, "cpuset_setid_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 90, "dup2_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 41, "dup_args", "%s(%#x)", NULL, NULL },
> > +{ 376, "eaccess_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 59, "execve_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 373, "extattr_delete_fd_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 358, "extattr_delete_file_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 414, "extattr_delete_link_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 372, "extattr_get_fd_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL
> },
> > +{ 357, "extattr_get_file_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL,
> NULL },
> > +{ 413, "extattr_get_link_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL,
> NULL },
> > +{ 437, "extattr_list_fd_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 438, "extattr_list_file_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 439, "extattr_list_link_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 371, "extattr_set_fd_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL
> },
> > +{ 356, "extattr_set_file_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL,
> NULL },
> > +{ 412, "extattr_set_link_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL,
> NULL },
> > +{ 355, "extattrctl_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 592, "exterrctl_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 489, "faccessat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 13, "fchdir_args", "%s(%#x)", NULL, NULL },
> > +{ 35, "fchflags_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 124, "fchmod_args", "%s(%#x, %o)", NULL, NULL },
> > +{ 490, "fchmodat_args", "%s(%#x, %#x, %o, %#x)", NULL, NULL },
> > +{ 123, "fchown_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 491, "fchownat_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 590, "fchroot_args", "%s(%#x)", NULL, NULL },
> > +{ 92, "fcntl_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 550, "fdatasync_args", "%s(%#x)", NULL, NULL },
> > +{ 492, "fexecve_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 241, "ffclock_getcounter_args", "%s(%#x)", NULL, NULL },
> > +{ 243, "ffclock_getestimate_args", "%s(%#x)", NULL, NULL },
> > +{ 242, "ffclock_setestimate_args", "%s(%#x)", NULL, NULL },
> > +{ 565, "fhlink_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 566, "fhlinkat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 298, "fhopen_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 567, "fhreadlink_args", "%s(%#x, %s, %#x)", NULL, NULL },
> > +{ 553, "fhstat_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 558, "fhstatfs_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 131, "flock_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 2, "fork_args", NULL, NULL, NULL },
> > +{ 192, "fpathconf_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 434, "freebsd10__umtx_lock_args", "%s(%#x)", NULL, NULL },
> > +{ 435, "freebsd10__umtx_unlock_args", "%s(%#x)", NULL, NULL },
> > +{ 42, "freebsd10_pipe_args", NULL, NULL, NULL },
> > +{ 299, "freebsd11_fhstat_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 398, "freebsd11_fhstatfs_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 189, "freebsd11_fstat_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 493, "freebsd11_fstatat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 397, "freebsd11_fstatfs_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 272, "freebsd11_getdents_args", "%s(%#x, %s, %#x)", NULL, NULL },
> > +{ 196, "freebsd11_getdirentries_args", "%s(%#x, %s, %#x, %#x)", NULL,
> NULL },
> > +{ 395, "freebsd11_getfsstat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 363, "freebsd11_kevent_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)",
> NULL, NULL },
> > +{ 190, "freebsd11_lstat_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 14, "freebsd11_mknod_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 498, "freebsd11_mknodat_args", "%s(%#x, %#x, %o, %#x)", NULL, NULL },
> > +{ 279, "freebsd11_nfstat_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 280, "freebsd11_nlstat_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 278, "freebsd11_nstat_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 188, "freebsd11_stat_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 396, "freebsd11_statfs_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 72, "freebsd11_vadvise_args", "%s(%#x)", NULL, NULL },
> > +{ 509, "freebsd12_closefrom_args", "%s(%#x)", NULL, NULL },
> > +{ 482, "freebsd12_shm_open_args", "%s(%#x, %#x, %o)", NULL, NULL },
> > +{ 424, "freebsd13_swapoff_args", "%s(%#x)", NULL, NULL },
> > +{ 79, "freebsd14_getgroups_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 80, "freebsd14_setgroups_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 580, "fspacectl_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 551, "fstat_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 552, "fstatat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 556, "fstatfs_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 95, "fsync_args", "%s(%#x)", NULL, NULL },
> > +{ 480, "ftruncate_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 568, "funlinkat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 546, "futimens_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 206, "futimes_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 494, "futimesat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 451, "getaudit_addr_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 449, "getaudit_args", "%s(%#x)", NULL, NULL },
> > +{ 447, "getauid_args", "%s(%#x)", NULL, NULL },
> > +{ 421, "getcontext_args", "%s(%#x)", NULL, NULL },
> > +{ 554, "getdirentries_args", "%s(%#x, %s, %#x, %#x)", NULL, NULL },
> > +{ 89, "getdtablesize_args", NULL, NULL, NULL },
> > +{ 43, "getegid_args", NULL, NULL, NULL },
> > +{ 25, "geteuid_args", NULL, NULL, NULL },
> > +{ 161, "getfh_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 564, "getfhat_args", "%s(%#x, %s, %#x, %#x)", NULL, NULL },
> > +{ 557, "getfsstat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 47, "getgid_args", NULL, NULL, NULL },
> > +{ 595, "getgroups_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 86, "getitimer_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 49, "getlogin_args", "%s(%s, %#x)", NULL, NULL },
> > +{ 523, "getloginclass_args", "%s(%s, %#x)", NULL, NULL },
> > +{ 31, "getpeername_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 207, "getpgid_args", "%s(%#x)", NULL, NULL },
> > +{ 81, "getpgrp_args", NULL, NULL, NULL },
> > +{ 20, "getpid_args", NULL, NULL, NULL },
> > +{ 39, "getppid_args", NULL, NULL, NULL },
> > +{ 100, "getpriority_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 563, "getrandom_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 361, "getresgid_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 360, "getresuid_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 194, "getrlimit_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 589, "getrlimitusage_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 117, "getrusage_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 310, "getsid_args", "%s(%#x)", NULL, NULL },
> > +{ 32, "getsockname_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 118, "getsockopt_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 116, "gettimeofday_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 24, "getuid_args", NULL, NULL, NULL },
> > +{ 593, "inotify_add_watch_at_args", "%s(%#x, %#x, %#x, %#x)", NULL,
> NULL },
> > +{ 594, "inotify_rm_watch_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 54, "ioctl_args", "%s(%#x, %#x, %s)", NULL, NULL },
> > +{ 253, "issetugid_args", NULL, NULL, NULL },
> > +{ 338, "jail_args", "%s(%#x)", NULL, NULL },
> > +{ 436, "jail_attach_args", "%s(%#x)", NULL, NULL },
> > +{ 597, "jail_attach_jd_args", "%s(%#x)", NULL, NULL },
> > +{ 506, "jail_get_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 508, "jail_remove_args", "%s(%#x)", NULL, NULL },
> > +{ 598, "jail_remove_jd_args", "%s(%#x)", NULL, NULL },
> > +{ 507, "jail_set_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 588, "kcmp_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 390, "kenv_args", "%s(%#x, %#x, %s, %#x)", NULL, NULL },
> > +{ 560, "kevent_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 599, "kexec_load_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 37, "kill_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 306, "kldfind_args", "%s(%#x)", NULL, NULL },
> > +{ 309, "kldfirstmod_args", "%s(%#x)", NULL, NULL },
> > +{ 304, "kldload_args", "%s(%#x)", NULL, NULL },
> > +{ 307, "kldnext_args", "%s(%#x)", NULL, NULL },
> > +{ 308, "kldstat_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 337, "kldsym_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 305, "kldunload_args", "%s(%#x)", NULL, NULL },
> > +{ 444, "kldunloadf_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 461, "kmq_notify_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 457, "kmq_open_args", "%s(%#x, %#x, %o, %#x)", NULL, NULL },
> > +{ 458, "kmq_setattr_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 459, "kmq_timedreceive_args", "%s(%#x, %s, %#x, %#x, %#x)", NULL,
> NULL },
> > +{ 460, "kmq_timedsend_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL
> },
> > +{ 462, "kmq_unlink_args", "%s(%#x)", NULL, NULL },
> > +{ 362, "kqueue_args", NULL, NULL, NULL },
> > +{ 583, "kqueuex_args", "%s(%#x)", NULL, NULL },
> > +{ 400, "ksem_close_args", "%s(%#x)", NULL, NULL },
> > +{ 408, "ksem_destroy_args", "%s(%#x)", NULL, NULL },
> > +{ 407, "ksem_getvalue_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 404, "ksem_init_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 405, "ksem_open_args", "%s(%#x, %#x, %#x, %o, %#x)", NULL, NULL },
> > +{ 401, "ksem_post_args", "%s(%#x)", NULL, NULL },
> > +{ 441, "ksem_timedwait_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 403, "ksem_trywait_args", "%s(%#x)", NULL, NULL },
> > +{ 406, "ksem_unlink_args", "%s(%#x)", NULL, NULL },
> > +{ 402, "ksem_wait_args", "%s(%#x)", NULL, NULL },
> > +{ 235, "ktimer_create_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 236, "ktimer_delete_args", "%s(%#x)", NULL, NULL },
> > +{ 239, "ktimer_getoverrun_args", "%s(%#x)", NULL, NULL },
> > +{ 238, "ktimer_gettime_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 237, "ktimer_settime_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 45, "ktrace_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 391, "lchflags_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 274, "lchmod_args", "%s(%#x, %o)", NULL, NULL },
> > +{ 254, "lchown_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 160, "lgetfh_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 9, "link_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 495, "linkat_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 257, "lio_listio_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 106, "listen_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 513, "lpathconf_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 478, "lseek_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 276, "lutimes_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 394, "mac_syscall_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 75, "madvise_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 584, "membarrier_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 78, "mincore_args", "%s(%#x, %#x, %s)", NULL, NULL },
> > +{ 250, "minherit_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 136, "mkdir_args", "%s(%#x, %o)", NULL, NULL },
> > +{ 496, "mkdirat_args", "%s(%#x, %#x, %o)", NULL, NULL },
> > +{ 132, "mkfifo_args", "%s(%#x, %o)", NULL, NULL },
> > +{ 497, "mkfifoat_args", "%s(%#x, %#x, %o)", NULL, NULL },
> > +{ 559, "mknodat_args", "%s(%#x, %#x, %o, %#x)", NULL, NULL },
> > +{ 203, "mlock_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 324, "mlockall_args", "%s(%#x)", NULL, NULL },
> > +{ 477, "mmap_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 303, "modfind_args", "%s(%#x)", NULL, NULL },
> > +{ 302, "modfnext_args", "%s(%#x)", NULL, NULL },
> > +{ 300, "modnext_args", "%s(%#x)", NULL, NULL },
> > +{ 301, "modstat_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 21, "mount_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 74, "mprotect_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 511, "msgctl_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 225, "msgget_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 227, "msgrcv_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 226, "msgsnd_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 170, "msgsys_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 65, "msync_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 204, "munlock_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 325, "munlockall_args", NULL, NULL, NULL },
> > +{ 73, "munmap_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 240, "nanosleep_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 155, "nfssvc_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 154, "nlm_syscall_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 378, "nmount_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 339, "nnpfs_syscall_args", "%s(%#x, %s, %#x, %#x, %#x)", NULL, NULL },
> > +{ 176, "ntp_adjtime_args", "%s(%#x)", NULL, NULL },
> > +{ 248, "ntp_gettime_args", "%s(%#x)", NULL, NULL },
> > +{ 5, "open_args", "%s(%#x, %#x, %o)", NULL, NULL },
> > +{ 499, "openat_args", "%s(%#x, %#x, %#x, %o)", NULL, NULL },
> > +{ 191, "pathconf_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 518, "pdfork_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 520, "pdgetpid_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 519, "pdkill_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 600, "pdrfork_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 601, "pdwait_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 542, "pipe2_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 209, "poll_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 531, "posix_fadvise_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 530, "posix_fallocate_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 504, "posix_openpt_args", "%s(%#x)", NULL, NULL },
> > +{ 545, "ppoll_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 475, "pread_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 289, "preadv_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 544, "procctl_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 44, "profil_args", "%s(%s, %#x, %#x, %#x)", NULL, NULL },
> > +{ 522, "pselect_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 26, "ptrace_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 476, "pwrite_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 290, "pwritev_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 148, "quotactl_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 528, "rctl_add_rule_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 527, "rctl_get_limits_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 525, "rctl_get_racct_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 526, "rctl_get_rules_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 529, "rctl_remove_rule_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 3, "read_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 58, "readlink_args", "%s(%#x, %s, %#x)", NULL, NULL },
> > +{ 500, "readlinkat_args", "%s(%#x, %#x, %s, %#x)", NULL, NULL },
> > +{ 120, "readv_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 55, "reboot_args", "%s(%#x)", NULL, NULL },
> > +{ 29, "recvfrom_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 27, "recvmsg_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 128, "rename_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 602, "renameat2_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 501, "renameat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 56, "revoke_args", "%s(%#x)", NULL, NULL },
> > +{ 251, "rfork_args", "%s(%#x)", NULL, NULL },
> > +{ 137, "rmdir_args", "%s(%#x)", NULL, NULL },
> > +{ 576, "rpctls_syscall_args", "%s(%#x)", NULL, NULL },
> > +{ 166, "rtprio_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 466, "rtprio_thread_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 332, "sched_get_priority_max_args", "%s(%#x)", NULL, NULL },
> > +{ 333, "sched_get_priority_min_args", "%s(%#x)", NULL, NULL },
> > +{ 581, "sched_getcpu_args", NULL, NULL, NULL },
> > +{ 328, "sched_getparam_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 330, "sched_getscheduler_args", "%s(%#x)", NULL, NULL },
> > +{ 334, "sched_rr_get_interval_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 327, "sched_setparam_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 329, "sched_setscheduler_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 331, "sched_yield_args", NULL, NULL, NULL },
> > +{ 474, "sctp_generic_recvmsg_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x,
> %#x)", NULL, NULL },
> > +{ 472, "sctp_generic_sendmsg_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x,
> %#x)", NULL, NULL },
> > +{ 473, "sctp_generic_sendmsg_iov_args", "%s(%#x, %#x, %#x, %#x, %#x,
> %#x, %#x)", NULL, NULL },
> > +{ 471, "sctp_peeloff_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 93, "select_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 221, "semget_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 222, "semop_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 169, "semsys_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 393, "sendfile_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x, %#x)", NULL,
> NULL },
> > +{ 28, "sendmsg_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 133, "sendto_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 452, "setaudit_addr_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 450, "setaudit_args", "%s(%#x)", NULL, NULL },
> > +{ 448, "setauid_args", "%s(%#x)", NULL, NULL },
> > +{ 422, "setcontext_args", "%s(%#x)", NULL, NULL },
> > +{ 591, "setcred_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 182, "setegid_args", "%s(%#x)", NULL, NULL },
> > +{ 183, "seteuid_args", "%s(%#x)", NULL, NULL },
> > +{ 175, "setfib_args", "%s(%#x)", NULL, NULL },
> > +{ 181, "setgid_args", "%s(%#x)", NULL, NULL },
> > +{ 596, "setgroups_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 83, "setitimer_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 50, "setlogin_args", "%s(%#x)", NULL, NULL },
> > +{ 524, "setloginclass_args", "%s(%#x)", NULL, NULL },
> > +{ 82, "setpgid_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 96, "setpriority_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 127, "setregid_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 312, "setresgid_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 311, "setresuid_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 126, "setreuid_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 195, "setrlimit_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 147, "setsid_args", NULL, NULL, NULL },
> > +{ 105, "setsockopt_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 122, "settimeofday_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 23, "setuid_args", "%s(%#x)", NULL, NULL },
> > +{ 571, "shm_open2_args", "%s(%#x, %#x, %o, %#x, %#x)", NULL, NULL },
> > +{ 572, "shm_rename_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 483, "shm_unlink_args", "%s(%#x)", NULL, NULL },
> > +{ 228, "shmat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 512, "shmctl_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 230, "shmdt_args", "%s(%#x)", NULL, NULL },
> > +{ 231, "shmget_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 171, "shmsys_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 134, "shutdown_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 416, "sigaction_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 53, "sigaltstack_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 573, "sigfastblock_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 343, "sigpending_args", "%s(%#x)", NULL, NULL },
> > +{ 340, "sigprocmask_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 456, "sigqueue_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 417, "sigreturn_args", "%s(%#x)", NULL, NULL },
> > +{ 341, "sigsuspend_args", "%s(%#x)", NULL, NULL },
> > +{ 345, "sigtimedwait_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 429, "sigwait_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 346, "sigwaitinfo_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 97, "socket_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 135, "socketpair_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 555, "statfs_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 423, "swapcontext_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 582, "swapoff_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 85, "swapon_args", "%s(%#x)", NULL, NULL },
> > +{ 57, "symlink_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 502, "symlinkat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 36, "sync_args", NULL, NULL, NULL },
> > +{ 165, "sysarch_args", "%s(%#x, %s)", NULL, NULL },
> > +{ 430, "thr_create_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 431, "thr_exit_args", "%s(%#x)", NULL, NULL },
> > +{ 481, "thr_kill2_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 433, "thr_kill_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 455, "thr_new_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 432, "thr_self_args", "%s(%#x)", NULL, NULL },
> > +{ 464, "thr_set_name_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 442, "thr_suspend_args", "%s(%#x)", NULL, NULL },
> > +{ 443, "thr_wake_args", "%s(%#x)", NULL, NULL },
> > +{ 585, "timerfd_create_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 586, "timerfd_gettime_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 587, "timerfd_settime_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 479, "truncate_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 60, "umask_args", "%s(%o)", NULL, NULL },
> > +{ 205, "undelete_args", "%s(%#x)", NULL, NULL },
> > +{ 10, "unlink_args", "%s(%#x)", NULL, NULL },
> > +{ 503, "unlinkat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 22, "unmount_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 547, "utimensat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 138, "utimes_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 335, "utrace_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 392, "uuidgen_args", "%s(%#x, %#x)", NULL, NULL },
> > +{ 66, "vfork_args", NULL, NULL, NULL },
> > +{ 7, "wait4_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 532, "wait6_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
> > +{ 4, "write_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 121, "writev_args", "%s(%#x, %#x, %#x)", NULL, NULL },
> > +{ 321, "yield_args", NULL, NULL, NULL },
> >
> > --
> > 2.52.0
> >
>
>

[-- Attachment #2: Type: text/html, Size: 44081 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH v2 5/5] bsd-user: Regnerate strace.list
  2026-04-30 16:17     ` Warner Losh
@ 2026-05-01  3:00       ` Warner Losh
  0 siblings, 0 replies; 15+ messages in thread
From: Warner Losh @ 2026-05-01  3:00 UTC (permalink / raw)
  To: Daniel P. Berrangé
  Cc: qemu-devel, Kyle Evans, Paolo Bonzini, Marc-André Lureau,
	Philippe Mathieu-Daudé, Pierrick Bouvier

[-- Attachment #1: Type: text/plain, Size: 33035 bytes --]

On Thu, Apr 30, 2026 at 10:17 AM Warner Losh <imp@bsdimp.com> wrote:

>
>
> On Thu, Apr 30, 2026 at 2:18 AM Daniel P. Berrangé <berrange@redhat.com>
> wrote:
>
>> On Wed, Apr 29, 2026 at 08:38:55AM -0600, Warner Losh wrote:
>> > Note: I derived this script from one of the FreeBSD system call
>> > generation scripts, so it needs to be BSD-2-Clause license, which
>> > deviates a bit from the GPL-2.0-or-newer preference, but I think is OK
>> > since it's not folded into the qemu binaries themselves (and output of
>> > scripts is typically public domain, as is the case here).
>>
>> Yes, that's all absolutely fine - when pulling incode from outside,
>> or derived from outside, it is required to preserve the license.
>> The GPL-2.0-or-newer rule only applies to green field code written
>> for QEMU.
>>
>> It would be fine even if it applied to code that needs to be linked
>> into QEMU, since BSD-2-Clause is compatible with GPL-2 in a combined
>> work.
>>
>> >                                                           This script is
>> > written in lua, but every FreeBSD installation has a 'flua' binary that
>> > can run this script, and it leverages about 7k lines of library and
>> > metadata FreeBSD maintains well.
>> >
>> > Signed-off-by: Warner Losh <imp@bsdimp.com>
>> > ---
>> >  bsd-user/freebsd/scripts/strace.lua | 117 ++++++
>> >  bsd-user/freebsd/strace.list        | 708
>> ++++++++++++++++++++++--------------
>> >  2 files changed, 556 insertions(+), 269 deletions(-)
>> >
>> > diff --git a/bsd-user/freebsd/scripts/strace.lua
>> b/bsd-user/freebsd/scripts/strace.lua
>> > new file mode 100755
>> > index 0000000000..c89e8e3aeb
>> > --- /dev/null
>> > +++ b/bsd-user/freebsd/scripts/strace.lua
>> > @@ -0,0 +1,117 @@
>>
>> > +                             gen:write(string.format(
>> > +                                 "{ %d, \"%s\", %s, %s, NULL },\n",
>> > +                                 v.num, v.arg_alias, fmt, fcn))
>>
>> Is there a reason to use v.num, instead of the symbolic name that
>> was previously used ?  eg something like:
>>
>>     "{ TARGET_FREEBSD_NR_%s, \"%s\", %s, %s, NULL },\n",
>>     v.arg_alias, v.arg_alias, fmt, fcn))
>>
>
> Yes. Since we're now generating the TARGET_FREEBSD_NR_ symbols from
> sys/syscalls.h,
> there are going to be some that are undefined. FreeBSD current introduces
> new system calls
> from time to time that older, but still supported, branches do not have. I
> watned one file that
> would work on all supported versions. Since adding an #ifdef before each
> line exploded things,
> and since you can't macroize #ifdef, and since the FreeBSD system call
> numbers are completely
> stable and never change and since humans rarely read this file, I used the
> number so that it
> would work everywhere.  I thought about adding a comment on each line, but
> the syscall name
> is the next field over so it wouldn't add much, if any, value.
>
>
>>
>> > diff --git a/bsd-user/freebsd/strace.list b/bsd-user/freebsd/strace.list
>> > index d7f61f480e..2c4176475a 100644
>> > --- a/bsd-user/freebsd/strace.list
>> > +++ b/bsd-user/freebsd/strace.list
>> > @@ -1,273 +1,443 @@
>> >  /*
>>
>> If comparing the first few:
>>
>> > -{ TARGET_FREEBSD_NR___acl_aclcheck_fd, "__acl_aclcheck_fd", "%s(%d,
>> %d, %#x)", NULL, NULL },
>> > -{ TARGET_FREEBSD_NR___acl_aclcheck_file, "__acl_aclcheck_file",
>> "%s(\"%s\", %d, %#x)", NULL, NULL },
>> > -{ TARGET_FREEBSD_NR___acl_aclcheck_link, "__acl_aclcheck_link",
>> "%s(\"%s\", %d, %#x)", NULL, NULL },
>>
>> vs
>>
>> > +{ 354, "__acl_aclcheck_fd_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 353, "__acl_aclcheck_file_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 428, "__acl_aclcheck_link_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>>
>> The args pattern has changed significantly. Everything is now
>> %#x, where as before it was formatting strings and integers.
>>
>> Looking further at just the new definitions, essentially
>> everything is now %#x.  Is that really intentional ? If
>> so just put a note in the commit message about why nearly
>> all the args are changing format.
>>
>
> Hmmm, That's surprising to me. I'll double check what's going on to make
> sure my logic is correct since that's not what was intended, nor what
> earlier versions of the script produced.
>

OK. Something really weird is going on, so I'm going to drop the last hunk
of the
patch, and resend the patch one more time because I had too many files added
to bsd-user/freebsd/meson.build.

Warner


> Warner
>
>
>> > +{ 352, "__acl_delete_fd_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 351, "__acl_delete_file_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 427, "__acl_delete_link_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 349, "__acl_get_fd_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 347, "__acl_get_file_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 425, "__acl_get_link_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 350, "__acl_set_fd_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 348, "__acl_set_file_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 426, "__acl_set_link_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 515, "__cap_rights_get_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 326, "__getcwd_args", "%s(%s, %#x)", NULL, NULL },
>> > +{ 415, "__mac_execve_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 386, "__mac_get_fd_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 387, "__mac_get_file_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 410, "__mac_get_link_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 409, "__mac_get_pid_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 384, "__mac_get_proc_args", "%s(%#x)", NULL, NULL },
>> > +{ 388, "__mac_set_fd_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 389, "__mac_set_file_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 411, "__mac_set_link_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 385, "__mac_set_proc_args", "%s(%#x)", NULL, NULL },
>> > +{ 574, "__realpathat_args", "%s(%#x, %#x, %s, %#x, %#x)", NULL, NULL },
>> > +{ 510, "__semctl_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 374, "__setugid_args", "%s(%#x)", NULL, NULL },
>> > +{ 577, "__specialfd_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 202, "__sysctl_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL
>> },
>> > +{ 570, "__sysctlbyname_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)",
>> NULL, NULL },
>> > +{ 1, "_exit_args", "%s(%#x)", NULL, NULL },
>> > +{ 454, "_umtx_op_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 463, "abort2_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 541, "accept4_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 30, "accept_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 33, "access_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 51, "acct_args", "%s(%#x)", NULL, NULL },
>> > +{ 140, "adjtime_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 377, "afs3_syscall_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x, %#x)",
>> NULL, NULL },
>> > +{ 316, "aio_cancel_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 317, "aio_error_args", "%s(%#x)", NULL, NULL },
>> > +{ 465, "aio_fsync_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 543, "aio_mlock_args", "%s(%#x)", NULL, NULL },
>> > +{ 255, "aio_read_args", "%s(%#x)", NULL, NULL },
>> > +{ 579, "aio_readv_args", "%s(%#x)", NULL, NULL },
>> > +{ 314, "aio_return_args", "%s(%#x)", NULL, NULL },
>> > +{ 315, "aio_suspend_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 359, "aio_waitcomplete_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 256, "aio_write_args", "%s(%#x)", NULL, NULL },
>> > +{ 578, "aio_writev_args", "%s(%#x)", NULL, NULL },
>> > +{ 445, "audit_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 453, "auditctl_args", "%s(%#x)", NULL, NULL },
>> > +{ 446, "auditon_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 104, "bind_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 538, "bindat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 17, "break_args", "%s(%s)", NULL, NULL },
>> > +{ 516, "cap_enter_args", NULL, NULL, NULL },
>> > +{ 537, "cap_fcntls_get_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 536, "cap_fcntls_limit_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 517, "cap_getmode_args", "%s(%#x)", NULL, NULL },
>> > +{ 535, "cap_ioctls_get_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 534, "cap_ioctls_limit_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 533, "cap_rights_limit_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 12, "chdir_args", "%s(%#x)", NULL, NULL },
>> > +{ 34, "chflags_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 540, "chflagsat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 15, "chmod_args", "%s(%#x, %o)", NULL, NULL },
>> > +{ 16, "chown_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 61, "chroot_args", "%s(%#x)", NULL, NULL },
>> > +{ 247, "clock_getcpuclockid2_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 234, "clock_getres_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 232, "clock_gettime_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 244, "clock_nanosleep_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 233, "clock_settime_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 6, "close_args", "%s(%#x)", NULL, NULL },
>> > +{ 575, "close_range_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 98, "connect_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 539, "connectat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 569, "copy_file_range_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)",
>> NULL, NULL },
>> > +{ 484, "cpuset_args", "%s(%#x)", NULL, NULL },
>> > +{ 487, "cpuset_getaffinity_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL,
>> NULL },
>> > +{ 561, "cpuset_getdomain_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)",
>> NULL, NULL },
>> > +{ 486, "cpuset_getid_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 488, "cpuset_setaffinity_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL,
>> NULL },
>> > +{ 562, "cpuset_setdomain_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)",
>> NULL, NULL },
>> > +{ 485, "cpuset_setid_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 90, "dup2_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 41, "dup_args", "%s(%#x)", NULL, NULL },
>> > +{ 376, "eaccess_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 59, "execve_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 373, "extattr_delete_fd_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 358, "extattr_delete_file_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 414, "extattr_delete_link_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 372, "extattr_get_fd_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL,
>> NULL },
>> > +{ 357, "extattr_get_file_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL,
>> NULL },
>> > +{ 413, "extattr_get_link_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL,
>> NULL },
>> > +{ 437, "extattr_list_fd_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 438, "extattr_list_file_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL
>> },
>> > +{ 439, "extattr_list_link_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL
>> },
>> > +{ 371, "extattr_set_fd_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL,
>> NULL },
>> > +{ 356, "extattr_set_file_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL,
>> NULL },
>> > +{ 412, "extattr_set_link_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL,
>> NULL },
>> > +{ 355, "extattrctl_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 592, "exterrctl_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 489, "faccessat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 13, "fchdir_args", "%s(%#x)", NULL, NULL },
>> > +{ 35, "fchflags_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 124, "fchmod_args", "%s(%#x, %o)", NULL, NULL },
>> > +{ 490, "fchmodat_args", "%s(%#x, %#x, %o, %#x)", NULL, NULL },
>> > +{ 123, "fchown_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 491, "fchownat_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 590, "fchroot_args", "%s(%#x)", NULL, NULL },
>> > +{ 92, "fcntl_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 550, "fdatasync_args", "%s(%#x)", NULL, NULL },
>> > +{ 492, "fexecve_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 241, "ffclock_getcounter_args", "%s(%#x)", NULL, NULL },
>> > +{ 243, "ffclock_getestimate_args", "%s(%#x)", NULL, NULL },
>> > +{ 242, "ffclock_setestimate_args", "%s(%#x)", NULL, NULL },
>> > +{ 565, "fhlink_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 566, "fhlinkat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 298, "fhopen_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 567, "fhreadlink_args", "%s(%#x, %s, %#x)", NULL, NULL },
>> > +{ 553, "fhstat_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 558, "fhstatfs_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 131, "flock_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 2, "fork_args", NULL, NULL, NULL },
>> > +{ 192, "fpathconf_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 434, "freebsd10__umtx_lock_args", "%s(%#x)", NULL, NULL },
>> > +{ 435, "freebsd10__umtx_unlock_args", "%s(%#x)", NULL, NULL },
>> > +{ 42, "freebsd10_pipe_args", NULL, NULL, NULL },
>> > +{ 299, "freebsd11_fhstat_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 398, "freebsd11_fhstatfs_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 189, "freebsd11_fstat_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 493, "freebsd11_fstatat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL
>> },
>> > +{ 397, "freebsd11_fstatfs_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 272, "freebsd11_getdents_args", "%s(%#x, %s, %#x)", NULL, NULL },
>> > +{ 196, "freebsd11_getdirentries_args", "%s(%#x, %s, %#x, %#x)", NULL,
>> NULL },
>> > +{ 395, "freebsd11_getfsstat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 363, "freebsd11_kevent_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)",
>> NULL, NULL },
>> > +{ 190, "freebsd11_lstat_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 14, "freebsd11_mknod_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 498, "freebsd11_mknodat_args", "%s(%#x, %#x, %o, %#x)", NULL, NULL },
>> > +{ 279, "freebsd11_nfstat_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 280, "freebsd11_nlstat_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 278, "freebsd11_nstat_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 188, "freebsd11_stat_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 396, "freebsd11_statfs_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 72, "freebsd11_vadvise_args", "%s(%#x)", NULL, NULL },
>> > +{ 509, "freebsd12_closefrom_args", "%s(%#x)", NULL, NULL },
>> > +{ 482, "freebsd12_shm_open_args", "%s(%#x, %#x, %o)", NULL, NULL },
>> > +{ 424, "freebsd13_swapoff_args", "%s(%#x)", NULL, NULL },
>> > +{ 79, "freebsd14_getgroups_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 80, "freebsd14_setgroups_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 580, "fspacectl_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 551, "fstat_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 552, "fstatat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 556, "fstatfs_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 95, "fsync_args", "%s(%#x)", NULL, NULL },
>> > +{ 480, "ftruncate_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 568, "funlinkat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 546, "futimens_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 206, "futimes_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 494, "futimesat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 451, "getaudit_addr_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 449, "getaudit_args", "%s(%#x)", NULL, NULL },
>> > +{ 447, "getauid_args", "%s(%#x)", NULL, NULL },
>> > +{ 421, "getcontext_args", "%s(%#x)", NULL, NULL },
>> > +{ 554, "getdirentries_args", "%s(%#x, %s, %#x, %#x)", NULL, NULL },
>> > +{ 89, "getdtablesize_args", NULL, NULL, NULL },
>> > +{ 43, "getegid_args", NULL, NULL, NULL },
>> > +{ 25, "geteuid_args", NULL, NULL, NULL },
>> > +{ 161, "getfh_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 564, "getfhat_args", "%s(%#x, %s, %#x, %#x)", NULL, NULL },
>> > +{ 557, "getfsstat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 47, "getgid_args", NULL, NULL, NULL },
>> > +{ 595, "getgroups_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 86, "getitimer_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 49, "getlogin_args", "%s(%s, %#x)", NULL, NULL },
>> > +{ 523, "getloginclass_args", "%s(%s, %#x)", NULL, NULL },
>> > +{ 31, "getpeername_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 207, "getpgid_args", "%s(%#x)", NULL, NULL },
>> > +{ 81, "getpgrp_args", NULL, NULL, NULL },
>> > +{ 20, "getpid_args", NULL, NULL, NULL },
>> > +{ 39, "getppid_args", NULL, NULL, NULL },
>> > +{ 100, "getpriority_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 563, "getrandom_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 361, "getresgid_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 360, "getresuid_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 194, "getrlimit_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 589, "getrlimitusage_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 117, "getrusage_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 310, "getsid_args", "%s(%#x)", NULL, NULL },
>> > +{ 32, "getsockname_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 118, "getsockopt_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 116, "gettimeofday_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 24, "getuid_args", NULL, NULL, NULL },
>> > +{ 593, "inotify_add_watch_at_args", "%s(%#x, %#x, %#x, %#x)", NULL,
>> NULL },
>> > +{ 594, "inotify_rm_watch_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 54, "ioctl_args", "%s(%#x, %#x, %s)", NULL, NULL },
>> > +{ 253, "issetugid_args", NULL, NULL, NULL },
>> > +{ 338, "jail_args", "%s(%#x)", NULL, NULL },
>> > +{ 436, "jail_attach_args", "%s(%#x)", NULL, NULL },
>> > +{ 597, "jail_attach_jd_args", "%s(%#x)", NULL, NULL },
>> > +{ 506, "jail_get_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 508, "jail_remove_args", "%s(%#x)", NULL, NULL },
>> > +{ 598, "jail_remove_jd_args", "%s(%#x)", NULL, NULL },
>> > +{ 507, "jail_set_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 588, "kcmp_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 390, "kenv_args", "%s(%#x, %#x, %s, %#x)", NULL, NULL },
>> > +{ 560, "kevent_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 599, "kexec_load_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 37, "kill_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 306, "kldfind_args", "%s(%#x)", NULL, NULL },
>> > +{ 309, "kldfirstmod_args", "%s(%#x)", NULL, NULL },
>> > +{ 304, "kldload_args", "%s(%#x)", NULL, NULL },
>> > +{ 307, "kldnext_args", "%s(%#x)", NULL, NULL },
>> > +{ 308, "kldstat_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 337, "kldsym_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 305, "kldunload_args", "%s(%#x)", NULL, NULL },
>> > +{ 444, "kldunloadf_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 461, "kmq_notify_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 457, "kmq_open_args", "%s(%#x, %#x, %o, %#x)", NULL, NULL },
>> > +{ 458, "kmq_setattr_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 459, "kmq_timedreceive_args", "%s(%#x, %s, %#x, %#x, %#x)", NULL,
>> NULL },
>> > +{ 460, "kmq_timedsend_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL
>> },
>> > +{ 462, "kmq_unlink_args", "%s(%#x)", NULL, NULL },
>> > +{ 362, "kqueue_args", NULL, NULL, NULL },
>> > +{ 583, "kqueuex_args", "%s(%#x)", NULL, NULL },
>> > +{ 400, "ksem_close_args", "%s(%#x)", NULL, NULL },
>> > +{ 408, "ksem_destroy_args", "%s(%#x)", NULL, NULL },
>> > +{ 407, "ksem_getvalue_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 404, "ksem_init_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 405, "ksem_open_args", "%s(%#x, %#x, %#x, %o, %#x)", NULL, NULL },
>> > +{ 401, "ksem_post_args", "%s(%#x)", NULL, NULL },
>> > +{ 441, "ksem_timedwait_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 403, "ksem_trywait_args", "%s(%#x)", NULL, NULL },
>> > +{ 406, "ksem_unlink_args", "%s(%#x)", NULL, NULL },
>> > +{ 402, "ksem_wait_args", "%s(%#x)", NULL, NULL },
>> > +{ 235, "ktimer_create_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 236, "ktimer_delete_args", "%s(%#x)", NULL, NULL },
>> > +{ 239, "ktimer_getoverrun_args", "%s(%#x)", NULL, NULL },
>> > +{ 238, "ktimer_gettime_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 237, "ktimer_settime_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 45, "ktrace_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 391, "lchflags_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 274, "lchmod_args", "%s(%#x, %o)", NULL, NULL },
>> > +{ 254, "lchown_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 160, "lgetfh_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 9, "link_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 495, "linkat_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 257, "lio_listio_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 106, "listen_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 513, "lpathconf_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 478, "lseek_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 276, "lutimes_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 394, "mac_syscall_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 75, "madvise_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 584, "membarrier_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 78, "mincore_args", "%s(%#x, %#x, %s)", NULL, NULL },
>> > +{ 250, "minherit_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 136, "mkdir_args", "%s(%#x, %o)", NULL, NULL },
>> > +{ 496, "mkdirat_args", "%s(%#x, %#x, %o)", NULL, NULL },
>> > +{ 132, "mkfifo_args", "%s(%#x, %o)", NULL, NULL },
>> > +{ 497, "mkfifoat_args", "%s(%#x, %#x, %o)", NULL, NULL },
>> > +{ 559, "mknodat_args", "%s(%#x, %#x, %o, %#x)", NULL, NULL },
>> > +{ 203, "mlock_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 324, "mlockall_args", "%s(%#x)", NULL, NULL },
>> > +{ 477, "mmap_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 303, "modfind_args", "%s(%#x)", NULL, NULL },
>> > +{ 302, "modfnext_args", "%s(%#x)", NULL, NULL },
>> > +{ 300, "modnext_args", "%s(%#x)", NULL, NULL },
>> > +{ 301, "modstat_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 21, "mount_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 74, "mprotect_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 511, "msgctl_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 225, "msgget_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 227, "msgrcv_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 226, "msgsnd_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 170, "msgsys_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 65, "msync_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 204, "munlock_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 325, "munlockall_args", NULL, NULL, NULL },
>> > +{ 73, "munmap_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 240, "nanosleep_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 155, "nfssvc_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 154, "nlm_syscall_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 378, "nmount_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 339, "nnpfs_syscall_args", "%s(%#x, %s, %#x, %#x, %#x)", NULL, NULL
>> },
>> > +{ 176, "ntp_adjtime_args", "%s(%#x)", NULL, NULL },
>> > +{ 248, "ntp_gettime_args", "%s(%#x)", NULL, NULL },
>> > +{ 5, "open_args", "%s(%#x, %#x, %o)", NULL, NULL },
>> > +{ 499, "openat_args", "%s(%#x, %#x, %#x, %o)", NULL, NULL },
>> > +{ 191, "pathconf_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 518, "pdfork_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 520, "pdgetpid_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 519, "pdkill_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 600, "pdrfork_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 601, "pdwait_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 542, "pipe2_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 209, "poll_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 531, "posix_fadvise_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 530, "posix_fallocate_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 504, "posix_openpt_args", "%s(%#x)", NULL, NULL },
>> > +{ 545, "ppoll_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 475, "pread_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 289, "preadv_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 544, "procctl_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 44, "profil_args", "%s(%s, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 522, "pselect_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL
>> },
>> > +{ 26, "ptrace_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 476, "pwrite_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 290, "pwritev_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 148, "quotactl_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 528, "rctl_add_rule_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 527, "rctl_get_limits_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 525, "rctl_get_racct_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 526, "rctl_get_rules_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 529, "rctl_remove_rule_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 3, "read_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 58, "readlink_args", "%s(%#x, %s, %#x)", NULL, NULL },
>> > +{ 500, "readlinkat_args", "%s(%#x, %#x, %s, %#x)", NULL, NULL },
>> > +{ 120, "readv_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 55, "reboot_args", "%s(%#x)", NULL, NULL },
>> > +{ 29, "recvfrom_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL
>> },
>> > +{ 27, "recvmsg_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 128, "rename_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 602, "renameat2_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 501, "renameat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 56, "revoke_args", "%s(%#x)", NULL, NULL },
>> > +{ 251, "rfork_args", "%s(%#x)", NULL, NULL },
>> > +{ 137, "rmdir_args", "%s(%#x)", NULL, NULL },
>> > +{ 576, "rpctls_syscall_args", "%s(%#x)", NULL, NULL },
>> > +{ 166, "rtprio_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 466, "rtprio_thread_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 332, "sched_get_priority_max_args", "%s(%#x)", NULL, NULL },
>> > +{ 333, "sched_get_priority_min_args", "%s(%#x)", NULL, NULL },
>> > +{ 581, "sched_getcpu_args", NULL, NULL, NULL },
>> > +{ 328, "sched_getparam_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 330, "sched_getscheduler_args", "%s(%#x)", NULL, NULL },
>> > +{ 334, "sched_rr_get_interval_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 327, "sched_setparam_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 329, "sched_setscheduler_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 331, "sched_yield_args", NULL, NULL, NULL },
>> > +{ 474, "sctp_generic_recvmsg_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x,
>> %#x)", NULL, NULL },
>> > +{ 472, "sctp_generic_sendmsg_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x,
>> %#x)", NULL, NULL },
>> > +{ 473, "sctp_generic_sendmsg_iov_args", "%s(%#x, %#x, %#x, %#x, %#x,
>> %#x, %#x)", NULL, NULL },
>> > +{ 471, "sctp_peeloff_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 93, "select_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 221, "semget_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 222, "semop_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 169, "semsys_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 393, "sendfile_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x, %#x)", NULL,
>> NULL },
>> > +{ 28, "sendmsg_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 133, "sendto_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 452, "setaudit_addr_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 450, "setaudit_args", "%s(%#x)", NULL, NULL },
>> > +{ 448, "setauid_args", "%s(%#x)", NULL, NULL },
>> > +{ 422, "setcontext_args", "%s(%#x)", NULL, NULL },
>> > +{ 591, "setcred_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 182, "setegid_args", "%s(%#x)", NULL, NULL },
>> > +{ 183, "seteuid_args", "%s(%#x)", NULL, NULL },
>> > +{ 175, "setfib_args", "%s(%#x)", NULL, NULL },
>> > +{ 181, "setgid_args", "%s(%#x)", NULL, NULL },
>> > +{ 596, "setgroups_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 83, "setitimer_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 50, "setlogin_args", "%s(%#x)", NULL, NULL },
>> > +{ 524, "setloginclass_args", "%s(%#x)", NULL, NULL },
>> > +{ 82, "setpgid_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 96, "setpriority_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 127, "setregid_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 312, "setresgid_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 311, "setresuid_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 126, "setreuid_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 195, "setrlimit_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 147, "setsid_args", NULL, NULL, NULL },
>> > +{ 105, "setsockopt_args", "%s(%#x, %#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 122, "settimeofday_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 23, "setuid_args", "%s(%#x)", NULL, NULL },
>> > +{ 571, "shm_open2_args", "%s(%#x, %#x, %o, %#x, %#x)", NULL, NULL },
>> > +{ 572, "shm_rename_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 483, "shm_unlink_args", "%s(%#x)", NULL, NULL },
>> > +{ 228, "shmat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 512, "shmctl_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 230, "shmdt_args", "%s(%#x)", NULL, NULL },
>> > +{ 231, "shmget_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 171, "shmsys_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 134, "shutdown_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 416, "sigaction_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 53, "sigaltstack_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 573, "sigfastblock_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 343, "sigpending_args", "%s(%#x)", NULL, NULL },
>> > +{ 340, "sigprocmask_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 456, "sigqueue_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 417, "sigreturn_args", "%s(%#x)", NULL, NULL },
>> > +{ 341, "sigsuspend_args", "%s(%#x)", NULL, NULL },
>> > +{ 345, "sigtimedwait_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 429, "sigwait_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 346, "sigwaitinfo_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 97, "socket_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 135, "socketpair_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 555, "statfs_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 423, "swapcontext_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 582, "swapoff_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 85, "swapon_args", "%s(%#x)", NULL, NULL },
>> > +{ 57, "symlink_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 502, "symlinkat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 36, "sync_args", NULL, NULL, NULL },
>> > +{ 165, "sysarch_args", "%s(%#x, %s)", NULL, NULL },
>> > +{ 430, "thr_create_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 431, "thr_exit_args", "%s(%#x)", NULL, NULL },
>> > +{ 481, "thr_kill2_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 433, "thr_kill_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 455, "thr_new_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 432, "thr_self_args", "%s(%#x)", NULL, NULL },
>> > +{ 464, "thr_set_name_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 442, "thr_suspend_args", "%s(%#x)", NULL, NULL },
>> > +{ 443, "thr_wake_args", "%s(%#x)", NULL, NULL },
>> > +{ 585, "timerfd_create_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 586, "timerfd_gettime_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 587, "timerfd_settime_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 479, "truncate_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 60, "umask_args", "%s(%o)", NULL, NULL },
>> > +{ 205, "undelete_args", "%s(%#x)", NULL, NULL },
>> > +{ 10, "unlink_args", "%s(%#x)", NULL, NULL },
>> > +{ 503, "unlinkat_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 22, "unmount_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 547, "utimensat_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 138, "utimes_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 335, "utrace_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 392, "uuidgen_args", "%s(%#x, %#x)", NULL, NULL },
>> > +{ 66, "vfork_args", NULL, NULL, NULL },
>> > +{ 7, "wait4_args", "%s(%#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 532, "wait6_args", "%s(%#x, %#x, %#x, %#x, %#x, %#x)", NULL, NULL },
>> > +{ 4, "write_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 121, "writev_args", "%s(%#x, %#x, %#x)", NULL, NULL },
>> > +{ 321, "yield_args", NULL, NULL, NULL },
>> >
>> > --
>> > 2.52.0
>> >
>>
>>

[-- Attachment #2: Type: text/html, Size: 44927 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2026-05-01  3:01 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-29 14:38 [PATCH v2 0/5] bsd-user: Generate system call numbers Warner Losh
2026-04-29 14:38 ` [PATCH v2 1/5] bsd-user: Add syscall header generator for FreeBSD Warner Losh
2026-04-29 22:30   ` Pierrick Bouvier
2026-04-29 14:38 ` [PATCH v2 2/5] bsd-user: Delete sbrk and sstk system calls Warner Losh
2026-04-29 22:31   ` Pierrick Bouvier
2026-04-29 14:38 ` [PATCH v2 3/5] bsd-user: Create os-syscall.h Warner Losh
2026-04-29 22:33   ` Pierrick Bouvier
2026-04-29 14:38 ` [PATCH v2 4/5] bsd-user: Switch to generated syscall_nr.h Warner Losh
2026-04-29 22:33   ` Pierrick Bouvier
2026-04-29 14:38 ` [PATCH v2 5/5] bsd-user: Regnerate strace.list Warner Losh
2026-04-29 22:41   ` Pierrick Bouvier
2026-04-30  2:21     ` Warner Losh
2026-04-30  8:18   ` Daniel P. Berrangé
2026-04-30 16:17     ` Warner Losh
2026-05-01  3:00       ` Warner Losh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.