aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/truss
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2017-03-18 18:31:45 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2017-03-18 18:31:45 +0000
commitab43bedcce121736214ce25c47be534ba720fb85 (patch)
tree4e9b41a353c31b7ad52ecfbb98706a68cb3ca267 /usr.bin/truss
parentcd92d27e16361c90724c6ed14393c23edb6e6bc6 (diff)
downloadsrc-ab43bedcce121736214ce25c47be534ba720fb85.tar.gz
src-ab43bedcce121736214ce25c47be534ba720fb85.zip
Decode arguments passed to getfsstat().
Note that this does not yet decode the statfs structures returned by getfsstat().
Notes
Notes: svn path=/head/; revision=315504
Diffstat (limited to 'usr.bin/truss')
-rw-r--r--usr.bin/truss/syscall.h2
-rw-r--r--usr.bin/truss/syscalls.c6
2 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/truss/syscall.h b/usr.bin/truss/syscall.h
index 675256f24d35..0d217ab29fff 100644
--- a/usr.bin/truss/syscall.h
+++ b/usr.bin/truss/syscall.h
@@ -45,7 +45,7 @@ enum Argtype { None = 1, Hex, Octal, Int, UInt, LongHex, Name, Ptr, Stat, Ioctl,
Pathconf, Rforkflags, ExitStatus, Waitoptions, Idtype, Procctl,
LinuxSockArgs, Umtxop, Atfd, Atflags, Timespec2, Accessmode, Long,
Sysarch, ExecArgs, ExecEnv, PipeFds, QuadHex, Utrace, IntArray, Pipe2,
- CapFcntlRights, Fadvice, FileFlags, Flockop,
+ CapFcntlRights, Fadvice, FileFlags, Flockop, Getfsstatmode,
CloudABIAdvice, CloudABIClockID, ClouduABIFDSFlags,
CloudABIFDStat, CloudABIFileStat, CloudABIFileType,
diff --git a/usr.bin/truss/syscalls.c b/usr.bin/truss/syscalls.c
index eb5a7546122f..db6cf8ad02b4 100644
--- a/usr.bin/truss/syscalls.c
+++ b/usr.bin/truss/syscalls.c
@@ -158,6 +158,8 @@ static struct syscall decoded_syscalls[] = {
.args = { { Int, 0 }, { Timeval2 | IN, 1 } } },
{ .name = "futimesat", .ret_type = 1, .nargs = 3,
.args = { { Atfd, 0 }, { Name | IN, 1 }, { Timeval2 | IN, 2 } } },
+ { .name = "getfsstat", .ret_type = 1, .nargs = 3,
+ .args = { { Ptr, 0 }, { Long, 1 }, { Getfsstatmode, 2 } } },
{ .name = "getitimer", .ret_type = 1, .nargs = 2,
.args = { { Int, 0 }, { Itimerval | OUT, 2 } } },
{ .name = "getpeername", .ret_type = 1, .nargs = 3,
@@ -1887,6 +1889,10 @@ print_arg(struct syscall_args *sc, unsigned long *args, long *retval,
case Flockop:
print_mask_arg(sysdecode_flock_operation, fp, args[sc->offset]);
break;
+ case Getfsstatmode:
+ print_integer_arg(sysdecode_getfsstat_mode, fp,
+ args[sc->offset]);
+ break;
case CloudABIAdvice:
fputs(xlookup(cloudabi_advice, args[sc->offset]), fp);