[strace/strace] Feature request: name log files based on the executable name (#153)
Igor Zhbanov
notifications at github.com
Mon Sep 7 15:48:30 UTC 2020
When you are tracing multiple different processes (with `-f -ff` options) when trying to understand what a system does, it is difficult later to understand what log file belongs to what process. There could be an option for automatic renaming the logs based on `argv[0]` supplied to `execve` syscall. I.e. with the proposed options you would get logs named like:
- bash-1234.log
- cp-1235.log
To make it possible, strace needs to:
1) read executable name at the time of attaching to some PID,
2) on the forking and cloning inherit that name,
3) but rename a file on `execve`.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/strace/strace/issues/153
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20200907/7be3cac3/attachment.htm>
More information about the Strace-devel
mailing list