Only absolute file paths in strace possible?
wolle5050 at gmx.de
Tue Jun 14 05:02:20 UTC 2016
I must analyze a library (*.tar.gz) that includes a lot of files and most of them are not required for a specific run.
I used strace 4.8.1 on Ubuntu Server 16.04 with:
strace -e trace=file -f -v -o /tmp/result.strace ./run.sh
Everything is working fine, but the log sometimes contains relative paths like:
open("../surf/lh.inflated", O_RDONLY) = 3
open("../surf/rh.sphere", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
Unfortunatly, the file names are sometimes not unique, which means that different files share the same file name, but are located in different directories. It becomes difficult to find out which of those files has been touched during execution.
Is there a way to force strace to convert all relative file paths to absolute ones?
More information about the Strace-devel