aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/truss
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2017-06-10 00:37:02 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2017-06-10 00:37:02 +0000
commitad419d337702578d319088ce66fd6b1b26ef6f3b (patch)
tree403e671e3c34237da63433da5e257a8e0643439f /usr.bin/truss
parent9483ab16d4edd9f9f2dd10c9450544a7dda93338 (diff)
downloadsrc-ad419d337702578d319088ce66fd6b1b26ef6f3b.tar.gz
src-ad419d337702578d319088ce66fd6b1b26ef6f3b.zip
Notes
Diffstat (limited to 'usr.bin/truss')
-rw-r--r--usr.bin/truss/syscall.h2
-rw-r--r--usr.bin/truss/syscalls.c7
2 files changed, 8 insertions, 1 deletions
diff --git a/usr.bin/truss/syscall.h b/usr.bin/truss/syscall.h
index d99d0c89a321..ac1e17c50d44 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, Mountflags, Msync,
+ Extattrnamespace, Minherit, Mlockall, Mountflags, Msync, Priowhich,
CloudABIAdvice, CloudABIClockID, ClouduABIFDSFlags,
CloudABIFDStat, CloudABIFileStat, CloudABIFileType,
diff --git a/usr.bin/truss/syscalls.c b/usr.bin/truss/syscalls.c
index 5f9274eaefa9..979aca61762c 100644
--- a/usr.bin/truss/syscalls.c
+++ b/usr.bin/truss/syscalls.c
@@ -240,6 +240,8 @@ static struct syscall decoded_syscalls[] = {
.args = { { Int, 0 }, { Sockaddr | OUT, 1 }, { Ptr | OUT, 2 } } },
{ .name = "getpgid", .ret_type = 1, .nargs = 1,
.args = { { Int, 0 } } },
+ { .name = "getpriority", .ret_type = 1, .nargs = 2,
+ .args = { { Priowhich, 0 }, { Int, 1 } } },
{ .name = "getrlimit", .ret_type = 1, .nargs = 2,
.args = { { Resource, 0 }, { Rlimit | OUT, 1 } } },
{ .name = "getrusage", .ret_type = 1, .nargs = 2,
@@ -402,6 +404,8 @@ static struct syscall decoded_syscalls[] = {
{ Socklent | IN, 5 } } },
{ .name = "setitimer", .ret_type = 1, .nargs = 3,
.args = { { Int, 0 }, { Itimerval, 1 }, { Itimerval | OUT, 2 } } },
+ { .name = "setpriority", .ret_type = 1, .nargs = 3,
+ .args = { { Priowhich, 0 }, { Int, 1 }, { Int, 2 } } },
{ .name = "setrlimit", .ret_type = 1, .nargs = 2,
.args = { { Resource, 0 }, { Rlimit | IN, 1 } } },
{ .name = "setsockopt", .ret_type = 1, .nargs = 5,
@@ -2123,6 +2127,9 @@ print_arg(struct syscall_args *sc, unsigned long *args, long *retval,
case Msync:
print_mask_arg(sysdecode_msync_flags, fp, args[sc->offset]);
break;
+ case Priowhich:
+ print_integer_arg(sysdecode_prio_which, fp, args[sc->offset]);
+ break;
case CloudABIAdvice:
fputs(xlookup(cloudabi_advice, args[sc->offset]), fp);