Commit Graph

168 Commits

Author SHA1 Message Date
8621387c77 Updated ps to use new cgroup interface 2011-05-05 12:20:30 +02:00
e47f54c569 Merged changes from procps-3.2.8 not present in CVS 2011-02-10 13:40:29 +01:00
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
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
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
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
94b2a2e910 SCHED_* stuff up to #9 2007-05-05 18:42:16 +00:00
5b13bb93c7 new foreign-OS research noted 2006-06-18 20:55:02 +00:00
20fba946af SCHED_BATCH 2006-01-22 08:00:03 +00:00
3ced977cf2 turn off new SE Linux code for now 2005-10-30 03:44:26 +00:00
8df9f2ee02 SE Linux alias translation code (broken) 2005-10-30 02:45:45 +00:00
f9d99085e7 crazy Debian GNU/kFreeBSD guy wanted this 2005-01-27 04:08:10 +00:00
37b9b9a235 valgrind freaked out on some weird old code 2005-01-24 03:37:41 +00:00
31fca6bb2d fix built-in test code 2005-01-10 21:32:49 +00:00
8b29cc8a5d fix wchan alignment problem -- snprintf can return more than written 2005-01-10 21:29:53 +00:00
2e78a17eda security labels can contain any printable ASCII 2005-01-05 20:09:03 +00:00
c961f2604a leftovers in the 3.2.4 release 2004-11-04 20:50:59 +00:00
6c949eddbe SubDomain Linux Security Module needs ^ and / characters -- Steve Beattie 2004-10-20 03:34:23 +00:00
6ec1cff342 ps: built-in test code, etc. 2004-10-12 00:12:25 +00:00
59fc9dd711 %cpu and other changes 2004-09-12 15:43:48 +00:00
4acae28535 misc 2004-08-18 02:22:13 +00:00
48497fc40d lots of stuff, sorry 2004-08-10 03:14:10 +00:00
6308cb79e1 rh109147-like bug w/ old data in buffer, plus ")" problem and speed 2004-07-28 15:19:46 +00:00
266d5b708a wchan for multithreaded process is now ~0ull or "*" 2004-07-21 21:17:35 +00:00
bc5df8a7de avoid truncating long usernames 2004-07-21 00:37:38 +00:00
c8a8290ef2 fix vmstat -d 2004-05-04 23:29:40 +00:00
6a48d37343 ps: add k and -x 2004-04-26 00:47:31 +00:00
3f603adbae remove some table inconsistencies and rename it_real_value 2004-04-17 03:13:56 +00:00
d526282deb nswap data dead since 2.4.xx kernels 2004-04-13 03:56:52 +00:00
3f49530d77 new -M and Z options for security data 2004-03-27 03:55:52 +00:00
9f9c3a16ce STAT flags for fg process group and session leader 2004-03-26 01:34:16 +00:00
efd8648fc7 add slabtop, fix top ^Z terminal handling 2004-01-24 22:33:56 +00:00
c36c11c6b2 NSA SELinux for Linux 2.6.xx 2003-12-24 04:18:24 +00:00
e180e4875f more goodies 2003-10-16 03:30:41 +00:00
3a16c12ce3 top on wyse60, whitespace doc, thread fixes 2003-10-07 03:12:50 +00:00
71312f1516 more per-process stuff 2003-09-29 04:09:52 +00:00
35859fb0a8 ugly wart gone 2003-09-28 17:23:29 +00:00
ac6260bc23 hard disk about to die 2003-09-28 02:45:05 +00:00
c462dcfad5 ps thread support 2003-09-20 08:29:55 +00:00
0db94e6a1a GPLONLY_ and PID-related stuff 2003-07-03 05:20:19 +00:00
f540449980 KLONG 2003-01-16 08:29:24 +00:00
b67dc52160 proc/escape.c works for ps 2002-12-21 13:07:53 +00:00
d8367cbb3e still sig11 w/ "ps f" 2002-12-21 10:34:50 +00:00
3e67b58ec2 satisfy GPL section 2a and LGPL section 2b name+date requirement 2002-12-15 00:30:17 +00:00
8a745812cf Linux 2.5.xx /proc/*/wchan 2002-12-12 21:58:12 +00:00
6b50c0cb8a misc 2002-12-09 08:13:55 +00:00
5087f3dbf6 big header clean-up 2002-12-09 07:00:07 +00:00
1ab9afe8a5 SPACE_AMOUNT 2002-12-03 22:53:45 +00:00
4e7de4274d http://www.coker.com.au/selinux/procps/procps.diff 2002-11-27 23:04:32 +00:00