commit | 2dc173dc59f14122b62ef8c1c403e83ae088372b | [log] [tgz] |
---|---|---|
author | Jorge Acereda <jacereda@gmail.com> | Mon Nov 09 22:37:38 2015 +0100 |
committer | Jorge Acereda <jacereda@gmail.com> | Mon Nov 09 22:37:38 2015 +0100 |
tree | 18ff65faa07178fdd052fa678c2c57fedb53193d | |
parent | 71be468aec53d124696547866d27bb16e67572e7 [diff] |
Linux build broken
This tool injects code into other applications in order to trace file accesses.
This can be useful for things like build systems, since it allows to automatically generate dependencies in a toolchain-agnostic way or to ensure declared dependencies match the real ones.
On Windows, type build.bat
to compile fsatrace.exe
and associated DLLs fsatrace32.dll
/ fsatrace64.dll
. The build script assumes VS 2015 is installed, if that's not the case just edit it so it can find the correct location of vcvarsall.bat
.
On Unix, type make
to generate a fsatrace.so
object.
Make sure the .dll or .so files are in the same path as the executable and run:
fsatrace <output-file> -- <command>
Newline-separated sequence with the following possibilities:
path-to-file-opened-for-read
path-to-file-opened-for-write
path-to-destination-of-move
|path-to-source-of-move
path-to-deleted-file