<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test/usr.bin/truss, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/'/>
<updated>2020-12-10T07:13:15Z</updated>
<entry>
<title>truss: Add AIO syscalls.</title>
<updated>2020-12-10T07:13:15Z</updated>
<author>
<name>Thomas Munro</name>
<email>tmunro@FreeBSD.org</email>
</author>
<published>2020-12-10T07:13:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=bb24ee2b7e70e85b11962d98710ea3965072b408'/>
<id>urn:sha1:bb24ee2b7e70e85b11962d98710ea3965072b408</id>
<content type='text'>
Display the arguments of aio_read(2), aio_write(2), aio_suspend(2),
aio_error(2), aio_return(2), aio_cancel(2), aio_fsync(2), aio_mlock(2),
aio_waitcomplete(2) and lio_listio(2) in human-readable form.

Reviewed by:	asomers
Differential Revision:	https://reviews.freebsd.org/D27518
</content>
</entry>
<entry>
<title>kdump/truss: decode new _umtx_op flags</title>
<updated>2020-12-09T03:24:09Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2020-12-09T03:24:09Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=c2679dd779bb75f51682cde5eb55a291b72d7900'/>
<id>urn:sha1:c2679dd779bb75f51682cde5eb55a291b72d7900</id>
<content type='text'>
In both cases, print the flag bits first followed by the command.

Output now looks something like this:

(ktrace)
_umtx_op(0x8605f7008,0xf&lt;UMTX_OP_WAIT_UINT_PRIVATE&gt;,0,0,0)
_umtx_op(0x9fffdce8,0x80000003&lt;UMTX_OP__32BIT|UMTX_OP_WAKE&gt;,0x1,0,0)

(truss)
_umtx_op(0x7fffffffda50,UMTX_OP_WAKE,0x1,0x0,0x0) = 0 (0x0)
_umtx_op(0x9fffdd08,UMTX_OP__32BIT|UMTX_OP_WAKE,0x1,0x0,0x0) = 0 (0x0)

Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D27325
</content>
</entry>
<entry>
<title>Enable iterating all sysctls, even ones with CTLFLAG_SKIP</title>
<updated>2020-10-05T20:13:22Z</updated>
<author>
<name>Ryan Moeller</name>
<email>freqlabs@FreeBSD.org</email>
</author>
<published>2020-10-05T20:13:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=92e17803cd19bf55d07779e0b56b12e9fa50ec92'/>
<id>urn:sha1:92e17803cd19bf55d07779e0b56b12e9fa50ec92</id>
<content type='text'>
Add an "nextnoskip" sysctl that allows for listing of sysctls intended to be
normally skipped for cost reasons.

This makes it so the names/descriptions of those sysctls can be discovered with
sysctl -aN/sysctl -ad/sysctl -at.

It also makes it so children are visited when a node flagged with CTLFLAG_SKIP
is explicitly requested.

The intended use case is to mark the root "kstat" node with CTLFLAG_SKIP so that
the extensive and expensive stats are skipped by default but may still be easily
obtained without having to know them all (which may not even be possible) and
request each one-by-one.

Reviewed by:	jhb
MFC after:	2 weeks
Relnotes:	yes
Sponsored by:	iXsystems, Inc.
Differential Revision:	https://reviews.freebsd.org/D26560
</content>
</entry>
<entry>
<title>truss: print more information about traced sysctls</title>
<updated>2020-07-05T19:53:54Z</updated>
<author>
<name>Pawel Biernacki</name>
<email>kaktus@FreeBSD.org</email>
</author>
<published>2020-07-05T19:53:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=43ec732a2c3f249382648fac8f8feacac8e65b2c'/>
<id>urn:sha1:43ec732a2c3f249382648fac8f8feacac8e65b2c</id>
<content type='text'>
MFC after:	2 weeks
Sponsored by:	Mysterious Code Ltd.
</content>
</entry>
<entry>
<title>Decode the file descriptor argument to closefrom(2) as an Integer.</title>
<updated>2020-05-21T02:10:45Z</updated>
<author>
<name>Christian S.J. Peron</name>
<email>csjp@FreeBSD.org</email>
</author>
<published>2020-05-21T02:10:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=7be2c6f3bf73135445cb0f75f9d676a9065f30b7'/>
<id>urn:sha1:7be2c6f3bf73135445cb0f75f9d676a9065f30b7</id>
<content type='text'>
This is consistent with what we are doing for close(2) and it makes
it a bit easier to follow when debugging file descriptor operations.
i.e. many other syscalls are decoding fds as integers rather than
base 16 numbers.

MFC after:	1 week
</content>
</entry>
<entry>
<title>vfs: add realpathat syscall</title>
<updated>2020-02-20T16:58:19Z</updated>
<author>
<name>Mateusz Guzik</name>
<email>mjg@FreeBSD.org</email>
</author>
<published>2020-02-20T16:58:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=0573d0a9b8ec478348cbf2a7ec370c875eb57dff'/>
<id>urn:sha1:0573d0a9b8ec478348cbf2a7ec370c875eb57dff</id>
<content type='text'>
realpath(3) is used a lot e.g., by clang and is a major source of getcwd
and fstatat calls. This can be done more efficiently in the kernel.

This works by performing a regular lookup while saving the name and found
parent directory. If the terminal vnode is a directory we can resolve it using
usual means. Otherwise we can use the name saved by lookup and resolve the
parent.

See the review for sample syscall counts.

Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D23574
</content>
</entry>
<entry>
<title>truss: fix shm_open2 oversight (BinString -&gt; Name)</title>
<updated>2020-02-19T15:12:01Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2020-02-19T15:12:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=733ba7eff60798e1a6a0405b6f48e2978eff3817'/>
<id>urn:sha1:733ba7eff60798e1a6a0405b6f48e2978eff3817</id>
<content type='text'>
BinString assumes a length in the next argument; Name is more appropriate
for the final argument.
</content>
</entry>
<entry>
<title>truss: decode shm_open2</title>
<updated>2020-02-19T14:54:33Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2020-02-19T14:54:33Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=bcca34259c046ca78f574e4c8694d0af0f0d0bec'/>
<id>urn:sha1:bcca34259c046ca78f574e4c8694d0af0f0d0bec</id>
<content type='text'>
shm_open2 is similar to shm_open, except it also takes shmflags and optional
name to label the anonymous region for, e.g., debugging purposes.

The appropriate support for decoding shmflags was added to libsysdecode in
r358115.

This is a part of D23733.

Reviewed by:	kaktus
</content>
</entry>
<entry>
<title>Miscellaneous typo fixes</title>
<updated>2020-02-07T19:53:07Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2020-02-07T19:53:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=5aa0576b330d8ecdf4506b1819c6be838a851e50'/>
<id>urn:sha1:5aa0576b330d8ecdf4506b1819c6be838a851e50</id>
<content type='text'>
Submitted by:	Gordon Bergling &lt;gbergling_gmail.com&gt;
Differential Revision:	https://reviews.freebsd.org/D23453
</content>
</entry>
<entry>
<title>truss: centralize pointer-constructing casts.</title>
<updated>2019-10-31T22:29:13Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2019-10-31T22:29:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=cc86d14a47c6d8668fa5372e3f4ffc4db0d95382'/>
<id>urn:sha1:cc86d14a47c6d8668fa5372e3f4ffc4db0d95382</id>
<content type='text'>
In nearly all cases, the caller has a uintptr_t compatible argument so
this eliminates a large number of casts.

Add a print_pointer function to centralize printing pointers.

Reviewed by:	jhb
Obtained from:	CheriBSD
Sponsored by:	DARPA, AFRL
Differential Revision:	https://reviews.freebsd.org/D22212
</content>
</entry>
</feed>
