Craig Small [Thu, 1 Dec 2011 12:13:15 +0000 (23:13 +1100)]
Merge branch 'master' of gitorious.org:procps/procps
Conflicts:
NEWS
Craig Small [Thu, 1 Dec 2011 12:01:27 +0000 (23:01 +1100)]
Merge remote-tracking branch 'csmall/testsuite'
Craig Small [Thu, 1 Dec 2011 12:01:12 +0000 (23:01 +1100)]
8 bit patch added to watch
Craig Small [Thu, 1 Dec 2011 11:42:23 +0000 (22:42 +1100)]
fixed small tests for pmap and ps checks
Craig Small [Wed, 30 Nov 2011 12:11:35 +0000 (23:11 +1100)]
More testing added for procps
Sami Kerola [Mon, 28 Nov 2011 14:04:38 +0000 (15:04 +0100)]
build-sys: add symbol map file to autotools distribution
The file became necessary in
commit
901e381256df03f0371cefb8a8693c46522aae61
Signed-off-by: Sami Kerola <sami.kerola@tomtom.com>
Craig Small [Tue, 29 Nov 2011 11:55:03 +0000 (22:55 +1100)]
fixed pgrep and added ps tests
Craig Small [Mon, 28 Nov 2011 11:41:19 +0000 (22:41 +1100)]
Added news about 8bit char and tests
Craig Small [Mon, 28 Nov 2011 11:39:09 +0000 (22:39 +1100)]
Watch uses unsigned chars to be 8bit clean
Taken from the Debian patch watch_8bitchar
Craig Small [Mon, 28 Nov 2011 11:04:17 +0000 (22:04 +1100)]
Merge remote-tracking branch 'csmall/testsuite'
Craig Small [Mon, 28 Nov 2011 11:02:27 +0000 (22:02 +1100)]
Add sysctl check and tests to extra_dist
Craig Small [Sun, 27 Nov 2011 11:56:13 +0000 (22:56 +1100)]
Use real name in NAME section for top manpage
Things like lexgrog and whatis and apropos need to look a the line in
the NAME section in the manpage. There used to be a macro there which
they don't understand.
lexgrog top.1
top.1: parse failed
Craig Small [Sun, 27 Nov 2011 11:49:14 +0000 (22:49 +1100)]
Merge remote-tracking branch 'main/master' into testsuite
Craig Small [Sun, 27 Nov 2011 11:47:17 +0000 (22:47 +1100)]
vmstat -p <part> works and updated version to 3.3.1
configure.ac now set to 3.3.1
vmstat -p has not worked for a long time, this applies Debian patch
vmstat_part_format, the details:
Author: Daniel Novotny
Description: The contents of /proc/diskstats have changed since 2.6.25
Changed PATH_MAX to 32 because its missing on hurd
Bug-Redhat: https://bugzilla.redhat.com/show_bug.cgi?id=485243
Bug-Debian: http://bugs.debian.org/588677
Last-Update: 2010-11-17
Craig Small [Sun, 27 Nov 2011 08:12:56 +0000 (19:12 +1100)]
added uptime and vmstat tests
Craig Small [Sun, 27 Nov 2011 07:32:10 +0000 (18:32 +1100)]
rearranged testsuite
Craig Small [Sun, 27 Nov 2011 04:30:04 +0000 (15:30 +1100)]
more free tests and pgrep tests
Almost fully testing all features of pgrep now.
free had additional tests added to it
Craig Small [Thu, 24 Nov 2011 12:06:06 +0000 (23:06 +1100)]
Additional tests for free command
Craig Small [Wed, 23 Nov 2011 11:48:49 +0000 (22:48 +1100)]
new free commands
Craig Small [Wed, 23 Nov 2011 10:44:51 +0000 (21:44 +1100)]
testsuite fixes
Craig Small [Wed, 23 Nov 2011 10:31:43 +0000 (21:31 +1100)]
reversed the frees added to pgrep
Sami Kerola [Sun, 20 Nov 2011 21:16:35 +0000 (22:16 +0100)]
pgrep: core dropped nearly always
The do_regcomp() tries to free command line argument.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 5 Nov 2011 12:54:28 +0000 (13:54 +0100)]
libproc-ng: add pkg-config support
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 5 Nov 2011 12:29:54 +0000 (13:29 +0100)]
libproc-ng: fix ld version script file support
Notice that contents of file library.map file are almost certainly
wrong as it is making everything exported.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Jim Warner [Sat, 29 Oct 2011 21:52:46 +0000 (16:52 -0500)]
build-sys: a minimialst approach to ncurses
. 3 pgms require non-wide <curses.h> or <ncurses.h>
This patch represents the tests for a minimal environment
consistent with current ncurses needs.
It should allow a successful configure and build
Jim Warner [Fri, 28 Oct 2011 12:30:48 +0000 (07:30 -0500)]
build-sys: ensure consistent procps-ng ncurses
. 1 program uses curses (top)
. 2 programs use ncurses (slabtop, watch)
. all 3 include non-wide <curses.h> or <ncurses.h>
. those 3 do not currently need wide support
. but anticipating nls, we link against libncursesw
This patch ensures an environment consistent with current
and future ncurses needs.
Craig Small [Wed, 26 Oct 2011 21:53:55 +0000 (08:53 +1100)]
ncurses and configure again
Another fix to link properly to ncurses
Some minor top fixes
Added *~ to gitignore because these files crop up sometimes
Craig Small [Wed, 26 Oct 2011 11:31:48 +0000 (22:31 +1100)]
Some tweaks for top
tweaked signal setup valgrind complaint as nls
some input error messages made more descriptive
eliminated audible escape a from all error messa
added include of proc readproc.h to top.h
optimization for show_special function
remove unnecessary variables clang analyze
Craig Small [Wed, 26 Oct 2011 11:29:44 +0000 (22:29 +1100)]
fixed ncurses double linking
Craig Small [Wed, 26 Oct 2011 11:25:21 +0000 (22:25 +1100)]
pmap fix by Jim
Craig Small [Wed, 26 Oct 2011 11:24:00 +0000 (22:24 +1100)]
Updated NEWS file with what has changed
Craig Small [Thu, 20 Oct 2011 11:15:27 +0000 (22:15 +1100)]
Merge branch 'master', remote-tracking branch 'sami/ng'
Craig Small [Thu, 20 Oct 2011 11:12:30 +0000 (22:12 +1100)]
Merge branch 'master', remote-tracking branch 'csmall/kfreebsd-fixes'
Craig Small [Thu, 20 Oct 2011 11:08:18 +0000 (22:08 +1100)]
Added tar.gz to gitignore
Jim Warner [Thu, 20 Oct 2011 00:02:34 +0000 (19:02 -0500)]
top: redesign show_special strs, in line with nls
Sami Kerola [Wed, 19 Oct 2011 07:39:36 +0000 (09:39 +0200)]
docs: add rh analysis #2 information to contrib
Reference information.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Jim Warner [Wed, 12 Oct 2011 05:55:12 +0000 (00:55 -0500)]
rh analysis #2: top
http://www.freelists.org/post/procps/Scan-results,5
Jim Warner [Tue, 18 Oct 2011 07:36:22 +0000 (02:36 -0500)]
rh analysis #2: pmap
http://www.freelists.org/post/procps/Scan-results,5
Jim Warner [Tue, 18 Oct 2011 08:43:25 +0000 (03:43 -0500)]
rh analysis #2: tload
http://www.freelists.org/post/procps/Scan-results,5
Jim Warner [Thu, 6 Oct 2011 17:21:28 +0000 (12:21 -0500)]
redhat analysis: pwdx
Jim Warner [Thu, 6 Oct 2011 20:58:26 +0000 (15:58 -0500)]
redhat analysis: pgrep
Jim Warner [Thu, 6 Oct 2011 15:02:06 +0000 (10:02 -0500)]
redhat analysis: vmstat
Jim Warner [Thu, 6 Oct 2011 16:20:41 +0000 (11:20 -0500)]
redhat analysis: ps/sortformat
Jim Warner [Thu, 6 Oct 2011 16:05:39 +0000 (11:05 -0500)]
redhat analysis: ps/display
Jim Warner [Thu, 6 Oct 2011 15:43:30 +0000 (10:43 -0500)]
redhat analysis: ps/parser
Jim Warner [Thu, 6 Oct 2011 14:31:00 +0000 (09:31 -0500)]
redhat analysis: proc/sig
Jim Warner [Thu, 6 Oct 2011 14:40:36 +0000 (09:40 -0500)]
redhat analysis: proc/slab
Jim Warner [Thu, 6 Oct 2011 14:12:55 +0000 (09:12 -0500)]
redhat analysis: proc/sysinfo
Jim Warner [Thu, 6 Oct 2011 13:34:26 +0000 (08:34 -0500)]
redhat analysis: proc/readproc
Jim Warner [Sun, 9 Oct 2011 00:02:58 +0000 (19:02 -0500)]
libtool accommodation: kill, skill, snice
Sami Kerola [Thu, 6 Oct 2011 14:26:24 +0000 (16:26 +0200)]
build-sys: add BUGS, FAQ and README.top to distribution
After `make install' I expect to see some files in
<prefix>/share/doc/procps-ng directory, this commit adds few most
obvious ones to there.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Craig Small [Fri, 7 Oct 2011 03:35:16 +0000 (14:35 +1100)]
Use 7 cpu numbers not 4 for Hertz Hack
For the small number of devices that we cannot get Hertz out of ELF
notes but the cpu numbers make sense (ie not kFreeBSD) there is a hack
by using the CPU numbers. The problem is there was 4 numbers, now there
are 7. This fixes the hack by adding all 7 to get a more correct number.
This is from Debian patch sysinfo_7_numbers
Bug-Debian: http://bugs.debian.org/460331
Craig Small [Thu, 6 Oct 2011 23:22:24 +0000 (10:22 +1100)]
Fix Hertz calculation for FreeBSD
FreeBSD has no good way of finding the Hertz value. ELF notes don't
work, you can't find it in a function and even asm/params.h does
not have it. Lucky for us, it is always 100.
Based upon Debian patch patch sysinfo_kfreebsd_hertz by Petr Salinger
Bug-Debian: http://bugs.debian.org/460331
Caution, 460331 has lots of overlapping bugs all around the Hertz
problem across many arches.
Craig Small [Thu, 6 Oct 2011 23:08:42 +0000 (10:08 +1100)]
Elf note AT_CLKTCK is only found on Linux
Suppresses a message about elf notes not found on non-Linux systems.
kFreeBSD systems, for one, don't have this so the message appears
every time you run a procps program otherwise.
Based upon Debian patch sysinfo_elfnote by Petr Salinger
Bug-Debian: http://bugs.debian.org/378157
jimmy jam [Tue, 4 Oct 2011 17:17:23 +0000 (12:17 -0500)]
adapt redhat FAQ for procps-ng
jimmy jam [Tue, 4 Oct 2011 17:16:30 +0000 (12:16 -0500)]
add the customary redhat FAQ
Sami Kerola [Tue, 4 Oct 2011 18:40:19 +0000 (20:40 +0200)]
build-sys: add --enable-w-from build option
Some distributions apparently want to have w command to print FROM
field by default.
Reported-by: Jaromir Capik <jcapik@redhat.com>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Tue, 4 Oct 2011 18:16:46 +0000 (20:16 +0200)]
build-sys: add --disable-kill build option
The kill from procps-ng is not always wanted. For example RedHat
seems to prefer kill from util-linux package.
Reported-by: Jaromir Capik <jcapik@redhat.com>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Craig Small [Sat, 1 Oct 2011 13:23:30 +0000 (23:23 +1000)]
Merge branch 'master', remote-tracking branch 'sami/ng'
Sami Kerola [Thu, 29 Sep 2011 11:37:52 +0000 (13:37 +0200)]
build-sys: add ./configure --enable-oomem option
Add out-of-memory fields to the library and top.
Refrences:
http://www.freelists.org/post/procps/PATCH-12-Add-missed-oom-support-to-libproc
http://www.freelists.org/post/procps/PATCH-22-Initialize-smp-num-cpus-only-if-really-required
Signed-off-by: Jim Warner <james.warner@comcast.net>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Mon, 26 Sep 2011 20:27:34 +0000 (22:27 +0200)]
build-sys: sensible errors when autogen.sh requirements are is missing
<quote="Jim">
I tested the build on several "new" linux installs that didn't yet have any
development tools beyond gcc. On those systems the following error messages
were received:
./autogen.sh: line 46: libtoolize: command not found
./autogen.sh: line 47: test: =: unary operator expected
</quote>
This commit also removes few unnecessary empty lines, and makes all shell
variables to be wrote in caps & quoted properly.
Cc: Jim Warner <james.warner@comcast.net>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Craig Small [Sat, 24 Sep 2011 14:27:37 +0000 (00:27 +1000)]
miscellaneous top and library cleanup
top changes
. refined column header width calculations
. added error messages for:
invalid signal ('k')
invalad max tasks ('n')
. corrected narrative for summary_show
library changes
. corrected some comments (only)
Jim Warner [Thu, 22 Sep 2011 09:10:05 +0000 (04:10 -0500)]
build-sys: rename libproc to libprog-ng
The library file version string is taken from configure.ac AC_INIT.
Reference: http://www.freelists.org/archive/procps/09-2011
Signed-off-by: Jim Warner <james.warner@comcast.net>
Signed-off-by: Craig Small <csmall-procps@enc.com.au>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Jim Warner [Thu, 22 Sep 2011 09:10:05 +0000 (04:10 -0500)]
build-sys: check strverscmp
This function is a GNU extension.
Signed-off-by: Jim Warner <james.warner@comcast.net>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Jim Warner [Thu, 22 Sep 2011 09:10:05 +0000 (04:10 -0500)]
build-sys: use AC_HEADER_STDBOOL in configure.ac
The AC_CHECK_HEADER_STDBOOL, which was used earlier, requires
autoconf 2.68 (2010-09-22), without great functional benefit in
comparison AC_HEADER_STDBOOL. The only thing newer macro does is
a problem for many user who has older autoconf in use.
Reference: http://lists.gnu.org/archive/html/autoconf-commit/2011-02/msg00000.html
Signed-off-by: Jim Warner <james.warner@comcast.net>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Craig Small [Mon, 12 Sep 2011 12:18:23 +0000 (22:18 +1000)]
added ps etimes, miscellaneous top enhancements
ps program
. etimes added for ELAPSED expressed in seconds
. time_t used in place of former unsigned long
top program
. corrected scroll message bug when 'x' toggle on
. fixed forest view potential missing libflags bug
. improved 'k' default signal invocation logic
. enhanced logic for %CPU maximums displayed
. made signal handling more robust and efficient
Craig Small [Tue, 30 Aug 2011 12:05:45 +0000 (22:05 +1000)]
top now has a forest view mode
Craig Small [Wed, 17 Aug 2011 11:01:35 +0000 (21:01 +1000)]
added tgid support plus miscellaneous cleanup
ps
. added tgid support
. made process/task naming consistent
top
. added tgid support
. standardized pid related width logic
documents
. added tgid to ps & top man documents
library
. fixed OOMEM_ENABLE readtask bug
. corrected header typo for tgid
Craig Small [Wed, 10 Aug 2011 21:42:14 +0000 (07:42 +1000)]
refined library i/f and improved performance
Library changes
readproc
. added readeither to more efficiently
fill both process and thread proc_t
. added readproctab3, uses readeither
. included task path support in:
fill_cgroup_cvt, fill_cmdline_cvt,
read_unvectored
. QUICK_THREADS #define allows copying
process info vs. repeatedly reading
. simple_nexttid no longer values ppid
. path var made non-static in readtask
. documented 'proc_data_t' in .h file
. tweaked some c comments & formatting
library.map
. added new readeither, readproctab3
Program changes
ps
. exploits readproctab3 where possible
. improved args/comm compliance
top
. exploits readeither
Craig Small [Mon, 1 Aug 2011 11:28:46 +0000 (21:28 +1000)]
supgid/supgrp support, improved library interface
Library changes
readproc
. added support for supplementary groups
. eliminated 2 potential mem leak sources
. shortcut used for multi-threaded str
vectors & ptrs was obsoleted
. freeing of proc_t related dynamic
memory now rests with the library
. standardized/normalized many c comments
sysinfo
. corrected note regarding glibc & cpuinfo
library.map
. made the visible freeproc accessable
Program changes
pmap
. initialized buffer for new readproc i/f
. eliminated now obsolete free() call
ps
. added width aware supgrp support
. initialized buffers for new readproc i/f
. eliminated now obsolete free() calls
top
. added supgrp support as variable width
. eliminated now obsolete free() calls
. expoilted library freeproc function
. corrected -h|v args text & spacing
. updated some c comments
Documentation changes
ps.1
. added supgid and supgrp
top.1
. added supgid and supgrp
. addition of above required renumbering
many fields in section 3a. DESCRIPTIONS
Craig Small [Thu, 14 Jul 2011 22:52:45 +0000 (08:52 +1000)]
Revert -n flag for w
Craig Small [Thu, 14 Jul 2011 11:16:02 +0000 (21:16 +1000)]
top hotplug memory support
Another patch from Jim for top to support hot-pluggable memory. Not
fully tested on real hot-pluggable memory because neither of us have
it
Jim Warner [Thu, 23 Jun 2011 13:45:09 +0000 (15:45 +0200)]
miscellaneous top program/man document cleanup
Program changes
. corrected eolcap handling if EQUCOLHDRYES defined
. added missing terminator for OOMEM_ENABLE comment
. tightened logic in display_fields
. eliminated some warnings via type or cast
. updated miscellaneous source comments
Man Document changes
. corrected/expanded CGROUPS narrative
. standardized/normalized PPID narrative
Signed-off-by: Jan Görig <jgorig@redhat.com>
Jim Warner [Thu, 23 Jun 2011 13:39:32 +0000 (15:39 +0200)]
miscellaneous library documentation changes
Library changes
. standardized comments in proc_t statm/status memory definitions
Signed-off-by: Jan Görig <jgorig@redhat.com>
Jaromír Cápík [Mon, 20 Jun 2011 15:54:06 +0000 (17:54 +0200)]
Kernel 3.0 version format support
Sami Kerola [Sun, 5 Jun 2011 10:17:14 +0000 (12:17 +0200)]
build-sys: add contrib directory
Move files that are not compiled to <build-root>/contrib
directory. The files consist two unmaintained commands,
alternative ps & w, and and broken utmp examination / printing
utility. The dummy.c became unnecessary at the point when
autotools where re-introduced.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 4 Jun 2011 17:40:29 +0000 (19:40 +0200)]
name change: procps -> procps-ng
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 4 Jun 2011 14:53:24 +0000 (16:53 +0200)]
watch.c: fix version printing
Print same style version string as other procps utilities. Also
the number makes now more sense, when it's coming from autotools
config.h
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 4 Jun 2011 14:52:14 +0000 (16:52 +0200)]
sysctl.c: crash due missing include
Missinc include made help printing to crash.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 4 Jun 2011 14:50:01 +0000 (16:50 +0200)]
proc/sysinfo.c: autotools caused a regression
For some reason necessary variable was commented out at June
2003, see commit bellow for details.
commit
5c99a21b722a568253ea4cf5a385e71a54db427c
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 4 Jun 2011 14:48:01 +0000 (16:48 +0200)]
proc/version.c: use autotools version
The old version output does not work, or make sense, after
autotools are in use again.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 4 Jun 2011 14:26:58 +0000 (16:26 +0200)]
build-sys: take autotools in use again
This will revert change at Oct 2002 when autotools support was
removed.
Unlike before the package developers are expected to use
./autogen.sh to generate ./configure script, and run make after
that. The build system is also able to create, with make dist, a
tar ball release which compiles correctly, and has files which
seemed to be important to have.
The patch removes few unnecessary files, but no everything. Files
procps.lsm and procps.spec in git repository are useless as is,
but I left them lying around for someone who can make more
justified call about removal of them.
Last, but not least package version number is set 3.3.0 to
distinct this procps from the sourceforge's upstream procps.
Please notice that libproc relese is kept as 3.2.8.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Jan Görig [Thu, 2 Jun 2011 10:22:31 +0000 (12:22 +0200)]
Added 'vm_swap' variable nullifying.
Thanks to KOSAKI Motohiro.
Bug-Redhat: https://bugzilla.redhat.com/show_bug.cgi?id=532668
Jan Görig [Thu, 2 Jun 2011 10:15:14 +0000 (12:15 +0200)]
Fixed per-process swap information in top and related cleanup.
Thanks to KOSAKI Motohiro and Jim.
Bug-Redhat: https://bugzilla.redhat.com/show_bug.cgi?id=532668
Jim Warner [Wed, 1 Jun 2011 11:58:06 +0000 (13:58 +0200)]
remove trailing spaces in top batch mode
Signed-off-by: Jan Görig <jgorig@redhat.com>
Jim Warner [Thu, 26 May 2011 09:33:32 +0000 (11:33 +0200)]
added output width/height override support to top, + misc
This source patch addresses the following:
Enhancements
. added -w command line switch, with optional argument
( offers complete control over width and height, in )
( combination with env variables COLUMNS= and LINES= )
. updated man document to reflect the new capability
. reengineered Fields Management to be more flexible
thus no longer requiring a normal sized tty
Buglets fixed
. forced View_SCROLL off when in 'Batch' mode
. for narrow xterm, fixed return val in show_pmt
. for narrow xterm, fixed cursor pos in linein
. added a window specific end-of-line termcap ptr
( so clr_eol does not overwrite last printable char )
Cosmetic changes
. eliminated TTYGETENVYES define, incorporated as -w
. eliminated RESIZE_LIMIT define, no longer needed
. eliminated FIELD_CURSOR define, no longer possible
. eliminated extra text on Fields Management screen
. fixed miscellaneous man document typos/formatting
Signed-off-by: Jan Görig <jgorig@redhat.com>
Jan Görig [Wed, 25 May 2011 09:05:04 +0000 (11:05 +0200)]
Merge branch 'newtop'
Jim Warner [Wed, 18 May 2011 08:33:44 +0000 (10:33 +0200)]
enhanced libproc cgroup/cmdline support, exploited by top
Library Changes
. added PROC_EDITCMDLCVT flag
. added an internal (static) fill_cmdline_cvt function:
- reads and "escapes" /proc/#/cmdline
- returns result as a single string in a single vector
- callers are guaranteed a cmdline (no more NULL)
. added vectorize_this_str function, exploited by
fill_cgroup_cvt, fill_cmdline_cvt
. generalized read_cmdline function as read_unvectored, now
exploited by fill_cgroup_cvt, fill_cmdline_cvt, read_cmdline
( cgroup and cmdline no longer need be converted to string )
( vectors before being transformed to final representation )
. fixed bug regarding skipped group numbers (when enabled)
. escape_str made responsible for all single byte translation
with distinction between control chars + other unprintable
. added escaped_copy function for already escaped strings
. reorganized parts of proc_t to restore formatting standards
( displacement changes shouldn't matter with new version # )
. former ZAP_SUSEONLY #define now OOMEM_ENABLE
. added to library.map: escaped_copy; read_cmdline
Top Program Changes
. exploited the new PROC_EDITCMDLCVT provision
. eliminated now obsolete #include "proc/escape.h"
. changed the P_WCH display format if no kernel symbol table
. fixed very old bug in lflgs for out-of-view sort fields
. former ZAP_SUSEONLY #define now OOMEM_ENABLE
Ps Program Changes
. exploited the new PROC_EDITCMDLCVT provision
. exploited the new escaped_copy function
. consolidated pr_args and pr_comm into pr_argcom
Signed-off-by: Jan Görig <jgorig@redhat.com>
Jan Görig [Thu, 5 May 2011 10:20:30 +0000 (12:20 +0200)]
Updated ps to use new cgroup interface
Jim Warner [Thu, 5 May 2011 10:07:25 +0000 (12:07 +0200)]
cgroup support migrated to libproc, plus miscellaneous re-formatting
This source patchset addresses the following:
Library Extension (readproc)
. added PROC_EDITCGRPCVT flag
. added an internal (static) fill_cgroup_cvt function:
. reads AND parses /proc/#/cgroup
. returns result as a single string in a single vector
. thus no changes to proc_t structure or free memory logic
Program Enhancements (top)
. removed parse_cgroup logic in favor of libproc
. eliminated cgroup sort recurring overhead
. converted WCHAN field to variable width
. generalized variable width field logic in task_show
. real-time notation under P col more distinctive as 'rt'
Program Cosmetic (top)
. CGROUP now known as CGROUPS (plural)
. moved jan's attribution from top.c to 'Notes' in top.h
. numerous comments tweaked
Document Enhancements (top)
. documented CGROUPS field (required renumbering all fields)
. adapted narratives for the 3 current variable width fields
. expanded real-time scheduling notes, 'RT' now shown as 'rt'
Signed-off-by: Jan Görig <jgorig@redhat.com>
Sami Kerola [Mon, 18 Apr 2011 17:30:21 +0000 (19:30 +0200)]
docs: free great modernization manual page fixes
Mention long options, and new options, in manual page.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Mon, 18 Apr 2011 17:30:20 +0000 (19:30 +0200)]
free: great modernization
Support long options, use program_invocation_short_name, print
version up on request, new giga & tera byte sizes switches, exit
when numeric arguments has garbage... and for rest see the diff.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Jan Görig [Mon, 18 Apr 2011 14:06:54 +0000 (16:06 +0200)]
Fixed initialization and thread problems in top - changed by Jim
Werner Fink [Fri, 15 Apr 2011 13:53:20 +0000 (15:53 +0200)]
Initialize smp_num_cpus only if really required
Initialize smp_num_cpus only if really required
Signed-off-by: Werner Fink <werner@suse.de>
Werner Fink [Fri, 15 Apr 2011 13:52:40 +0000 (15:52 +0200)]
Add missed oom support to libproc
Add missed oom support to libproc
Signed-off-by: Werner Fink <werner@suse.de>
Craig Small [Thu, 14 Apr 2011 23:24:29 +0000 (09:24 +1000)]
cgroup support. rcfile errors default to fatal
This source patch addresses the following:
Conceivable Buglets Avoided
. added sanity checks for previous assumptions re: pid size, num cpus
. changed response for rcfile errors to fatal, vs. silent default
Enhancements
. reorganized WIN_t struct for reduced padding and better readability
. generalized code for multiple var-width cols (divorced from pflags)
. absorbed jan gorig's cgroup patch, with attribution
Cosmetic
. reduced numerous #ifdef directives, especially in calibrate_fields
Craig Small [Wed, 13 Apr 2011 21:08:14 +0000 (07:08 +1000)]
several bug fixes, enhancements and formatting
The documentation portion of the patch addresses the following:
README.top
. corrected a minor typo
. updated to reflect current patch level
top.1
. fixed potentially misinterpreted Me/ME strings
. added '.Bd -literal' directives for indented fixed-width font
. some comments changed from \# to .\" to avoid man2html problems
The source portion of the patch addresses the following:
Buglets
. header/task output length now consistent
. fixed 2 obscure horizontal scrolling bugs
. fixed potential bug regarding 'help' and 'current' window
. messages and prompts are now also sensitive to terminal width
. normalized buffer names/sizes now accommodate any SCREENMAX changes
Features
. made %CPU and 'i' mode handling more efficient
. for input the Up/Dn arrows keys act as alternatives to Ins/Del keys
. an optional USE_X_COLHDR define eliminates ALL 'x' toggle overhead
. an optional ZAP_SUSEONLY define was added for Werner's modifications
Cosmetic
. defines and format for optional end-of-job reports standardized
Craig Small [Thu, 31 Mar 2011 11:15:12 +0000 (22:15 +1100)]
New version of top from Jim
Jan Görig [Thu, 24 Feb 2011 14:06:13 +0000 (15:06 +0100)]
top.1 manual page fixes
Changes from Debian and fixed escaping errors.
Author: Craig Small <csmall@debian.org>
Jan Görig [Thu, 24 Feb 2011 13:23:31 +0000 (14:23 +0100)]
ps.1 manual page fixes
Merged changes from Debian and RHEL. Some minor fixes added.
Authors: Craig Small <csmall@debian.org>, Jari Aalto <jari.aalto@cante.net>,
David Prévot <david@tilapin.org>, Daniel Novotny