Jan Görig
887c1b95c5
Removed .cvsignore files
2011-02-10 13:40:29 +01:00
Jan Görig
59679bc2a2
Rewritten cgroup support and suppressed root cgroup
...
Bug-Redhat: https://bugzilla.redhat.com/show_bug.cgi?id=593267
Signed-off-by: Jan Görig <jgorig@redhat.com>
2011-02-10 13:40:29 +01:00
Jan Görig
8fde4af11d
Call libproc constructors in strict order
...
Having one constructor depend on another means if the order
is reversed you get a different result.
Patched based on idea by Tom Evans.
Added new code to old_Hertz_hack by Werner Fink <werner@suse.de>
Bug-Debian: http://bugs.debian.org/460331
Bug-Redhat: https://bugzilla.redhat.com/show_bug.cgi?id=632236
Reviewed-by: Jan Görig <jgorig@redhat.com>
2011-01-19 12:50:26 +01:00
Jan Görig
4d3c19af52
Read the system boot time from /proc instead of computing
...
Read the time of system boot from /proc/stat (entry: btime) instead
of computing it as the difference between the current time and the
uptime. This is the only way to get a consistent result which won't
possibly change from one run to the next.
The problems with the original code were:
* Both the current time and the uptime are rounded down to the second,
but the system doesn't boot on an integer second value so they do not
tick at the same moment. Thus, the rounding errors can cause a one
second difference from one run to the next.
* We can't read the uptime and the current time at the exact same moment
anyway, so the time difference we compute is bound to be inaccurate.
Bug-Redhat: https://bugzilla.redhat.com/show_bug.cgi?id=222251
Author: Jean Delvare <jdelvare@suse.de>
Reviewed-by: Craig Small <csmall@debian.org>
2010-12-16 10:30:39 +01:00
Jan Görig
356a1f9a37
fix the problem with truncated output lines to 2048 characters
...
Author: Karel Zak <kzak@redhat.com> and Olivier Fourdan <ofourdan@redhat.com>
Bug-Redhat: https://bugzilla.redhat.com/show_bug.cgi?id=134516
Bug-Redhat: https://bugzilla.redhat.com/show_bug.cgi?id=487700
2010-12-16 10:24:44 +01:00
Jan Görig
af25453d9a
ps displays cgroup
...
Author: Swann Perarnau <swann.perarnau@imag.fr>
Bug-Debian: http://bugs.debian.org/469669
Reviewed-by: Craig Small <csmall@debian.org>
2010-12-16 10:23:49 +01:00
albert
5f570a84f1
per-process swap info available on Linux 2.6.34
2010-05-18 07:02:03 +00:00
albert
b0210803bf
update /dev/tty* info to May 2009 devices.txt
2009-05-03 06:39:33 +00:00
albert
7dd414ac1b
new /proc/meminfo fields
2008-03-24 04:41:26 +00:00
albert
9049ffef32
ps man page
2006-09-10 06:25:56 +00:00
albert
0231385023
fix the low_density_names table, maybe
2006-07-09 06:58:39 +00:00
albert
86de01f3d0
Linux 2.6.17 tty devices. Lose support for original pty numbering.
2006-07-09 04:41:30 +00:00
albert
9278134e49
top: show CPU time stolen from a virtual machine
2006-06-25 02:15:36 +00:00
albert
47d33e7ed4
g is criteria
2006-06-24 20:12:29 +00:00
albert
5c591b836f
fix "ps sm" bug involving 1-thread-proc optimization
2006-06-17 04:14:57 +00:00
albert
29cbc63561
fputs instead of fprintf
2005-10-30 23:45:47 +00:00
albert
777fcd3cf1
/proc/stat for 1024 CPUs
2005-10-30 00:14:16 +00:00
albert
6a304370f8
ps: fix crash related to realloc -- thanks David Houlder
2005-09-12 03:25:01 +00:00
albert
864a5356a1
fix race condition
2005-06-10 15:43:15 +00:00
albert
cd80f609e6
more MIPS crud
2005-02-28 03:29:57 +00:00
albert
f9d99085e7
crazy Debian GNU/kFreeBSD guy wanted this
2005-01-27 04:08:10 +00:00
albert
ee561259a4
Karel Zak provided some slabinfo documentation
2005-01-24 18:30:24 +00:00
albert
37b9b9a235
valgrind freaked out on some weird old code
2005-01-24 03:37:41 +00:00
albert
8747618ef2
2.6.10 bumped the slabinfo minor; let the old parser handle it
2005-01-10 05:59:41 +00:00
albert
1010c1d281
fix overflow on huge NUMA boxes
2005-01-05 21:46:22 +00:00
albert
0fb81f5c39
display problem on 64-bit systems fixed
2005-01-05 21:11:21 +00:00
albert
c961f2604a
leftovers in the 3.2.4 release
2004-11-04 20:50:59 +00:00
albert
6ec1cff342
ps: built-in test code, etc.
2004-10-12 00:12:25 +00:00
albert
630b655893
Patrick found to be alive
2004-09-23 13:45:18 +00:00
albert
0586dc8b6d
fix warnings; put CFLAGS on lib link command
2004-09-23 13:41:33 +00:00
albert
55b3e73334
$TOPRC, eliminate status() fn, avoid /proc/*/stat more
2004-08-30 17:30:41 +00:00
albert
0d77d98bf3
ttySMX* devices, /proc/vmstat change, /proc/meminfo change
2004-08-27 20:21:46 +00:00
albert
af2077f22d
new /proc/vmstat fields
2004-08-27 14:23:36 +00:00
albert
1754df6025
MIPS n32 on 64-bit kernel; be nice to 32-bit SPARC
2004-08-19 01:06:28 +00:00
albert
792358ba42
Linux 2.2 non-SMP on SMP Alpha needed this
2004-08-10 07:18:04 +00:00
albert
1e1ec4ad84
fix pwcache again
2004-08-10 04:47:07 +00:00
albert
ef0b63de31
string.h and maybe a release
2004-08-10 04:30:27 +00:00
albert
6308cb79e1
rh109147-like bug w/ old data in buffer, plus ")" problem and speed
2004-07-28 15:19:46 +00:00
albert
713d32a93a
some overflow problems fixed -- thanks Holger Kiehl
2004-07-26 13:48:59 +00:00
albert
266d5b708a
wchan for multithreaded process is now ~0ull or "*"
2004-07-21 21:17:35 +00:00
albert
f1db79c042
better handling of long usernames
2004-07-20 23:31:12 +00:00
albert
5a8a11c88d
neaten up some code
2004-07-20 22:51:22 +00:00
albert
557cd0852e
New lib/* names. Fixed .PHONY for lib build.
2004-07-20 03:12:41 +00:00
albert
285f5c30b9
isalpha requires ctype.h
2004-07-19 04:56:10 +00:00
albert
0bdf88ffac
SGI Altix console port ttySG0 is #40
2004-07-17 03:15:21 +00:00
albert
34c4da73d1
tolerate IA-64 headers w/o PAGE_SIZE
2004-07-15 05:29:56 +00:00
albert
8300609ba9
plenty -- see NEWS file and a diff
2004-07-15 01:17:15 +00:00
albert
cce5c1c5a4
be crudely tolerant of crude tty emulators
2004-07-06 04:24:39 +00:00
albert
fb2ccb8abc
Search for life at slackware.com
2004-06-01 02:27:57 +00:00
albert
c8a8290ef2
fix vmstat -d
2004-05-04 23:29:40 +00:00