From: Max Kirillov <max@ma...> - 2011-04-07 04:19:41
On Thu, Apr 07, 2011 at 01:14:33AM +0400, Dmitry V. Levin wrote:
> On Wed, Apr 06, 2011 at 01:08:06PM -0700, max@... wrote:
>> There is an old bug in strace - it does not allow specifying both -p and
>> commandline arguments.
> Why do you consider this behavior as a bug?
At least, by the definition of "bug": man strace specifies
| Multiple -p options can be used to attach to up to 32
| processes in addition to command (which is optional if at
| least one -p option is given).
> Could you show an example of useful tracing of existing processes
> along with executing new traced processes, please?
I do not have that example which revealed the problem to me
anymore, but in general any client-server architecture
(which are common to modern Linux) can be traced with it:
$strace -p 2494 -p 13284 qdbus \
Here 2494 is dbus-daemon and 13284 is the Notification