All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniel P. Berrangé" <berrange@redhat.com>
To: Warner Losh <imp@bsdimp.com>
Cc: qemu-devel@nongnu.org, "Kyle Evans" <kevans@freebsd.org>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Marc-André Lureau" <marcandre.lureau@redhat.com>,
	"Philippe Mathieu-Daudé" <philmd@linaro.org>,
	"Pierrick Bouvier" <pierrick.bouvier@oss.qualcomm.com>
Subject: Re: [PATCH v2 5/5] bsd-user: Regnerate strace.list
Date: Thu, 30 Apr 2026 09:18:14 +0100	[thread overview]
Message-ID: <afMQRlu2_ONaBxCX@redhat.com> (raw)
In-Reply-To: <20260429-syscall-nr-v2-5-67a8d09dc13e@bsdimp.com>

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
> 



  parent reply	other threads:[~2026-04-30  8:18 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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é [this message]
2026-04-30 16:17     ` Warner Losh
2026-05-01  3:00       ` Warner Losh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=afMQRlu2_ONaBxCX@redhat.com \
    --to=berrange@redhat.com \
    --cc=imp@bsdimp.com \
    --cc=kevans@freebsd.org \
    --cc=marcandre.lureau@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=philmd@linaro.org \
    --cc=pierrick.bouvier@oss.qualcomm.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.