From: Albert Cahalan <albert@users.sf.net>
To: linux-kernel mailing list <linux-kernel@vger.kernel.org>
Cc: AlberT@agilemovement.it, miquels@cistron.nl
Subject: Re: Hidden PIDs in /proc
Date: 23 Mar 2004 21:20:13 -0500 [thread overview]
Message-ID: <1080094813.2232.815.camel@cube> (raw)
> I allready did it ... infact the second test I posted
> correctly shows the thread ... but, why ps ax -m does
> *not* show it ??
It does show the threads, but your "grep" missed them.
The built-in process selection and sorting features
are properly thread-aware.
> uh oh .. my bad ... but .. my ignorance now ask
> what is the real diff between -m and -T option for ps ...
-m process followed by threads, Tru64 SysV style
m process followed by threads, Tru64 BSD style
-T grouped threads with TID column, Irix style
-L grouped threads with LWP (and NLWP maybe), Solaris style
H loose threads, FreeBSD style
I'll give you a few examples with a 2-thread process.
Note how the m option distinguishes signals that are
pending on a process from signals that are pending on
a thread. (some whitespace has been trimmed out too)
Also, the H option's PID column most likely should show
the thread ID instead; help with FreeBSD 5's thread
and MAC behavior would be appreciated.
$ ps -C clone-once sH
UID PID PENDING BLOCKED IGNORED CAUGHT STAT TTY TIME COMMAND
100 634 00000000 00000000 <00000000 00000001 S pts/9 0:00 clone-once
100 634 00000000 00000000 <00000000 00000001 S pts/9 0:00 clone-once
$ ps -C clone-once sm
UID PID PENDING BLOCKED IGNORED CAUGHT STAT TTY TIME COMMAND
100 634 00000000 - - - - pts/9 0:00 clone-once
100 - 00000000 00000000 <00000000 00000001 S - 0:00 -
100 - 00000000 00000000 <00000000 00000001 S - 0:00 -
$ ps -C clone-once -fm
UID PID PPID C STIME TTY TIME CMD
albert 634 1 0 20:42 pts/9 00:00:00 clone-once
albert - - 0 20:42 - 00:00:00 -
albert - - 0 20:42 - 00:00:00 -
$ ps -C clone-once -fT
UID PID SPID PPID C STIME TTY TIME CMD
albert 634 16634 1 0 20:42 pts/9 00:00:00 clone-once
albert 634 16635 1 0 20:42 pts/9 00:00:00 clone-once
$ ps -C clone-once -fL
UID PID PPID LWP C NLWP STIME TTY TIME CMD
albert 634 1 16634 0 2 20:42 pts/9 00:00:00 clone-once
albert 634 1 16635 0 2 20:42 pts/9 00:00:00 clone-once
$
next reply other threads:[~2004-03-24 2:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-24 2:20 Albert Cahalan [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-03-23 16:08 Hidden PIDs in /proc Emiliano 'AlberT' Gabrielli
2004-03-23 16:15 ` Miquel van Smoorenburg
2004-03-23 16:40 ` Emiliano 'AlberT' Gabrielli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1080094813.2232.815.camel@cube \
--to=albert@users.sf.net \
--cc=AlberT@agilemovement.it \
--cc=linux-kernel@vger.kernel.org \
--cc=miquels@cistron.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox