<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libsysdecode/mktables, branch releng/12.2</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.2</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.2'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2019-09-05T20:26:20Z</updated>
<entry>
<title>MFC r339635,r350301,r350327,r351151:</title>
<updated>2019-09-05T20:26:20Z</updated>
<author>
<name>Bryan Drewery</name>
<email>bdrewery@FreeBSD.org</email>
</author>
<published>2019-09-05T20:26:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=79c7c19b3c5bf83c657576ad3a196c7a954bac3f'/>
<id>urn:sha1:79c7c19b3c5bf83c657576ad3a196c7a954bac3f</id>
<content type='text'>
  r339635:
    Fix regex for extracting SHM_* values for libsysdecode
  r350301:
    libsysdecode: add explicit dependencies on recently changed headers
  r350327:
    libsysdecode: use the proper include directory
  r351151:
    Rework r339635 to fix .depend.tables.h handling.
</content>
</entry>
<entry>
<title>The vmresult table was missing most of the values apart from two due to</title>
<updated>2018-03-12T13:32:51Z</updated>
<author>
<name>Bjoern A. Zeeb</name>
<email>bz@FreeBSD.org</email>
</author>
<published>2018-03-12T13:32:51Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=48e6891944bc3f475c666fbee5c4061c5e3320f8'/>
<id>urn:sha1:48e6891944bc3f475c666fbee5c4061c5e3320f8</id>
<content type='text'>
extra "_" in the names we grep for. Add the "_" to the pattern.

Reviewed by:	jhb
MFC after:	3 days
Sponsored by:	iXsystems, Inc.
</content>
</entry>
<entry>
<title>Add support for decoding the type of a cmsg.</title>
<updated>2018-01-15T10:59:04Z</updated>
<author>
<name>Michael Tuexen</name>
<email>tuexen@FreeBSD.org</email>
</author>
<published>2018-01-15T10:59:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a826eb5a413324c5136f5094650cb15c8331c93f'/>
<id>urn:sha1:a826eb5a413324c5136f5094650cb15c8331c93f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Simplify table generation.</title>
<updated>2018-01-15T08:32:49Z</updated>
<author>
<name>Michael Tuexen</name>
<email>tuexen@FreeBSD.org</email>
</author>
<published>2018-01-15T08:32:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c1f0d826d651bf1608347c1af03e5070d7db36ce'/>
<id>urn:sha1:c1f0d826d651bf1608347c1af03e5070d7db36ce</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add suppor for the supported PR-SCTP policies.</title>
<updated>2018-01-14T12:08:41Z</updated>
<author>
<name>Michael Tuexen</name>
<email>tuexen@FreeBSD.org</email>
</author>
<published>2018-01-14T12:08:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a62bf68d3dc180d82ab149725b87152081894638'/>
<id>urn:sha1:a62bf68d3dc180d82ab149725b87152081894638</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Decode kevent structures logged via ktrace(2) in kdump.</title>
<updated>2017-11-25T04:49:12Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2017-11-25T04:49:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ffb660798460378575377a6928c49f160af89132'/>
<id>urn:sha1:ffb660798460378575377a6928c49f160af89132</id>
<content type='text'>
- Add a new KTR_STRUCT_ARRAY ktrace record type which dumps an array of
  structures.

  The structure name in the record payload is preceded by a size_t
  containing the size of the individual structures.  Use this to
  replace the previous code that dumped the kevent arrays dumped for
  kevent().  kdump is now able to decode the kevent structures rather
  than dumping their contents via a hexdump.

  One change from before is that the 'changes' and 'events' arrays are
  not marked with separate 'read' and 'write' annotations in kdump
  output.  Instead, the first array is the 'changes' array, and the
  second array (only present if kevent doesn't fail with an error) is
  the 'events' array.  For kevent(), empty arrays are denoted by an
  entry with an array containing zero entries rather than no record.

- Move kevent decoding tables from truss to libsysdecode.

  This adds three new functions to decode members of struct kevent:
  sysdecode_kevent_filter, sysdecode_kevent_flags, and
  sysdecode_kevent_fflags.

  kdump uses these helper functions to pretty-print kevent fields.

- Move structure definitions for freebsd11 and freebsd32 kevent
  structures to &lt;sys/event.h&gt; so that they can be shared with userland.
  The 32-bit structures are only exposed if _WANT_KEVENT32 is defined.
  The freebsd11 structures are only exposed if _WANT_FREEBSD11_KEVENT is
  defined.  The 32-bit freebsd11 structure requires both.

- Decode freebsd11 kevent structures in truss for the compat11.kevent()
  system call.

- Log 32-bit kevent structures via ktrace for 32-bit compat kevent()
  system calls.

- While here, constify the 'void *data' argument to ktrstruct().

Reviewed by:	kib (earlier version)
MFC after:	1 month
Differential Revision:	https://reviews.freebsd.org/D12470
</content>
</entry>
<entry>
<title>Decode pathconf() names, *at() flags, and sysarch() numbers in libsysdecode.</title>
<updated>2017-09-04T05:34:36Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2017-09-04T05:34:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=39a3a4386aa4aecfc8550a13cdc0d8386c6d2dd5'/>
<id>urn:sha1:39a3a4386aa4aecfc8550a13cdc0d8386c6d2dd5</id>
<content type='text'>
Move tables that were previously in truss over to libsysdecode.  truss
output is unchanged, but kdump has been updated to decode these fields.
In addition, sysdecode_sysarch_number() should support all platforms
whereas the old table in truss only supported x86.
</content>
</entry>
<entry>
<title>Tweak r320206: Still create the TABLE but not the .depend entry for missing headers.</title>
<updated>2017-06-21T23:28:24Z</updated>
<author>
<name>Bryan Drewery</name>
<email>bdrewery@FreeBSD.org</email>
</author>
<published>2017-06-21T23:28:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f944e9e2080e692ebabc09ed45b4cc09976393c6'/>
<id>urn:sha1:f944e9e2080e692ebabc09ed45b4cc09976393c6</id>
<content type='text'>
X-MFC-With:	r320206
MFC after:	3 days
Sponsored by:	Dell EMC Isilon
</content>
</entry>
<entry>
<title>Follow-up r308602: Don't add missing headers to .depend.tables.h.</title>
<updated>2017-06-21T23:01:18Z</updated>
<author>
<name>Bryan Drewery</name>
<email>bdrewery@FreeBSD.org</email>
</author>
<published>2017-06-21T23:01:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=87d18efc7b6a89789097cd6eab44b299b82a606b'/>
<id>urn:sha1:87d18efc7b6a89789097cd6eab44b299b82a606b</id>
<content type='text'>
This also avoids an error from egrep when a header is missing.  This can happen
with something like WITHOUT_BLUETOOTH set when searching for
$include_dir/netgraph/bluetooth/include/ng_btsocket.h.  The warning was
not an error (from set -e) due to being on the left side of a pipe.  Now the
all_headers list is only filled with existing headers.

Reviewed by:	ngie
MFC after:	3 days
Sponsored by:	Dell EMC Isilon
</content>
</entry>
<entry>
<title>Decode the 'who' argument passed to getrusage().</title>
<updated>2017-06-03T14:22:15Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2017-06-03T14:22:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ee8aa41dca9c2b80c69530257748c98ec748a04c'/>
<id>urn:sha1:ee8aa41dca9c2b80c69530257748c98ec748a04c</id>
<content type='text'>
Add a new sysdecode_getrusage_who() which decodes the RUSAGE_* constant
passed as the first argument to getrusage().  Use this function in both
kdump and truss to decode the first argument to getrusage().

PR:		215448
Submitted by:	Anton Yuzhaninov &lt;citrin+pr@citrin.ru&gt;
MFC after:	1 month
</content>
</entry>
</feed>
