git: 58e3631bd08c - main - truss: Add preadv(2) and pwritev(2).
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 21 Feb 2023 09:46:02 UTC
The branch main has been updated by tmunro: URL: https://cgit.FreeBSD.org/src/commit/?id=58e3631bd08cf539668951c93ee2e943f963ea05 commit 58e3631bd08cf539668951c93ee2e943f963ea05 Author: Thomas Munro <tmunro@FreeBSD.org> AuthorDate: 2023-02-21 09:40:14 +0000 Commit: Thomas Munro <tmunro@FreeBSD.org> 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,