freebsd-dev/lib/libprocstat
Eric van Gyzen 427f12f150 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:	Daniel.Mitchell@emc.com
MFC after:	1 week
Sponsored by:	Dell EMC Isilon
2021-05-27 11:44:00 -05:00
..
zfs Merge OpenZFS support in to HEAD. 2020-08-25 02:21:27 +00:00
cd9660.c
common_kvm.c Remove #define _KERNEL hacks from libprocstat 2021-02-21 11:38:21 +02:00
common_kvm.h
core.c
core.h
libprocstat_compat.c Bump SPECNAMELEN to MAXNAMLEN. 2019-01-27 00:46:06 +00:00
libprocstat_internal.h
libprocstat.3 libprocstat.3: Correct two occurrences of kvm_getprocs to procstat_getprocs 2020-11-26 22:49:05 +00:00
libprocstat.c libprocstat kstack: fix race with thread creation 2021-05-27 11:44:00 -05:00
libprocstat.h Decode and report native eventfd descriptors from libprocstat and procstat. 2020-12-27 12:57:27 +02:00
Makefile Avoid adding duplicates to SRCS/OBJS/SOBJS/POBJS 2020-08-24 09:20:33 +00:00
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00
msdosfs.c Fix makefs bootstrap after d485c77f20 2021-02-22 17:55:45 +00:00
smbfs.c
Symbol.map Bump SPECNAMELEN to MAXNAMLEN. 2019-01-27 00:46:06 +00:00
udf.c
zfs_defs.c Remove #define _KERNEL hacks from libprocstat 2021-02-21 11:38:21 +02:00
zfs_defs.h libprocstat: fix ZFS support 2020-05-22 11:20:23 +00:00
zfs.c libprocstat: fix ZFS support 2020-05-22 11:20:23 +00:00