svn commit: r327919 - head/usr.bin/truss

John Baldwin jhb at freebsd.org
Mon Jan 15 22:43:10 UTC 2018


On Saturday, January 13, 2018 01:59:35 PM Michael Tuexen wrote:
> Author: tuexen
> Date: Sat Jan 13 13:59:35 2018
> New Revision: 327919
> URL: https://svnweb.freebsd.org/changeset/base/327919
> 
> Log:
>   Add support for readv() and writev() to truss.
>   
>   Sponsored by:	Netflix, Inc.
> 
> Modified:
>   head/usr.bin/truss/syscall.h
>   head/usr.bin/truss/syscalls.c
> 
> Modified: head/usr.bin/truss/syscalls.c
> ==============================================================================
> --- head/usr.bin/truss/syscalls.c	Sat Jan 13 13:53:05 2018	(r327918)
> +++ head/usr.bin/truss/syscalls.c	Sat Jan 13 13:59:35 2018	(r327919)
> @@ -386,6 +386,8 @@ static struct syscall decoded_syscalls[] = {
>  	  .args = { { Name, 0 }, { Quotactlcmd, 1 }, { Int, 2 }, { Ptr, 3 } } },
>  	{ .name = "read", .ret_type = 1, .nargs = 3,
>  	  .args = { { Int, 0 }, { BinString | OUT, 1 }, { Sizet, 2 } } },
> +	{ .name = "readv", .ret_type = 1, .nargs = 3,
> +	  .args = { { Int, 0 }, { Iovec, 1 }, { Int, 2 } } },
>  	{ .name = "readlink", .ret_type = 1, .nargs = 3,
>  	  .args = { { Name, 0 }, { Readlinkres | OUT, 1 }, { Sizet, 2 } } },

Please keep the array of syscall names sorted.

>  	{ .name = "readlinkat", .ret_type = 1, .nargs = 4,

-- 
John Baldwin


More information about the svn-src-head mailing list