Commit Graph

192 Commits

Author SHA1 Message Date
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
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
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
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
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
5f570a84f1 per-process swap info available on Linux 2.6.34 2010-05-18 07:02:03 +00:00
b0210803bf update /dev/tty* info to May 2009 devices.txt 2009-05-03 06:39:33 +00:00
7dd414ac1b new /proc/meminfo fields 2008-03-24 04:41:26 +00:00
9049ffef32 ps man page 2006-09-10 06:25:56 +00:00
0231385023 fix the low_density_names table, maybe 2006-07-09 06:58:39 +00:00
86de01f3d0 Linux 2.6.17 tty devices. Lose support for original pty numbering. 2006-07-09 04:41:30 +00:00
9278134e49 top: show CPU time stolen from a virtual machine 2006-06-25 02:15:36 +00:00
47d33e7ed4 g is criteria 2006-06-24 20:12:29 +00:00
5c591b836f fix "ps sm" bug involving 1-thread-proc optimization 2006-06-17 04:14:57 +00:00
29cbc63561 fputs instead of fprintf 2005-10-30 23:45:47 +00:00
777fcd3cf1 /proc/stat for 1024 CPUs 2005-10-30 00:14:16 +00:00
6a304370f8 ps: fix crash related to realloc -- thanks David Houlder 2005-09-12 03:25:01 +00:00
864a5356a1 fix race condition 2005-06-10 15:43:15 +00:00
cd80f609e6 more MIPS crud 2005-02-28 03:29:57 +00:00
f9d99085e7 crazy Debian GNU/kFreeBSD guy wanted this 2005-01-27 04:08:10 +00:00
ee561259a4 Karel Zak provided some slabinfo documentation 2005-01-24 18:30:24 +00:00
37b9b9a235 valgrind freaked out on some weird old code 2005-01-24 03:37:41 +00:00
8747618ef2 2.6.10 bumped the slabinfo minor; let the old parser handle it 2005-01-10 05:59:41 +00:00
1010c1d281 fix overflow on huge NUMA boxes 2005-01-05 21:46:22 +00:00
0fb81f5c39 display problem on 64-bit systems fixed 2005-01-05 21:11:21 +00:00
c961f2604a leftovers in the 3.2.4 release 2004-11-04 20:50:59 +00:00
6ec1cff342 ps: built-in test code, etc. 2004-10-12 00:12:25 +00:00
630b655893 Patrick found to be alive 2004-09-23 13:45:18 +00:00
0586dc8b6d fix warnings; put CFLAGS on lib link command 2004-09-23 13:41:33 +00:00
55b3e73334 $TOPRC, eliminate status() fn, avoid /proc/*/stat more 2004-08-30 17:30:41 +00:00
0d77d98bf3 ttySMX* devices, /proc/vmstat change, /proc/meminfo change 2004-08-27 20:21:46 +00:00
af2077f22d new /proc/vmstat fields 2004-08-27 14:23:36 +00:00
1754df6025 MIPS n32 on 64-bit kernel; be nice to 32-bit SPARC 2004-08-19 01:06:28 +00:00
792358ba42 Linux 2.2 non-SMP on SMP Alpha needed this 2004-08-10 07:18:04 +00:00
1e1ec4ad84 fix pwcache again 2004-08-10 04:47:07 +00:00
ef0b63de31 string.h and maybe a release 2004-08-10 04:30:27 +00:00
6308cb79e1 rh109147-like bug w/ old data in buffer, plus ")" problem and speed 2004-07-28 15:19:46 +00:00
713d32a93a some overflow problems fixed -- thanks Holger Kiehl 2004-07-26 13:48:59 +00:00
266d5b708a wchan for multithreaded process is now ~0ull or "*" 2004-07-21 21:17:35 +00:00
f1db79c042 better handling of long usernames 2004-07-20 23:31:12 +00:00
5a8a11c88d neaten up some code 2004-07-20 22:51:22 +00:00
557cd0852e New lib/* names. Fixed .PHONY for lib build. 2004-07-20 03:12:41 +00:00
285f5c30b9 isalpha requires ctype.h 2004-07-19 04:56:10 +00:00
0bdf88ffac SGI Altix console port ttySG0 is #40 2004-07-17 03:15:21 +00:00
34c4da73d1 tolerate IA-64 headers w/o PAGE_SIZE 2004-07-15 05:29:56 +00:00
8300609ba9 plenty -- see NEWS file and a diff 2004-07-15 01:17:15 +00:00
cce5c1c5a4 be crudely tolerant of crude tty emulators 2004-07-06 04:24:39 +00:00
fb2ccb8abc Search for life at slackware.com 2004-06-01 02:27:57 +00:00
c8a8290ef2 fix vmstat -d 2004-05-04 23:29:40 +00:00
3f603adbae remove some table inconsistencies and rename it_real_value 2004-04-17 03:13:56 +00:00