From nobody Wed Oct 30 21:08:59 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Xf09S6qZ8z5c2qf; Wed, 30 Oct 2024 21:09:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xf09S2sgTz4t1K; Wed, 30 Oct 2024 21:09:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730322540; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=FDlelTvfSZIlPsyjsfEFzX88+HcxyYVFofUqPM5YTaM=; b=evMmOQkZwtFr7xnf5CmmETTuvh7YWfraoVSXzQyERPuoiTkctaiRHz+GnsS4BN1GFq57l8 WxRHo0szrtXHDsN3gtw+iCOmmSWkxAiRzYZtkUsiucy1ygAzZWgEoK0kLqwTY7lbRMrYJT ETia9C5MiGLenNi56Bp2xbCAm6DWmylIwpTeiQqC9tbIJozIt5X9bxxjDDiOZSnbvfvWI9 Z6pLPDzs+bFflV8Pearh8En8gn3YKN6elKQgLs1oLOBqWOOLWgOOydPD//j1J0EWdcxFBN gle8TVEe+Jla7r3G/nKF2xxEavdLLKJ+dgi8IRcwnBvfhCNV50NU/wNaMDfxQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730322540; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=FDlelTvfSZIlPsyjsfEFzX88+HcxyYVFofUqPM5YTaM=; b=Sjs/keS3vKgekvmIlpn+ErpxvGop+rzV2agvK0r8qhQpQ9IhOLQ8edx1533S2eb4BBWuii gStT1I5H5l0DegWcfNRgNC2Lzll+qJa2MeNJctiA/Ta9k7jPiOgDR17gnLt6zA6Q+/KTQ+ NkIFiVNrtL8Hk8JUoLs3i900vMYw5l6FKuzJ/xXDIvbKGb1wYnBIXgVWf658bnACYBuq6y S3DJb1DjFIayMg3Nv3/PdCD7rB7EUjKwc8Qvu+hxhzF6e0lztnszRoK+AjvmiSXtFg4aRQ YVPyfPUOJwGgDM0BBGnwQ/YYS3xS671CcihWFLEkfcf9EB3qVFWi9iNaNEuLUQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730322540; a=rsa-sha256; cv=none; b=ICorpZxF8HRz3GCxYe7yGVwK1y5svSHw4qBRv7IG2+qPJlauIUgLxdRKsN/k/Jol2RVhVa vxbww9LSP8Q/X6ptxV90tQqaWATHeZ+FeqoJVAY7IzNiqOhr27I3SvaGwlUjGCVPTgPUap BKPTEMjl2tU3c2PijCPGksqkEouVoH47On622mGCfBR3qEGh29AogLsIOnZ+al12rkLrgo EfBV4g4DEHg9vER3NjcJqqHSHDXoKlbKn5z1zbCCJorp4XXWUEc1DQbd9drHCbFZzmt1ym b1RyQ0YgegQ9pLE+7xF+WQF6EvVEjl5PpnpQiaEyIF59VYT6w/Gzx4MsMO4SYQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Xf09S0Nkpz1N2H; Wed, 30 Oct 2024 21:09:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 49UL8xEZ053796; Wed, 30 Oct 2024 21:08:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49UL8xlH053793; Wed, 30 Oct 2024 21:08:59 GMT (envelope-from git) Date: Wed, 30 Oct 2024 21:08:59 GMT Message-Id: <202410302108.49UL8xlH053793@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Brooks Davis Subject: git: 913bfd86c1b2 - main - Update mentions of makesyscalls.lua List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: brooks X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 913bfd86c1b2a161c21fccaef63c1e1702560366 Auto-Submitted: auto-generated The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/src/commit/?id=913bfd86c1b2a161c21fccaef63c1e1702560366 commit 913bfd86c1b2a161c21fccaef63c1e1702560366 Author: Brooks Davis AuthorDate: 2024-10-22 17:38:11 +0000 Commit: Brooks Davis CommitDate: 2024-10-30 21:04:31 +0000 Update mentions of makesyscalls.lua It is obsolete and will be removed in a followup commit. --- sys/cddl/dev/systrace/systrace.c | 4 ++-- sys/compat/freebsd32/syscalls.conf | 8 ++++---- sys/conf/sysent.mk | 5 ++--- sys/kern/syscalls.master | 6 +++--- sys/tools/syscalls/README.md | 2 +- 5 files changed, 12 insertions(+), 13 deletions(-) diff --git a/sys/cddl/dev/systrace/systrace.c b/sys/cddl/dev/systrace/systrace.c index 4969343ed06e..c14a663d1995 100644 --- a/sys/cddl/dev/systrace/systrace.c +++ b/sys/cddl/dev/systrace/systrace.c @@ -92,7 +92,7 @@ extern struct sysent linux32_sysent[]; #elif defined(FREEBSD32_SYSTRACE) /* * The syscall arguments are processed into a DTrace argument array - * using a generated function. See sys/tools/makesyscalls.lua. + * using a generated function. See sys/tools/syscalls/README.md. */ #include #include @@ -106,7 +106,7 @@ extern const char *freebsd32_syscallnames[]; #else /* * The syscall arguments are processed into a DTrace argument array - * using a generated function. See sys/tools/makesyscalls.lua. + * using a generated function. See sys/tools/syscalls/README.md. */ #include #include diff --git a/sys/compat/freebsd32/syscalls.conf b/sys/compat/freebsd32/syscalls.conf index a6e47cf470f1..72006631c89e 100644 --- a/sys/compat/freebsd32/syscalls.conf +++ b/sys/compat/freebsd32/syscalls.conf @@ -18,10 +18,10 @@ abi_ptr_array_t="uint32_t" abi_headers="#include " # -# Variables below this line are exceptions to the ABI changes programmatically -# detected by makesyscalls.lua. New system calls should not require an entry -# here in nearly virtually all cases. New entries are almost certainly -# representative of badly designed interfaces. +# Variables below this line are exceptions to the ABI changes +# programmatically detected by sys/tools/syscalls. New system calls +# should not require an entry here in virtually all cases. New entries +# are almost certainly representative of badly designed interfaces. # # System calls that require freebsd32-specific handling: diff --git a/sys/conf/sysent.mk b/sys/conf/sysent.mk index 54531a52e151..66897d3b6b0a 100644 --- a/sys/conf/sysent.mk +++ b/sys/conf/sysent.mk @@ -33,9 +33,8 @@ all: .ORDER: ${GENERATED} sysent: ${GENERATED} -# We slap a .PHONY on makesyscalls.lua so that we regenerate every single time, -# for now, which can be less painful across rebases or other things that may -# have odd effects on mtimes. +# We slap a .PHONY on MAKESYSCALLS_SCRIPT so that we regenerate every +# single time rather than tracking all internal dependencies for now. ${MAKESYSCALLS_SCRIPT}: .PHONY ${GENERATED}: ${MAKESYSCALLS_SCRIPT} ${SRCS} diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master index 849e5ee2f13b..7a7530697e59 100644 --- a/sys/kern/syscalls.master +++ b/sys/kern/syscalls.master @@ -58,10 +58,10 @@ ; - Use u_int and u_long rather than "unsigned (int|long)". ; - size_t is allowed. ; - typedefs are allowed, but new signed types that vary between 32- and -; 64-bit ABIs must be added to makesyscalls.lua so it knows they require -; handling. +; 64-bit ABIs must be added to config.known_abi_flags in +; sys/tools/syscalls/config.lua so it knows they require handling. ; - Always-64-bit types other than dev_t, id_t, and off_t must be added to -; makesyscalls.lua. +; util.is64bitType in sys/tools/syscalls/tools/util.lua. ; For pointers: ; - Prefer structs to typedefs so an ABI-specific suffix (e.g., "32") can ; be prepended (e.g., ucontext_t -> struct ucontext -> struct ucontext32). diff --git a/sys/tools/syscalls/README.md b/sys/tools/syscalls/README.md index 7ae6519360ba..1797411f1aa0 100644 --- a/sys/tools/syscalls/README.md +++ b/sys/tools/syscalls/README.md @@ -1,6 +1,6 @@ # System call creation library Parses `syscalls.master` and packages information into objects with methods. -Modules reproduce the previous file auto-generation of `makesyscalls.lua`. +Modules reproduce the previously monolithic file auto-generation. We generally assume that this script will be run by flua, however we've carefully crafted modules for it that mimic interfaces provided by modules