New option in ps for thread output management

Eric PAIRE (e.paire@opengroup.org)
Tue, 15 Sep 1998 10:26:43 +0200


Sorry for the previous empty posting!

I intent to modify "procps-1.2.8" in order to add a new option to select
display of cloned processes. In BSD systems, the '-m' ps option adds
threads to the list of processes listed. Since there are only forked and
cloned processes in Linux, I want to add an option which selects the
output of cloned processes, and have no explicit reference to threads.

Since the '-m' option is already used in the standard Linux "ps" (and
since there are no threads in Linux), I do not intent to use the BSD '-m'
option for this purpose. I suggest to add a new '-C' option to prevent
cloned processes to be selected, which is coherent with the current "ps"
behaviour without this option. As example, "ps" will display current
processes (forked and cloned ones), while "ps -C" will display only
forked ones with user and kernel time of cloned processes cumulated to
the original forked one. If there are no cloned processes, the output
will not change. I also intent to add the same option to the "top"
command.

I would like to get opinions of the Linux community on this new option
and its meaning before making the patches available.

Best regards,
-Eric
P.S. I also suggest to the procps maintainers to get the "proc/*.h"
installed by default in "/usr/include/proc" in order to allow
third-party processes to use the libproc.so parsing routines.
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ Eric PAIRE
Email : e.paire@gr.opengroup.org | THE Open GROUP - Grenoble Research
Institute
Phone : +33 (0) 476 63 48 71 | 2, avenue de Vignate
Fax : +33 (0) 476 51 05 32 | F-38610 Gieres FRANCE

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/