Age | Commit message (Collapse) | Author |
|
|
|
|
|
as %cpu time. Remove the calculation in ps that includes the process
lifetime. Just print the p_pctcpu value, that was done before when
ps was called with -C. Keep -C as a no-op for existing scripts.
OK millert@
|
|
stop referencing them in comments
|
|
greater than 0 for its one test case.
ok deraadt
|
|
What's worse, the tzfile.h that gets installed is over 20 years old
and doesn't match the real tzfile.h in libc/time. This makes the
tree safe for /usr/include/tzfile.h removal. The TM_YEAR_BASE
define has been moved to time.h temporarily until its usage is
replaced by 1900 in the tree. Actual removal of tzfile.h is pending
a ports build. Based on a diff from deraadt@
|
|
|
|
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution. These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)
|
|
so don't make realloc copy it. just allocate what we need.
ok deraadt guenther
|
|
patch from Martin <Natano at natano dot net>;
ok deraadt
|
|
ok deraadt
|
|
|
|
PS_NOBROADCASTKILL. The resulting table is shifted so far right
that a few additional lines had to be wrapped. Not ideal but the
best we can do at the moment.
|
|
ok guenther
|
|
PS_{ZOMBIE,EMBRYO} on the process instead of peeking into the process's
thread data. This eliminates the need for the thread-level SDEAD state.
Change kvm_getprocs() (both the sysctl() and kvm backends) to report the
"most active" scheduler state for the process's threads.
tweaks kettenis@
feedback and ok matthew@
|
|
From: Martin Natano
|
|
of strtonum() from millert@ sprinkled on top.
Also, we've always supported TZ for formatting dates, so say so.
ok jmc@ millert@
|
|
ok guenther sobrado
|
|
ok millert sobrado guenther
|
|
|
|
|
|
|
|
|
|
|
|
keywords are sorted in ascending order again. This fixes a bug where
ps(1) thought that "minflt" was an invalid keyword.
This bug was introduced when the "maxrss" keyword was accidentally added
to the array after "minflt" instead of before, so the bsearch(3)-based
keyword lookup could never find "minflt".
ok deraadt@ guenther@ millert@ tedu@
|
|
|
|
|
|
|
|
ok guenther step
|
|
|
|
|
|
ok guenther@ jmc@
|
|
Follow POSIX spec for the default headers for the comm, etime, and tty fields.
Problem noted by lotheac (at) iki.fi
ok deraadt@
|
|
hardclock() set a flag on the running thread and force AST processing,
and then have the thread signal itself from userret().
idea and flag names from FreeBSD
ok jsing@
|
|
them via sysctl(KERN_PROC). In struct kinfo_proc the per-process
flags move to p_psflags, leaving the per-thread flags in p_flags.
Flag descriptions in ps(1) updated to be less obtuse.
discussed with matthew@ some time ago; ok jca@, manpage bits ok jmc@
|
|
(wmesg hasn't itself been a pointer since conversion to kinfo_proc.)
noticed by sthen.
ok deraadt jsing millert sthen
|
|
profil() by moving P_PROFIL from proc->p_flag to process->ps_flags with
matching adjustment in fork1() and exit1()
ok matthew@
|
|
of the per-process %mem is not going to happen. In particular,
we want USPACE to be removed from param.h
|
|
This lets new binaries work (at least w/o the -H option) with old kernels.
ok pirofti@ deraadt@
|
|
thread information.
Add a KERN_PROC_SHOW_THREADS flag that has to be set in order to get the
thread info and make it off by default. This creates backwards compatibility
for applications that relied on a given size/number of items to be returned.
Modify ps(1) and top(1) accordingly.
Okay guenther@.
|
|
This expands the already bloated FILL_KPROC macro to take an extra
parameter that indicates if the callee is a thread or a process.
The userland bits are adjusted accordingly and ps(1) and top(1) now
display per thread usage times when -H is used.
Also pkill(1) had to be adjusted so that duplicates don't pop up.
libkvm does basically the same thing as the kernel bits.
Okay guenther@.
|
|
(missed commit pointed out by jmc@)
|
|
|
|
the thread ID in the default format.
ok deraadt@ sthen@
|
|
and add an 'rtableid' keyword to ps.
Add rtable id, thread id, and socket splice info to struct kinfo_file2
and make fstat display socket splice information.
Remove old KVM_PROC2 and kinfo_proc2 interfaces; bump libkvm major
Socket splice info and corrections from bluhm@ "Lovely" deraadt@
|
|
ok millert@
|
|
|
|
and suggestions from guenther.
ok guenther
|
|
HW_NCPU when the only test was whether it's non-zero)
ok millert@
|
|
from Alexander Best
|