Only absolute file paths in strace possible?

Dmitry V. Levin ldv at altlinux.org
Tue Jun 14 12:06:23 UTC 2016


Hi,

On Tue, Jun 14, 2016 at 07:02:20AM +0200, Jens Offenbach wrote:
> Hallo,
> 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?

Try -y option.
It doesn't convert all relative file paths to absolute ones,
but you might find this option useful.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20160614/71d6dc68/attachment.bin>


More information about the Strace-devel mailing list