svn commit: r339224 - head/usr.bin/truss
Allan Jude
allanjude at FreeBSD.org
Sun Oct 7 19:50:45 UTC 2018
Author: allanjude
Date: Sun Oct 7 19:50:44 2018
New Revision: 339224
URL: https://svnweb.freebsd.org/changeset/base/339224
Log:
Teach truss how to display shm_open(2), shm_unlink(2)
Submitted by: Thomas Munro <munro at ip9.org>
Reviewed by: tuexen, kib
Approved by: re (rgrimes)
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D17457
Modified:
head/usr.bin/truss/syscalls.c
Modified: head/usr.bin/truss/syscalls.c
==============================================================================
--- head/usr.bin/truss/syscalls.c Sun Oct 7 15:54:13 2018 (r339223)
+++ head/usr.bin/truss/syscalls.c Sun Oct 7 19:50:44 2018 (r339224)
@@ -461,6 +461,10 @@ static struct syscall decoded_syscalls[] = {
{ .name = "setsockopt", .ret_type = 1, .nargs = 5,
.args = { { Int, 0 }, { Sockoptlevel, 1 }, { Sockoptname, 2 },
{ Ptr | IN, 3 }, { Socklent, 4 } } },
+ { .name = "shm_open", .ret_type = 1, .nargs = 3,
+ .args = { { Name | IN, 0 }, { Open, 1 }, { Octal, 2 } } },
+ { .name = "shm_unlink", .ret_type = 1, .nargs = 1,
+ .args = { { Name | IN, 0 } } },
{ .name = "shutdown", .ret_type = 1, .nargs = 2,
.args = { { Int, 0 }, { Shutdown, 1 } } },
{ .name = "sigaction", .ret_type = 1, .nargs = 3,
More information about the svn-src-head
mailing list