From nobody Tue Feb 21 09:46:02 2023 X-Original-To: dev-commits-src-all@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 4PLZDB2xzYz3s65L; Tue, 21 Feb 2023 09:46:02 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PLZDB2QpWz3tDZ; Tue, 21 Feb 2023 09:46:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676972762; 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=uuROCFlW+hLaSwKwFmIz/GoE94gO75mGA7C/sQJHR68=; b=RReVkEP9U40/0HY/3+1wqK82PbPAVmV4frnVJS5vuyC5NxSu0zd0B31x+ocFwt/1wo+Mml W3EOcO76EMdXQpJaCTesNUuCZ6a44lqpz+Rew92aLfTj0t3tuYeQBwdNnBvxY29I5WYGBf d2GpNpwfF7rMn7dwTsYDnNNmXAHASsUaLWl4EU4IWuX4/UDV/ltQZTqnn0tGqOA4j0QEBx 5I20K/nONZELyR+xLDpRgzsuKWPV6K3NgKYXa+I4lf6y/cwOKZFoioUpTPqDUNwU1IwfOv WcCyGOGxDf4J5SsLQQdMK7B7J+Nvu56i0GJzWpP+IYiNHfb0lMQcJgF0ygW2Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676972762; 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=uuROCFlW+hLaSwKwFmIz/GoE94gO75mGA7C/sQJHR68=; b=FwUXHi40ht1W2sqs6NcSaFVhp1uQu4EN5JNwaj9/RnZ7o3u+wm+cgV24ci6qig40S4Zuzp 899K6DveF8vkW84yJ5Jrw3JJLkn6LKR4B3e5IWiZeTMpLrQRztRpZR3MR17A9/Qd7nfFyR rwWWONvpIBzfhbTo+LJGdw8HtEu1Yq5SdPSA8B1YKVXvD0HWt7VQt3cRZVk9d2tuA6mvts k1x8jyp0iTlNQwK1OihiBL1tqjmA0Ht1ALatqIXDyVH7otH4Zed9NkyoiWSvThCwhD+sZT 1nuJwC0Lue2IGitbUKFzzgFN1f2Y5x6ozfH6eOmOctw7RquHn2bstrlrhjr9HQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676972762; a=rsa-sha256; cv=none; b=sZ27S3rf9VomO1H/3qIeYNuEhcL5Fm6Eve3iAKJKD1/9qKcM1x62OIk+fOwbSuF5eICanP NSewULjnT76l/wguYbUssANcYvgNvrgO7AanqZb5m9OwsyNFe90zrKJHh4uDC9S7AqOJ2Y XrzNIqUcO5CiJR43Xqu4ObUsuxb+VK8KBQsLhHtvSGHY0sxm/GsYL5dp4EGkfyGCXn4nTX i3rrF0hzt9D/Sx3lfKEQQJOOqtXxw9T7xtkFOsaCaM7xIo5c/RVuCqaiAUzDFjwBIG0lH2 b2YwM6iMCcf+eW4ehMZqqIGqempHCUT4tKIM0s9p2TjZS1TpRNqbA1x+NXmXFQ== 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 4PLZDB1VXwzH0b; Tue, 21 Feb 2023 09:46:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 31L9k2Fe052051; Tue, 21 Feb 2023 09:46:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31L9k2w6052050; Tue, 21 Feb 2023 09:46:02 GMT (envelope-from git) Date: Tue, 21 Feb 2023 09:46:02 GMT Message-Id: <202302210946.31L9k2w6052050@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Thomas Munro Subject: git: 58e3631bd08c - main - truss: Add preadv(2) and pwritev(2). List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tmunro X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 58e3631bd08cf539668951c93ee2e943f963ea05 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by tmunro: URL: https://cgit.FreeBSD.org/src/commit/?id=58e3631bd08cf539668951c93ee2e943f963ea05 commit 58e3631bd08cf539668951c93ee2e943f963ea05 Author: Thomas Munro AuthorDate: 2023-02-21 09:40:14 +0000 Commit: Thomas Munro CommitDate: 2023-02-21 09:40:14 +0000 truss: Add preadv(2) and pwritev(2). We already knew how to decode readv(2)/writev(2). Add the versions with an offset. Reviewed by: asomers Differential Revision: https://reviews.freebsd.org/D27531 MFC after: 2 weeks --- usr.bin/truss/syscalls.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/usr.bin/truss/syscalls.c b/usr.bin/truss/syscalls.c index ab68e079e6ea..2ac4b1a4b003 100644 --- a/usr.bin/truss/syscalls.c +++ b/usr.bin/truss/syscalls.c @@ -428,6 +428,9 @@ static const struct syscall_decode decoded_syscalls[] = { { .name = "pread", .ret_type = 1, .nargs = 4, .args = { { Int, 0 }, { BinString | OUT, 1 }, { Sizet, 2 }, { QuadHex, 3 } } }, + { .name = "preadv", .ret_type = 1, .nargs = 4, + .args = { { Int, 0 }, { Iovec | OUT, 1 }, { Int, 2 }, + { QuadHex, 3 } } }, { .name = "procctl", .ret_type = 1, .nargs = 4, .args = { { Idtype, 0 }, { Quad, 1 }, { Procctl, 2 }, { Ptr, 3 } } }, { .name = "ptrace", .ret_type = 1, .nargs = 4, @@ -435,6 +438,9 @@ static const struct syscall_decode decoded_syscalls[] = { { .name = "pwrite", .ret_type = 1, .nargs = 4, .args = { { Int, 0 }, { BinString | IN, 1 }, { Sizet, 2 }, { QuadHex, 3 } } }, + { .name = "pwritev", .ret_type = 1, .nargs = 4, + .args = { { Int, 0 }, { Iovec | IN, 1 }, { Int, 2 }, + { QuadHex, 3 } } }, { .name = "quotactl", .ret_type = 1, .nargs = 4, .args = { { Name, 0 }, { Quotactlcmd, 1 }, { Int, 2 }, { Ptr, 3 } } }, { .name = "read", .ret_type = 1, .nargs = 3,