svn commit: r319681 - head/usr.bin/truss
John Baldwin
jhb at FreeBSD.org
Thu Jun 8 04:50:51 UTC 2017
Author: jhb
Date: Thu Jun 8 04:50:50 2017
New Revision: 319681
URL: https://svnweb.freebsd.org/changeset/base/319681
Log:
Decode arguments to mlock(), mlockall(), and munlock().
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 04:45:13 2017 (r319680)
+++ head/usr.bin/truss/syscall.h Thu Jun 8 04:50:50 2017 (r319681)
@@ -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,
+ Extattrnamespace, Minherit, Mlockall,
CloudABIAdvice, CloudABIClockID, ClouduABIFDSFlags,
CloudABIFDStat, CloudABIFileStat, CloudABIFileType,
Modified: head/usr.bin/truss/syscalls.c
==============================================================================
--- head/usr.bin/truss/syscalls.c Thu Jun 8 04:45:13 2017 (r319680)
+++ head/usr.bin/truss/syscalls.c Thu Jun 8 04:50:50 2017 (r319681)
@@ -313,6 +313,10 @@ static struct syscall decoded_syscalls[] = {
.args = { { Name, 0 }, { Octal, 1 }, { Int, 2 } } },
{ .name = "mknodat", .ret_type = 1, .nargs = 4,
.args = { { Atfd, 0 }, { Name, 1 }, { Octal, 2 }, { Int, 3 } } },
+ { .name = "mlock", .ret_type = 1, .nargs = 2,
+ .args = { { Ptr, 0 }, { Sizet, 1 } } },
+ { .name = "mlockall", .ret_type = 1, .nargs = 1,
+ .args = { { Mlockall, 0 } } },
{ .name = "mmap", .ret_type = 1, .nargs = 6,
.args = { { Ptr, 0 }, { Sizet, 1 }, { Mprot, 2 }, { Mmapflags, 3 },
{ Int, 4 }, { QuadHex, 5 } } },
@@ -322,6 +326,8 @@ static struct syscall decoded_syscalls[] = {
.args = { { Name, 0 }, { Name, 1 }, { Int, 2 }, { Ptr, 3 } } },
{ .name = "mprotect", .ret_type = 1, .nargs = 3,
.args = { { Ptr, 0 }, { Sizet, 1 }, { Mprot, 2 } } },
+ { .name = "munlock", .ret_type = 1, .nargs = 2,
+ .args = { { Ptr, 0 }, { Sizet, 1 } } },
{ .name = "munmap", .ret_type = 1, .nargs = 2,
.args = { { Ptr, 0 }, { Sizet, 1 } } },
{ .name = "nanosleep", .ret_type = 1, .nargs = 1,
@@ -2103,6 +2109,9 @@ print_arg(struct syscall_args *sc, unsigned long *args
case Minherit:
print_integer_arg(sysdecode_minherit_inherit, fp,
args[sc->offset]);
+ break;
+ case Mlockall:
+ print_mask_arg(sysdecode_mlockall_flags, fp, args[sc->offset]);
break;
case CloudABIAdvice:
More information about the svn-src-head
mailing list