aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2021-05-12 13:42:11 +0000
committerMark Johnston <markj@FreeBSD.org>2021-05-12 16:52:05 +0000
commitcd497bd40bb65b5e4603d57614eb15ca7d947a10 (patch)
tree3ec63fec4bf1b0683e1c5cb92ce01c2c983fed2d
parent93f7be080f3ad0bd71190d87aa2043d714270206 (diff)
truss: Decode FreeBSD 11 mknod(2) and mknodat(2)
MFC after: 1 week Sponsored by: The FreeBSD Foundation
-rw-r--r--usr.bin/truss/syscalls.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/truss/syscalls.c b/usr.bin/truss/syscalls.c
index 798cd299582c..b9c6ff4ad361 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,