Feature requests: list of PIDS, and all threads
Dmitry V. Levin
ldv at altlinux.org
Fri Mar 9 15:17:03 UTC 2012
On Thu, Mar 08, 2012 at 12:32:12PM +0100, Denys Vlasenko wrote:
> On 03/07/2012 08:59 PM, George Spelvin wrote:
> > With multi-process and multi-threaded programs becoming more common,
> > there are a couple of things I wish strace gave me:
> >
> > 1) Some way to supply a *list* of pids to be traced, without having to
> > prefix each with "-p". This would make it much easier to paste
> > in the output of "pgrep" or the like.
> >
> > Two options come to mind:
> > -P means "all bare arguments are pids"; the case of mixing
> > pids and a commnd line process is somewhat uncommon.
> > -p takes a whitespace-separated list of pids. So I could
> > use -p "`pgrep foo`".
>
> I guess we can support -p PID1,PID2 _and_ -p "PID1 PID2".
> Why not?
Of course we can, and you've implemented this with commit
v4.6-258-ge8172b7 already, but the same effect can be trivially
achieved by using sed, e.g.
strace `pgrep whatever |sed 's/^/-p /'`
so there is no real benefit for users from adding this feature.
--
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20120309/c09c5d31/attachment.bin>
More information about the Strace-devel
mailing list