DragonFly bugs List (threaded) for 2005-10
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
bug report for ps
COMMAND: ps
SOURCE: /usr/src/bin/ps
PROBLEM SEEN: "ps -O lastcpu" doesn't work
PROPOSED CHANGE:
keyword.c
root@phungte3# cvs diff keyword.c
cvs server: /dcvs/CVSROOT/config: unrecognized keyword 'LocalKeyword'
Index: keyword.c
===================================================================
RCS file: /dcvs/src/bin/ps/keyword.c,v
retrieving revision 1.20
diff -r1.20 keyword.c
95d94
< {"lastcpu", "C", NULL, 0, pvar, NULL, 3, EOFF(e_cpuid), UINT, "d", NULL},
111a111
> {"lastcpu", "C", NULL, 0, evar, NULL, 3, EOFF(e_cpuid), UINT, "d", NULL},
root@phungte3#
TEST:
On the system:
DragonFly phungte-154 1.2.5-RELEASE DragonFly 1.2.5-RELEASE #3: Wed Oct 5
11:19:34 GMT 2005 toor@phungte-154:/usr/src/sys/compile/diskless i386
without the change:
root@phungte-154# ps -O lastcpu
ps: lastcpu: keyword not found
PID TT STAT TIME COMMAND
730 p0 ILs 0:00.02 login [pam] (login)
731 p0 SL 0:00.05 -bash (bash)
747 p0 SL 0:17.23 emacs
786 p0 R1L+ 0:00.00 ps -O lastcpu
749 p1 ILs+ 0:00.02 /usr/local/bin/bash --noediting -i
779 p2 ILs+ 0:00.03 /usr/bin/gdb -cd /usr/src/bin/ps/ -fullname
/usr/src/
780 p2 ZL 0:00.00 (ps)
722 v0 ILs+ 0:00.01 /usr/libexec/getty Pc ttyv0
723 v2 ILs+ 0:00.00 /usr/libexec/getty Pc ttyv2
724 v3 ILs+ 0:00.00 /usr/libexec/getty Pc ttyv3
725 v4 ILs+ 0:00.01 /usr/libexec/getty Pc ttyv4
726 v5 ILs+ 0:00.00 /usr/libexec/getty Pc ttyv5
727 v6 ILs+ 0:00.00 /usr/libexec/getty Pc ttyv6
728 v7 ILs+ 0:00.02 /usr/libexec/getty Pc ttyv7
root@phungte-154#
with the change:
root@phungte-154# ./ps -O lastcpu
PID C TT STAT TIME COMMAND
730 1 p0 ILs 0:00.02 login [pam] (login)
731 1 p0 SL 0:00.05 -bash (bash)
747 1 p0 SL 0:17.23 emacs
787 0 p0 R0L+ 0:00.00 ./ps -O lastcpu
749 1 p1 ILs+ 0:00.02 /usr/local/bin/bash --noediting -i
779 1 p2 ILs+ 0:00.03 /usr/bin/gdb -cd /usr/src/bin/ps/ -fullname
/usr/
780 1 p2 ZL 0:00.00 (ps)
722 0 v0 ILs+ 0:00.01 /usr/libexec/getty Pc ttyv0
723 1 v2 ILs+ 0:00.00 /usr/libexec/getty Pc ttyv2
724 0 v3 ILs+ 0:00.00 /usr/libexec/getty Pc ttyv3
725 0 v4 ILs+ 0:00.01 /usr/libexec/getty Pc ttyv4
726 0 v5 ILs+ 0:00.00 /usr/libexec/getty Pc ttyv5
727 1 v6 ILs+ 0:00.00 /usr/libexec/getty Pc ttyv6
728 1 v7 ILs+ 0:00.02 /usr/libexec/getty Pc ttyv7
root@phungte-154#
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]