svn commit: r319689 - head/usr.bin/truss
John Baldwin
jhb at FreeBSD.org
Thu Jun 8 08:10:58 UTC 2017
Author: jhb
Date: Thu Jun 8 08:10:57 2017
New Revision: 319689
URL: https://svnweb.freebsd.org/changeset/base/319689
Log:
Decode arguments passed to msync().
Modified:
head/usr.bin/truss/syscall.h
head/usr.bin/truss/syscalls.c
Modified: head/usr.bin/truss/syscall.h
==============================================================================
--- head/usr.bin/truss/syscall.h Thu Jun 8 08:07:51 2017 (r319688)
+++ head/usr.bin/truss/syscall.h Thu Jun 8 08:10:57 2017 (r319689)
@@ -49,7 +49,7 @@ enum Argtype { None = 1, Hex, Octal, Int, UInt, LongHe
CapFcntlRights, Fadvice, FileFlags, Flockop, Getfsstatmode, Kldsymcmd,
Kldunloadflags, Sizet, Madvice, Socklent, Sockprotocol, Sockoptlevel,
Sockoptname, Msgflags, CapRights, PUInt, PQuadHex, Acltype,
- Extattrnamespace, Minherit, Mlockall, Mountflags,
+ Extattrnamespace, Minherit, Mlockall, Mountflags, Msync,
CloudABIAdvice, CloudABIClockID, ClouduABIFDSFlags,
CloudABIFDStat, CloudABIFileStat, CloudABIFileType,
Modified: head/usr.bin/truss/syscalls.c
==============================================================================
--- head/usr.bin/truss/syscalls.c Thu Jun 8 08:07:51 2017 (r319688)
+++ head/usr.bin/truss/syscalls.c Thu Jun 8 08:10:57 2017 (r319689)
@@ -326,6 +326,8 @@ static struct syscall decoded_syscalls[] = {
.args = { { Name, 0 }, { Name, 1 }, { Mountflags, 2 }, { Ptr, 3 } } },
{ .name = "mprotect", .ret_type = 1, .nargs = 3,
.args = { { Ptr, 0 }, { Sizet, 1 }, { Mprot, 2 } } },
+ { .name = "msync", .ret_type = 1, .nargs = 3,
+ .args = { { Ptr, 0 }, { Sizet, 1 }, { Msync, 2 } } },
{ .name = "munlock", .ret_type = 1, .nargs = 2,
.args = { { Ptr, 0 }, { Sizet, 1 } } },
{ .name = "munmap", .ret_type = 1, .nargs = 2,
@@ -2117,6 +2119,9 @@ print_arg(struct syscall_args *sc, unsigned long *args
break;
case Mountflags:
print_mask_arg(sysdecode_mount_flags, fp, args[sc->offset]);
+ break;
+ case Msync:
+ print_mask_arg(sysdecode_msync_flags, fp, args[sc->offset]);
break;
case CloudABIAdvice:
More information about the svn-src-all
mailing list