<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libprocstat/libprocstat.c, branch releng/13.5</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F13.5</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F13.5'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2023-10-26T20:38:41Z</updated>
<entry>
<title>libprocstat: improve conditional for 32-bit compat</title>
<updated>2023-10-26T20:38:41Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2023-10-26T20:38:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=302ff7e6aff0da1ea3b4de79940aac8103e4bb9c'/>
<id>urn:sha1:302ff7e6aff0da1ea3b4de79940aac8103e4bb9c</id>
<content type='text'>
Include support for translating 32-bit auxv vectors on non-64-bit
platforms that aren't riscv (which has no 32-bit ABI support and
probably never will).

Reviewed by:	markj
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D42201

(cherry picked from commit 248fe3d3483cb3ec2c78dd31dc02a467060a6577)
</content>
</entry>
<entry>
<title>libprocstat: copy all the 32-bit auxv entries</title>
<updated>2023-10-26T20:38:41Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2023-10-26T20:38:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ea7f064a780b6f6bb023757a5eb8b997bd272687'/>
<id>urn:sha1:ea7f064a780b6f6bb023757a5eb8b997bd272687</id>
<content type='text'>
Use source struct size not the destination struct size so we copy all
the auxv entries, not just the first half of them.

Fix a style issue on an adjacent line.

Reviewed by:	markj
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D42200

(cherry picked from commit 8f06fabe39ac3ebca4ab448a456945008305a23f)
</content>
</entry>
<entry>
<title>libprocstat: make sv_name not static</title>
<updated>2023-10-26T20:38:41Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2023-10-26T20:38:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=efeba8da1d2da9d2c471936415cfad5f63daae76'/>
<id>urn:sha1:efeba8da1d2da9d2c471936415cfad5f63daae76</id>
<content type='text'>
Making this variable static makes is_elf32_sysctl() and callers thread
unsafe.

Use a less absurd length for sv_name.  The longest name in the system is
"FreeBSD ELF64 V2" which tips the scales at 16+1 bytes.  We'll almost
certainly have other problems if we exceed 32 characters.

Reviewed by:	markj
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D42199

(cherry picked from commit 72a4ee26a7c665ae1c31abe1c6feeaa7ccaba140)
</content>
</entry>
<entry>
<title>libprocstat: simplify auxv value conversion</title>
<updated>2023-10-26T20:38:41Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2023-10-26T20:38:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9fcbd4c0d19cdbfa1fb4711c00c9c9cf84dbefb0'/>
<id>urn:sha1:9fcbd4c0d19cdbfa1fb4711c00c9c9cf84dbefb0</id>
<content type='text'>
Avoid a weird dance through the union and treat all 32-bit values as
unsigned integers.  This avoids sign extension of flags and userspace
pointers.

Reviewed by:	markj
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D42198

(cherry picked from commit 9735cc0e41825bb9e95d16433d381ffe4c190f38)
</content>
</entry>
<entry>
<title>libprocstat: style: space after switch</title>
<updated>2023-10-26T20:38:40Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2023-10-26T20:38:40Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8888b14f1b771e65013601801a82b27ca539a5e0'/>
<id>urn:sha1:8888b14f1b771e65013601801a82b27ca539a5e0</id>
<content type='text'>
Style demands a space after the switch keyword.

Noticed reviewing code in CheriBSD that propagated the style bug.

Reported by:	markj
Sponsored by:	DARPA
Reviewed by:	kib, markj
Differential Revision:	https://reviews.freebsd.org/D42041

(cherry picked from commit ccac440f7cbb013de41aa3933f3f7be77225c44f)
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line .c pattern</title>
<updated>2023-08-23T17:43:26Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-22T01:31:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3d497e17ebd33fe0f58d773e35ab994d750258d6'/>
<id>urn:sha1:3d497e17ebd33fe0f58d773e35ab994d750258d6</id>
<content type='text'>
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/

Similar commit in main:
(cherry picked from commit 1d386b48a555)
</content>
</entry>
<entry>
<title>libprocstat: add procstat_getadvlock(3)</title>
<updated>2022-04-16T02:18:18Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2022-04-03T14:42:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c649ead622cd59eff72ed8db80a6846565df8e8c'/>
<id>urn:sha1:c649ead622cd59eff72ed8db80a6846565df8e8c</id>
<content type='text'>
(cherry picked from commit 039d1496b0790a27cbec18e06b9494bf41254019)
</content>
</entry>
<entry>
<title>libprocstat kstack: fix race with thread creation</title>
<updated>2022-03-02T21:56:30Z</updated>
<author>
<name>Eric van Gyzen</name>
<email>vangyzen@FreeBSD.org</email>
</author>
<published>2021-05-27T16:33:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d89523644308afd24d47ca3dcf4098d0a719e919'/>
<id>urn:sha1:d89523644308afd24d47ca3dcf4098d0a719e919</id>
<content type='text'>
When collecting kernel stacks for a target process, if the process
adds a thread between the two calls to sysctl, ignore the additional
threads.  Previously, procstat would print only a useless error
message.  Now, it prints a consistent snapshot of the stacks.
We know that snapshot is already stale, but it could still be stale
even with a more complex fix to reallocate and retry, so such a fix
is hardly worth the effort.

Reported by:	Daniel.Mitchell@emc.com
MFC after:	1 week
Sponsored by:	Dell EMC Isilon

(cherry picked from commit 427f12f150e875c40acb84f292a80bfa0b90a1a2)
</content>
</entry>
<entry>
<title>procstat_getfiles_sysctl: do not require non-null ki_fd</title>
<updated>2021-12-09T00:23:29Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2021-12-02T18:03:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ed43c7ac0a8c29510a42b56f79a7db32855e9821'/>
<id>urn:sha1:ed43c7ac0a8c29510a42b56f79a7db32855e9821</id>
<content type='text'>
PR:	260174

(cherry picked from commit 7a9423d6f360e3758ca67fbb25d309140ea93670)
</content>
</entry>
<entry>
<title>Style</title>
<updated>2021-12-09T00:23:28Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2021-12-02T18:02:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0ab5452ca3a10f1b285af2c98e2b5ea055cf2e53'/>
<id>urn:sha1:0ab5452ca3a10f1b285af2c98e2b5ea055cf2e53</id>
<content type='text'>
(cherry picked from commit 0ea3e4a27bc0d1b0fdf876c3ef89d790e29ad5b1)
</content>
</entry>
</feed>
