Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 May 2021 13:35:25 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 8aed0580e40e - stable/13 - truss: Decode FreeBSD 11 mknod(2) and mknodat(2)
Message-ID:  <202105191335.14JDZPPj074679@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=8aed0580e40e08446ef1fc2cc9bef70cb5f68ec1

commit 8aed0580e40e08446ef1fc2cc9bef70cb5f68ec1
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2021-05-12 13:42:11 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2021-05-19 13:32:40 +0000

    truss: Decode FreeBSD 11 mknod(2) and mknodat(2)
    
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit cd497bd40bb65b5e4603d57614eb15ca7d947a10)
---
 usr.bin/truss/syscalls.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/usr.bin/truss/syscalls.c b/usr.bin/truss/syscalls.c
index eaea3ad96765..a8eed9eed355 100644
--- a/usr.bin/truss/syscalls.c
+++ b/usr.bin/truss/syscalls.c
@@ -193,6 +193,10 @@ static const struct syscall_decode decoded_syscalls[] = {
 		    { Kevent11 | OUT, 3 }, { Int, 4 }, { Timespec, 5 } } },
 	{ .name = "compat11.lstat", .ret_type = 1, .nargs = 2,
 	  .args = { { Name | IN, 0 }, { Stat11 | OUT, 1 } } },
+	{ .name = "compat11.mknod", .ret_type = 1, .nargs = 3,
+	  .args = { { Name, 0 }, { Octal, 1 }, { Int, 2 } } },
+	{ .name = "compat11.mknodat", .ret_type = 1, .nargs = 4,
+	  .args = { { Atfd, 0 }, { Name, 1 }, { Octal, 2 }, { Int, 3 } } },
 	{ .name = "compat11.stat", .ret_type = 1, .nargs = 2,
 	  .args = { { Name | IN, 0 }, { Stat11 | OUT, 1 } } },
 	{ .name = "connect", .ret_type = 1, .nargs = 3,
@@ -372,9 +376,9 @@ static const struct syscall_decode decoded_syscalls[] = {
 	{ .name = "mkfifoat", .ret_type = 1, .nargs = 3,
 	  .args = { { Atfd, 0 }, { Name, 1 }, { Octal, 2 } } },
 	{ .name = "mknod", .ret_type = 1, .nargs = 3,
-	  .args = { { Name, 0 }, { Octal, 1 }, { Int, 2 } } },
+	  .args = { { Name, 0 }, { Octal, 1 }, { Quad, 2 } } },
 	{ .name = "mknodat", .ret_type = 1, .nargs = 4,
-	  .args = { { Atfd, 0 }, { Name, 1 }, { Octal, 2 }, { Int, 3 } } },
+	  .args = { { Atfd, 0 }, { Name, 1 }, { Octal, 2 }, { Quad, 3 } } },
 	{ .name = "mlock", .ret_type = 1, .nargs = 2,
 	  .args = { { Ptr, 0 }, { Sizet, 1 } } },
 	{ .name = "mlockall", .ret_type = 1, .nargs = 1,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105191335.14JDZPPj074679>