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

Dmitry V. Levin ldv at altlinux.org
Tue Aug 24 09:17:02 UTC 2021

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?


More information about the Strace-devel mailing list