|
Revision tags: release/13.4.0-p5, release/13.5.0-p1, release/14.2.0-p3, release/13.5.0, release/14.2.0-p2, release/14.1.0-p8, release/13.4.0-p4, release/14.1.0-p7, release/14.2.0-p1, release/13.4.0-p3, release/14.2.0 |
|
| #
1611738d |
| 22-Sep-2024 |
Konstantin Belousov <[email protected]> |
libprocstat: add procstat_getrlimitusage()
(cherry picked from commit 6126f4ea646a3c19647c3efdcf672641cff6954b)
|
|
Revision tags: release/13.4.0, release/14.1.0, release/13.3.0, release/14.0.0 |
|
| #
58a50eab |
| 16-Oct-2023 |
Brooks Davis <[email protected]> |
libprocstat: improve conditional for 32-bit compat
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 w
libprocstat: improve conditional for 32-bit compat
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)
show more ...
|
| #
ff907440 |
| 16-Oct-2023 |
Brooks Davis <[email protected]> |
libprocstat: copy all the 32-bit auxv entries
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 adjace
libprocstat: copy all the 32-bit auxv entries
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)
show more ...
|
| #
9b48cb8e |
| 16-Oct-2023 |
Brooks Davis <[email protected]> |
libprocstat: make sv_name not static
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
libprocstat: make sv_name not static
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)
show more ...
|
| #
d65a002d |
| 16-Oct-2023 |
Brooks Davis <[email protected]> |
libprocstat: simplify auxv value conversion
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.
Revi
libprocstat: simplify auxv value conversion
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)
show more ...
|
| #
b2f6c1f5 |
| 02-Oct-2023 |
Brooks Davis <[email protected]> |
libprocstat: style: space after switch
Style demands a space after the switch keyword.
Noticed reviewing code in CheriBSD that propagated the style bug.
Reported by: markj Sponsored by: DARPA Revi
libprocstat: style: space after switch
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)
show more ...
|
| #
1d386b48 |
| 16-Aug-2023 |
Warner Losh <[email protected]> |
Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
|
Revision tags: release/13.2.0, release/12.4.0, release/13.1.0 |
|
| #
039d1496 |
| 03-Apr-2022 |
Konstantin Belousov <[email protected]> |
libprocstat: add procstat_getadvlock(3)
For now, only for sysctl target. This is not a new situation, for instance kstacks also work for sysctl only.
Reviewed by: markj, rmacklem Sponsored by: The
libprocstat: add procstat_getadvlock(3)
For now, only for sysctl target. This is not a new situation, for instance kstacks also work for sysctl only.
Reviewed by: markj, rmacklem Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D34756
show more ...
|
| #
7a9423d6 |
| 02-Dec-2021 |
Konstantin Belousov <[email protected]> |
procstat_getfiles_sysctl: do not require non-null ki_fd
ki_fd is legitimately NULL when 32bit process requests process data from 64bit host kernel. The field is not used by the code for sysctl case
procstat_getfiles_sysctl: do not require non-null ki_fd
ki_fd is legitimately NULL when 32bit process requests process data from 64bit host kernel. The field is not used by the code for sysctl case; procstat_getfiles_kvm() checks ki_fd.
PR: 260174 Reported by: Damjan Jovanovic <[email protected]> Sponsored by: The FreeBSD Foundation MFC after: 1 week
show more ...
|
| #
0ea3e4a2 |
| 02-Dec-2021 |
Konstantin Belousov <[email protected]> |
Style
Sponsored by: The FreeBSD Foundation MFC after: 1 week
|
|
Revision tags: release/12.3.0 |
|
| #
427f12f1 |
| 27-May-2021 |
Eric van Gyzen <[email protected]> |
libprocstat kstack: fix race with thread creation
When collecting kernel stacks for a target process, if the process adds a thread between the two calls to sysctl, ignore the additional threads. Pr
libprocstat kstack: fix race with thread creation
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: [email protected] MFC after: 1 week Sponsored by: Dell EMC Isilon
show more ...
|
|
Revision tags: release/13.0.0 |
|
| #
d485c77f |
| 18-Feb-2021 |
Konstantin Belousov <[email protected]> |
Remove #define _KERNEL hacks from libprocstat
Make sys/buf.h, sys/pipe.h, sys/fs/devfs/devfs*.h headers usable in userspace, assuming that the consumer has an idea what it is for. Unhide more materi
Remove #define _KERNEL hacks from libprocstat
Make sys/buf.h, sys/pipe.h, sys/fs/devfs/devfs*.h headers usable in userspace, assuming that the consumer has an idea what it is for. Unhide more material from sys/mount.h and sys/ufs/ufs/inode.h, sys/ufs/ufs/ufsmount.h for consumption of userspace tools, with the same caveat.
Remove unacceptable hack from usr.sbin/makefs which relied on sys/buf.h being unusable in userspace, where it override struct buf with its own definition. Instead, provide struct m_buf and struct m_vnode and adapt code to use local variants.
Reviewed by: mckusick Tested by: pho Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D28679
show more ...
|
| #
67af9aba |
| 23-Dec-2020 |
Konstantin Belousov <[email protected]> |
Decode and report native eventfd descriptors from libprocstat and procstat.
Submitted by: [email protected] Reviewed by: markj (previous version) MFC after: 2 weeks Differential
Decode and report native eventfd descriptors from libprocstat and procstat.
Submitted by: [email protected] Reviewed by: markj (previous version) MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D26668
show more ...
|
| #
688f8b82 |
| 25-Nov-2020 |
John Baldwin <[email protected]> |
Remove the cloned file descriptors for /dev/crypto.
Crypto file descriptors were added in the original OCF import as a way to provide per-open data (specifically the list of symmetric sessions). Ho
Remove the cloned file descriptors for /dev/crypto.
Crypto file descriptors were added in the original OCF import as a way to provide per-open data (specifically the list of symmetric sessions). However, this gives a bit of a confusing API where one has to open /dev/crypto and then invoke an ioctl to obtain a second file descriptor. This also does not match the API used with /dev/crypto on other BSDs or with Linux's /dev/crypto driver.
Character devices have gained support for per-open data via cdevpriv since OCF was imported, so use cdevpriv to simplify the userland API by permitting ioctls directly on /dev/crypto descriptors.
To provide backwards compatibility, CRIOGET now opens another /dev/crypto descriptor via kern_openat() rather than dup'ing the existing file descriptor. This preserves prior semantics in case CRIOGET is invoked multiple times on a single file descriptor.
Reviewed by: markj Relnotes: yes Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D27302
show more ...
|
| #
85078b85 |
| 17-Nov-2020 |
Conrad Meyer <[email protected]> |
Split out cwd/root/jail, cmask state from filedesc table
No functional change intended.
Tracking these structures separately for each proc enables future work to correctly emulate clone(2) in linux
Split out cwd/root/jail, cmask state from filedesc table
No functional change intended.
Tracking these structures separately for each proc enables future work to correctly emulate clone(2) in linux(4).
__FreeBSD_version is bumped (to 1300130) for consumption by, e.g., lsof.
Reviewed by: kib Discussed with: markj, mjg Differential Revision: https://reviews.freebsd.org/D27037
show more ...
|
|
Revision tags: release/12.2.0 |
|
| #
9e5787d2 |
| 25-Aug-2020 |
Matt Macy <[email protected]> |
Merge OpenZFS support in to HEAD.
The primary benefit is maintaining a completely shared code base with the community allowing FreeBSD to receive new features sooner and with less effort.
I would a
Merge OpenZFS support in to HEAD.
The primary benefit is maintaining a completely shared code base with the community allowing FreeBSD to receive new features sooner and with less effort.
I would advise against doing 'zpool upgrade' or creating indispensable pools using new features until this change has had a month+ to soak.
Work on merging FreeBSD support in to what was at the time "ZFS on Linux" began in August 2018. I first publicly proposed transitioning FreeBSD to (new) OpenZFS on December 18th, 2018. FreeBSD support in OpenZFS was finally completed in December 2019. A CFT for downstreaming OpenZFS support in to FreeBSD was first issued on July 8th. All issues that were reported have been addressed or, for a couple of less critical matters there are pull requests in progress with OpenZFS. iXsystems has tested and dogfooded extensively internally. The TrueNAS 12 release is based on OpenZFS with some additional features that have not yet made it upstream.
Improvements include: project quotas, encrypted datasets, allocation classes, vectorized raidz, vectorized checksums, various command line improvements, zstd compression.
Thanks to those who have helped along the way: Ryan Moeller, Allan Jude, Zack Welch, and many others.
Sponsored by: iXsystems, Inc. Differential Revision: https://reviews.freebsd.org/D25872
show more ...
|
| #
f1221c59 |
| 15-Jul-2020 |
Mateusz Guzik <[email protected]> |
libprocstat: fix kvm filedesc access after introduction of fdescenttbl
|
|
Revision tags: release/11.4.0 |
|
| #
e165a15b |
| 21-May-2020 |
Andriy Gapon <[email protected]> |
libprocstat: fix reading of file descriptor table via kvm
This seems to have been broken since r247602 (from year 2013!). Can be easily tested with fstat -N /boot/kernel/kernel -M /var/crash/vmcor
libprocstat: fix reading of file descriptor table via kvm
This seems to have been broken since r247602 (from year 2013!). Can be easily tested with fstat -N /boot/kernel/kernel -M /var/crash/vmcore.last
MFC after: 1 week Sponsored by: Panzura
show more ...
|
| #
d2222aa0 |
| 08-Mar-2020 |
Mateusz Guzik <[email protected]> |
fd: use smr for managing struct pwd
This has a side effect of eliminating filedesc slock/sunlock during path lookup, which in turn removes contention vs concurrent modifications to the fd table.
Re
fd: use smr for managing struct pwd
This has a side effect of eliminating filedesc slock/sunlock during path lookup, which in turn removes contention vs concurrent modifications to the fd table.
Reviewed by: markj, kib Differential Revision: https://reviews.freebsd.org/D23889
show more ...
|
| #
8d03b99b |
| 01-Mar-2020 |
Mateusz Guzik <[email protected]> |
fd: move vnodes out of filedesc into a dedicated structure
The new structure is copy-on-write. With the assumption that path lookups are significantly more frequent than chdirs and chrooting this is
fd: move vnodes out of filedesc into a dedicated structure
The new structure is copy-on-write. With the assumption that path lookups are significantly more frequent than chdirs and chrooting this is a win.
This provides stable root and jail root vnodes without the need to reference them on lookup, which in turn means less work on globally shared structures. Note this also happens to fix a bug where jail vnode was never referenced, meaning subsequent access on lookup could run into use-after-free.
Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D23884
show more ...
|
| #
630cb9c5 |
| 07-Jan-2020 |
Mateusz Guzik <[email protected]> |
procstat: read lo_name instead of now removed v_tag
|
| #
8b75b1ad |
| 08-Dec-2019 |
Doug Moore <[email protected]> |
Define a vm_map method for user-space for advancing from a map entry to its successor in cases where examining a map entry requires a helper like kvm_read_all. Use that method, with kvm_read_all, to
Define a vm_map method for user-space for advancing from a map entry to its successor in cases where examining a map entry requires a helper like kvm_read_all. Use that method, with kvm_read_all, to fix procstat_getfiles_kvm, which tries to find the successor now without using such a helper. This addresses a problem introduced by r355491.
Reviewed by: markj (previous version) Discussed with: kib Differential Revision: https://reviews.freebsd.org/D22728
show more ...
|
| #
7c065540 |
| 07-Dec-2019 |
Doug Moore <[email protected]> |
Fix a type error in fixing libprocstat to be compatible with vm_map changes.
Approved by: markj Differential Revision: https://reviews.freebsd.org/D22726
|
| #
99b1d4c1 |
| 07-Dec-2019 |
Doug Moore <[email protected]> |
r355491 broke compilation of libprocstat.c. Change that code to use new methods for accessing first, next map entries.
Approved by: kib Differential Revision: https://reviews.freebsd.org/D22725
|
|
Revision tags: release/12.1.0, release/11.3.0, release/12.0.0 |
|
| #
a66732de |
| 03-Dec-2018 |
Konstantin Belousov <[email protected]> |
Print type designator 'D' for the KF_TYPE_DEV files.
No type-specific data is provided by the kernel.
Sponsored by: Mellanox Technologies MFC after: 1 week
|