<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.bin/ktrace, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>ktrace: Only enable EXTERROR traces for 'x'</title>
<updated>2025-11-06T02:48:37+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2025-11-06T02:47:37+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=0b8d17c861194057261d898d94eb45ca9ea310b4'/>
<id>0b8d17c861194057261d898d94eb45ca9ea310b4</id>
<content type='text'>
Add a missing break statement to avoid falling through to the '+'
case.

Fixes:		96f4be881e8e ("ktrace(1): teach about KTR_EXTERR")
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a missing break statement to avoid falling through to the '+'
case.

Fixes:		96f4be881e8e ("ktrace(1): teach about KTR_EXTERR")
</pre>
</div>
</content>
</entry>
<entry>
<title>ktrace(1): teach about KTR_EXTERR</title>
<updated>2025-06-03T02:47:38+00:00</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2025-05-31T22:04:57+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=96f4be881e8e9e0cb9a6ad2cd9f17f4440983600'/>
<id>96f4be881e8e9e0cb9a6ad2cd9f17f4440983600</id>
<content type='text'>
Reviewed by:	brooks
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D50633
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed by:	brooks
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D50633
</pre>
</div>
</content>
</entry>
<entry>
<title>ktrace: Make -t t trace struct arrays as well as structs</title>
<updated>2025-01-07T14:32:20+00:00</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2025-01-07T14:31:15+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=596ee234ef4537e71f030e13598ecbe73ee697bb'/>
<id>596ee234ef4537e71f030e13598ecbe73ee697bb</id>
<content type='text'>
Otherwise there is no specific -t option which captures struct arrays.

MFC after:	1 week
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Otherwise there is no specific -t option which captures struct arrays.

MFC after:	1 week
</pre>
</div>
</content>
</entry>
<entry>
<title>ktrace.1: Add ARGS and ENVS as default trace points</title>
<updated>2024-11-17T18:12:06+00:00</updated>
<author>
<name>Jose Luis Duran</name>
<email>jlduran@FreeBSD.org</email>
</author>
<published>2024-11-17T18:12:06+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=2a657b4ee9008207bd099884c1d4697425a67cd1'/>
<id>2a657b4ee9008207bd099884c1d4697425a67cd1</id>
<content type='text'>
After commit 65a4daeaf324 ("ktrace: log execve(2) arguments and
environment"), "a" and "e" are part of the default set of trace points.

Reviewed by:	markj
Approved by:	emaste (mentor)
Fixes:	65a4daeaf324 ("ktrace: log execve(2) arguments and environment")
Differential Revision:	https://reviews.freebsd.org/D47648
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
After commit 65a4daeaf324 ("ktrace: log execve(2) arguments and
environment"), "a" and "e" are part of the default set of trace points.

Reviewed by:	markj
Approved by:	emaste (mentor)
Fixes:	65a4daeaf324 ("ktrace: log execve(2) arguments and environment")
Differential Revision:	https://reviews.freebsd.org/D47648
</pre>
</div>
</content>
</entry>
<entry>
<title>ktrace: log execve(2) arguments and environment</title>
<updated>2024-11-11T21:19:35+00:00</updated>
<author>
<name>Artem Hevorhian</name>
<email>artemhevorhian@gmail.com</email>
</author>
<published>2024-10-15T13:50:40+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=65a4daeaf3247b7a2c16cf59cdea2ce05987a7cc'/>
<id>65a4daeaf3247b7a2c16cf59cdea2ce05987a7cc</id>
<content type='text'>
Two new events KTR_ARGS and KTR_ENV can be used to
trace arguments of execve(2).

Reviewed by:		glebius
Differential Revision:	https://reviews.freebsd.org/D47127
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Two new events KTR_ARGS and KTR_ENV can be used to
trace arguments of execve(2).

Reviewed by:		glebius
Differential Revision:	https://reviews.freebsd.org/D47127
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove residual blank line at start of Makefile</title>
<updated>2024-07-15T22:43:39+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2024-07-15T04:46:32+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=e9ac41698b2f322d55ccf9da50a3596edb2c1800'/>
<id>e9ac41698b2f322d55ccf9da50a3596edb2c1800</id>
<content type='text'>
This is a residual of the $FreeBSD$ removal.

MFC After: 3 days (though I'll just run the command on the branches)
Sponsored by: Netflix
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is a residual of the $FreeBSD$ removal.

MFC After: 3 days (though I'll just run the command on the branches)
Sponsored by: Netflix
</pre>
</div>
</content>
</entry>
<entry>
<title>ktrace(1): add more xrefs</title>
<updated>2024-06-11T15:02:00+00:00</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2024-06-11T00:31:08+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=0277c0c6f72a964bf0439db1f4558551052e4f3b'/>
<id>0277c0c6f72a964bf0439db1f4558551052e4f3b</id>
<content type='text'>
Following commit a87651e2ff18 add xrefs to intro(2) and sigaction(2),
and use a consistent form.

Suggested by:	kib, arrowd
Reviewed by:	kib (earlier)
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D45555
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Following commit a87651e2ff18 add xrefs to intro(2) and sigaction(2),
and use a consistent form.

Suggested by:	kib, arrowd
Reviewed by:	kib (earlier)
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D45555
</pre>
</div>
</content>
</entry>
<entry>
<title>ktrace(1): add xref to namei(9)</title>
<updated>2024-06-10T14:41:45+00:00</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2024-06-10T12:51:01+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=a87651e2ff189cec4c26cb220354f1bc93794f31'/>
<id>a87651e2ff189cec4c26cb220354f1bc93794f31</id>
<content type='text'>
namei was mistaken for a typo (see GitHub pull request #1284).  Add an
xref to make it clear.

Reviewed by:	imp
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D45546
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
namei was mistaken for a typo (see GitHub pull request #1284).  Add an
xref to make it clear.

Reviewed by:	imp
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D45546
</pre>
</div>
</content>
</entry>
<entry>
<title>ktrace: Remove CAPFAIL from default trace points</title>
<updated>2024-04-24T00:26:14+00:00</updated>
<author>
<name>Jake Freeland</name>
<email>jfree@FreeBSD.org</email>
</author>
<published>2024-04-24T00:26:14+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=f239db4800ee9e7ff8485f96b7a68e6c38178c3b'/>
<id>f239db4800ee9e7ff8485f96b7a68e6c38178c3b</id>
<content type='text'>
The CAPFAIL tracepoint was recently extended to report ECAPMODE
capability  violations for processes that do not enter capability mode.
This allows developers that are interested in Capsicumizing their
programs to determine where violations are being raised.

Previously, CAPFAIL only produced output for processes using Capsicum(4)
capabilties. Thus, most ktrace users never received log output from the
trace point. With the recent changes, this is no longer the case.

Having this trace point enabled by default will produce output for all
processes that use syscalls that are not permitted in capability mode.
This may lead to confusion for users that are not familiar with the
feature. Remove KTRFAC_CAPFAIL from ktrace's default points to avoid
this.

Approved by:	markj (mentor)
Reviewed by:	markj
MFC after:	1 month
Differential Revision:	https://reviews.freebsd.org/D44887
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The CAPFAIL tracepoint was recently extended to report ECAPMODE
capability  violations for processes that do not enter capability mode.
This allows developers that are interested in Capsicumizing their
programs to determine where violations are being raised.

Previously, CAPFAIL only produced output for processes using Capsicum(4)
capabilties. Thus, most ktrace users never received log output from the
trace point. With the recent changes, this is no longer the case.

Having this trace point enabled by default will produce output for all
processes that use syscalls that are not permitted in capability mode.
This may lead to confusion for users that are not familiar with the
feature. Remove KTRFAC_CAPFAIL from ktrace's default points to avoid
this.

Approved by:	markj (mentor)
Reviewed by:	markj
MFC after:	1 month
Differential Revision:	https://reviews.freebsd.org/D44887
</pre>
</div>
</content>
</entry>
<entry>
<title>ktrace: Describe CAPFAIL trace point in man page</title>
<updated>2024-04-24T00:25:16+00:00</updated>
<author>
<name>Jake Freeland</name>
<email>jfree@FreeBSD.org</email>
</author>
<published>2024-04-24T00:25:16+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=4f2ada0d88219746fdfbc0907c28b0950ad18725'/>
<id>4f2ada0d88219746fdfbc0907c28b0950ad18725</id>
<content type='text'>
Update the ktrace(1) man page to describe the recently improved
capability failure tracing.

Approved by:	markj (mentor)
Reviewed by:	markj
MFC after:	1 month
Differential Revision:	https://reviews.freebsd.org/D44886
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Update the ktrace(1) man page to describe the recently improved
capability failure tracing.

Approved by:	markj (mentor)
Reviewed by:	markj
MFC after:	1 month
Differential Revision:	https://reviews.freebsd.org/D44886
</pre>
</div>
</content>
</entry>
</feed>
