svn commit: r319679 - head/usr.bin/truss
John Baldwin
jhb at FreeBSD.org
Thu Jun 8 04:31:17 UTC 2017
Author: jhb
Date: Thu Jun 8 04:31:15 2017
New Revision: 319679
URL: https://svnweb.freebsd.org/changeset/base/319679
Log:
Decode arguments passed to extended attribute related system calls.
The cmd argument passed to extattrctl() is not decoded as a string constant
but is just printed in hex. The value is filesystem-specific but in
practice is only used with UFS1 filesystems.
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:02:14 2017 (r319678)
+++ head/usr.bin/truss/syscall.h Thu Jun 8 04:31:15 2017 (r319679)
@@ -49,6 +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,
CloudABIAdvice, CloudABIClockID, ClouduABIFDSFlags,
CloudABIFDStat, CloudABIFileStat, CloudABIFileType,
Modified: head/usr.bin/truss/syscalls.c
==============================================================================
--- head/usr.bin/truss/syscalls.c Thu Jun 8 04:02:14 2017 (r319678)
+++ head/usr.bin/truss/syscalls.c Thu Jun 8 04:31:15 2017 (r319679)
@@ -160,6 +160,42 @@ static struct syscall decoded_syscalls[] = {
{ ExecEnv | IN, 2 } } },
{ .name = "exit", .ret_type = 0, .nargs = 1,
.args = { { Hex, 0 } } },
+ { .name = "extattr_delete_fd", .ret_type = 1, .nargs = 3,
+ .args = { { Int, 0 }, { Extattrnamespace, 1 }, { Name, 2 } } },
+ { .name = "extattr_delete_file", .ret_type = 1, .nargs = 3,
+ .args = { { Name, 0 }, { Extattrnamespace, 1 }, { Name, 2 } } },
+ { .name = "extattr_delete_link", .ret_type = 1, .nargs = 3,
+ .args = { { Name, 0 }, { Extattrnamespace, 1 }, { Name, 2 } } },
+ { .name = "extattr_get_fd", .ret_type = 1, .nargs = 5,
+ .args = { { Int, 0 }, { Extattrnamespace, 1 }, { Name, 2 },
+ { BinString | OUT, 3 }, { Sizet, 4 } } },
+ { .name = "extattr_get_file", .ret_type = 1, .nargs = 5,
+ .args = { { Name, 0 }, { Extattrnamespace, 1 }, { Name, 2 },
+ { BinString | OUT, 3 }, { Sizet, 4 } } },
+ { .name = "extattr_get_link", .ret_type = 1, .nargs = 5,
+ .args = { { Name, 0 }, { Extattrnamespace, 1 }, { Name, 2 },
+ { BinString | OUT, 3 }, { Sizet, 4 } } },
+ { .name = "extattr_list_fd", .ret_type = 1, .nargs = 4,
+ .args = { { Int, 0 }, { Extattrnamespace, 1 }, { BinString | OUT, 2 },
+ { Sizet, 3 } } },
+ { .name = "extattr_list_file", .ret_type = 1, .nargs = 4,
+ .args = { { Name, 0 }, { Extattrnamespace, 1 }, { BinString | OUT, 2 },
+ { Sizet, 3 } } },
+ { .name = "extattr_list_link", .ret_type = 1, .nargs = 4,
+ .args = { { Name, 0 }, { Extattrnamespace, 1 }, { BinString | OUT, 2 },
+ { Sizet, 3 } } },
+ { .name = "extattr_set_fd", .ret_type = 1, .nargs = 5,
+ .args = { { Int, 0 }, { Extattrnamespace, 1 }, { Name, 2 },
+ { BinString | IN, 3 }, { Sizet, 4 } } },
+ { .name = "extattr_set_file", .ret_type = 1, .nargs = 5,
+ .args = { { Name, 0 }, { Extattrnamespace, 1 }, { Name, 2 },
+ { BinString | IN, 3 }, { Sizet, 4 } } },
+ { .name = "extattr_set_link", .ret_type = 1, .nargs = 5,
+ .args = { { Name, 0 }, { Extattrnamespace, 1 }, { Name, 2 },
+ { BinString | IN, 3 }, { Sizet, 4 } } },
+ { .name = "extattrctl", .ret_type = 1, .nargs = 5,
+ .args = { { Name, 0 }, { Hex, 1 }, { Name, 2 },
+ { Extattrnamespace, 3 }, { Name, 4 } } },
{ .name = "faccessat", .ret_type = 1, .nargs = 4,
.args = { { Atfd, 0 }, { Name | IN, 1 }, { Accessmode, 2 },
{ Atflags, 3 } } },
@@ -2057,6 +2093,10 @@ print_arg(struct syscall_args *sc, unsigned long *args
}
case Acltype:
print_integer_arg(sysdecode_acltype, fp, args[sc->offset]);
+ break;
+ case Extattrnamespace:
+ print_integer_arg(sysdecode_extattrnamespace, fp,
+ args[sc->offset]);
break;
case CloudABIAdvice:
More information about the svn-src-head
mailing list