DragonFly commits List (threaded) for 2004-05
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
cvs commit: src/contrib/top/patches commands.c.patch machine.h.patch top.X.patch top.c.patch top.h.patch src/usr.bin/top Makefile machine.c
hmp 2004/05/28 22:11:15 PDT
DragonFly src repository
Modified files:
usr.bin/top Makefile machine.c
Added files:
contrib/top/patches commands.c.patch machine.h.patch
top.X.patch top.c.patch top.h.patch
Log:
First pass at updating top(1):
* add command line option '-T' for displaying kernel threads
such as pagedaemon, tcp_thread, and so on; the threads are
now marked '<thread>' in the top(1) display.
* cleanup manipulation of COMMAND strings, insipired by a
similar change in NetBSD's top(1).
* add a toggle for system processes, called 'S' so we dont
need to restart top(1) to {un}display system processes.
* change some sprintf's to snprintfs for safety.
* update the sort/ordering top(1) commands so that it correctly
displays kernel threads by priority time used etc.
* add a 'thr' sort order function so that kernel threads can be
collected together in the top(1) display; this is useful when
running it in batch mode.
* fix the screen width issue for terminals that have more than
80 columns; this was necessary for showing threads properly in
SMP mode.
* add ability for top(1) to sort kernel threads their priority
(note, thread priorities are stored differently).
NOTE! top(1) is now using the contrib-patching framework just like
we do with GCC-3 so that it will be simple to update the base code
in the future if required.
CREDITS
Thanks go to Matthew Dillon <dillon@xxxxxxxxxxxxx> for reviewing the
patches and supplying me with an SMP machine to test the changes.
Revision Changes Path
1.3 +5 -2 src/usr.bin/top/Makefile
1.11 +74 -14 src/usr.bin/top/machine.c
http://www.dragonflybsd.org/cvsweb/src/usr.bin/top/Makefile.diff?r1=1.2&r2=1.3&f=h
http://www.dragonflybsd.org/cvsweb/src/usr.bin/top/machine.c.diff?r1=1.10&r2=1.11&f=h
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]