[PATCH 0/3] -Y, --decode-pids option for printing command names for PIDs

Masatake YAMATO yamato at redhat.com
Tue Aug 24 19:21:23 UTC 2021


On Tue, 24 Aug 2021 12:17:02 +0300, "Dmitry V. Levin" <ldv at altlinux.org> wrote:
> On Wed, Aug 18, 2021 at 08:00:39PM +0900, Masatake YAMATO wrote:
>> In some applications like qemu-kvm, threads change their
>> command names to indicate their roles in the application.
>> Users can access the command name via /proc/$pid/comm.
>> The command name can be a great hit to understand the application
>> behavior.
>> 
>> This pull request introduces -Y option that enables printing command
>> names where PIDs appear.
> [...]
>> This change considers only PIDs in the prefixes of trace lines.
>> Printing command names for PIDs in arguments and return values is
>> future work.
> 
> Nice.  The name of new option (--decode-pids) implies that other pid
> occurrences are also subject for comm decoding.  Do you plan to extend
> --decode-pids option this way?  Should we introduce an argument for
> --decode-pids from the beginning?
>

I implemented -Y,--decode-pids(=prefix) that I send and
-YY,--decode-pids=all that I will send. After reflecting
your review to the patches, I will send v2 patches that
include both -Y and -YY.

Thank you for reviewing.
Masatake YAMATO

> 
> -- 
> ldv
> 



More information about the Strace-devel mailing list