aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/truss
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2017-06-08 08:07:51 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2017-06-08 08:07:51 +0000
commit8acc8e78ea6dbab84b33cfd4ded7da7068d1c665 (patch)
tree3463df0d70c42d4c48fcf12c6a9c5ef34d6245e7 /usr.bin/truss
parent3acfe1e1b097d6c377ab342f2728ec50a199325a (diff)
downloadsrc-8acc8e78ea6dbab84b33cfd4ded7da7068d1c665.tar.gz
src-8acc8e78ea6dbab84b33cfd4ded7da7068d1c665.zip
Decode flags passed to mount(), nmount(), and unmount().
Notes
Notes: svn path=/head/; revision=319688
Diffstat (limited to 'usr.bin/truss')
-rw-r--r--usr.bin/truss/syscall.h2
-rw-r--r--usr.bin/truss/syscalls.c9
2 files changed, 8 insertions, 3 deletions
diff --git a/usr.bin/truss/syscall.h b/usr.bin/truss/syscall.h
index 574b6a6b5d3d..fe1d470412cb 100644
--- a/usr.bin/truss/syscall.h
+++ b/usr.bin/truss/syscall.h
@@ -49,7 +49,7 @@ enum Argtype { None = 1, Hex, Octal, Int, UInt, LongHex, Name, Ptr, Stat, Ioctl,
CapFcntlRights, Fadvice, FileFlags, Flockop, Getfsstatmode, Kldsymcmd,
Kldunloadflags, Sizet, Madvice, Socklent, Sockprotocol, Sockoptlevel,
Sockoptname, Msgflags, CapRights, PUInt, PQuadHex, Acltype,
- Extattrnamespace, Minherit, Mlockall,
+ Extattrnamespace, Minherit, Mlockall, Mountflags,
CloudABIAdvice, CloudABIClockID, ClouduABIFDSFlags,
CloudABIFDStat, CloudABIFileStat, CloudABIFileType,
diff --git a/usr.bin/truss/syscalls.c b/usr.bin/truss/syscalls.c
index b68be078b43a..e213bbde84ba 100644
--- a/usr.bin/truss/syscalls.c
+++ b/usr.bin/truss/syscalls.c
@@ -323,7 +323,7 @@ static struct syscall decoded_syscalls[] = {
{ .name = "modfind", .ret_type = 1, .nargs = 1,
.args = { { Name | IN, 0 } } },
{ .name = "mount", .ret_type = 1, .nargs = 4,
- .args = { { Name, 0 }, { Name, 1 }, { Int, 2 }, { Ptr, 3 } } },
+ .args = { { Name, 0 }, { Name, 1 }, { Mountflags, 2 }, { Ptr, 3 } } },
{ .name = "mprotect", .ret_type = 1, .nargs = 3,
.args = { { Ptr, 0 }, { Sizet, 1 }, { Mprot, 2 } } },
{ .name = "munlock", .ret_type = 1, .nargs = 2,
@@ -332,6 +332,8 @@ static struct syscall decoded_syscalls[] = {
.args = { { Ptr, 0 }, { Sizet, 1 } } },
{ .name = "nanosleep", .ret_type = 1, .nargs = 1,
.args = { { Timespec, 0 } } },
+ { .name = "nmount", .ret_type = 1, .nargs = 3,
+ .args = { { Ptr, 0 }, { UInt, 1 }, { Mountflags, 2 } } },
{ .name = "open", .ret_type = 1, .nargs = 3,
.args = { { Name | IN, 0 }, { Open, 1 }, { Octal, 2 } } },
{ .name = "openat", .ret_type = 1, .nargs = 4,
@@ -452,7 +454,7 @@ static struct syscall decoded_syscalls[] = {
{ .name = "unlinkat", .ret_type = 1, .nargs = 3,
.args = { { Atfd, 0 }, { Name, 1 }, { Atflags, 2 } } },
{ .name = "unmount", .ret_type = 1, .nargs = 2,
- .args = { { Name, 0 }, { Int, 1 } } },
+ .args = { { Name, 0 }, { Mountflags, 1 } } },
{ .name = "utimensat", .ret_type = 1, .nargs = 4,
.args = { { Atfd, 0 }, { Name | IN, 1 }, { Timespec2 | IN, 2 },
{ Atflags, 3 } } },
@@ -2113,6 +2115,9 @@ print_arg(struct syscall_args *sc, unsigned long *args, long *retval,
case Mlockall:
print_mask_arg(sysdecode_mlockall_flags, fp, args[sc->offset]);
break;
+ case Mountflags:
+ print_mask_arg(sysdecode_mount_flags, fp, args[sc->offset]);
+ break;
case CloudABIAdvice:
fputs(xlookup(cloudabi_advice, args[sc->offset]), fp);