svn commit: r319763 - head/usr.bin/truss
John Baldwin
jhb at FreeBSD.org
Sat Jun 10 00:45:09 UTC 2017
Author: jhb
Date: Sat Jun 10 00:45:07 2017
New Revision: 319763
URL: https://svnweb.freebsd.org/changeset/base/319763
Log:
Decode the arguments to ptrace().
This does not decode structures returned by ptrace().
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 Sat Jun 10 00:37:02 2017 (r319762)
+++ head/usr.bin/truss/syscall.h Sat Jun 10 00:45:07 2017 (r319763)
@@ -50,6 +50,7 @@ enum Argtype { None = 1, Hex, Octal, Int, UInt, LongHe
Kldunloadflags, Sizet, Madvice, Socklent, Sockprotocol, Sockoptlevel,
Sockoptname, Msgflags, CapRights, PUInt, PQuadHex, Acltype,
Extattrnamespace, Minherit, Mlockall, Mountflags, Msync, Priowhich,
+ Ptraceop,
CloudABIAdvice, CloudABIClockID, ClouduABIFDSFlags,
CloudABIFDStat, CloudABIFileStat, CloudABIFileType,
Modified: head/usr.bin/truss/syscalls.c
==============================================================================
--- head/usr.bin/truss/syscalls.c Sat Jun 10 00:37:02 2017 (r319762)
+++ head/usr.bin/truss/syscalls.c Sat Jun 10 00:45:07 2017 (r319763)
@@ -361,6 +361,8 @@ static struct syscall decoded_syscalls[] = {
{ QuadHex, 3 } } },
{ .name = "procctl", .ret_type = 1, .nargs = 4,
.args = { { Idtype, 0 }, { Quad, 1 }, { Procctl, 2 }, { Ptr, 3 } } },
+ { .name = "ptrace", .ret_type = 1, .nargs = 4,
+ .args = { { Ptraceop, 0 }, { Int, 1 }, { Ptr, 2 }, { Int, 3 } } },
{ .name = "pwrite", .ret_type = 1, .nargs = 4,
.args = { { Int, 0 }, { BinString | IN, 1 }, { Sizet, 2 },
{ QuadHex, 3 } } },
@@ -2129,6 +2131,10 @@ print_arg(struct syscall_args *sc, unsigned long *args
break;
case Priowhich:
print_integer_arg(sysdecode_prio_which, fp, args[sc->offset]);
+ break;
+ case Ptraceop:
+ print_integer_arg(sysdecode_ptrace_request, fp,
+ args[sc->offset]);
break;
case CloudABIAdvice:
More information about the svn-src-head
mailing list