New issue 26 by comexk: OSX support with DYLD_INSERT_LIBRARIES/interposing
http://code.google.com/p/fabricate/issues/detail?id=26
While OSX has dtruss which has similar output to strace, it (and anything
else using DTrace) requires root access making it impractical. Here is an
alternative implementation using DYLD_INSERT_LIBRARIES, similar to
LD_PRELOAD on Linux, to detect what files are being accessed. This
requires bundling C code into fabricate.py, but seems to work correctly and
quickly (probably faster than strace as it doesn't need to use regular
expressions).
Attachments:
interposing.diff 5.7 KB
Improved version that handles more cases.
Attachments:
interposing-001.diff 5.8 KB
Hi comexk. Nice work. I have been trying to contact you about these patches
before accepting them. Please email me. My address is at:
http://brush.co.nz/contact -- Berwyn
You received this message because you are subscribed to the Google Groups "fabricate users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fabricate-users+unsubscribe@googlegroups.com.
To post to this group, send email to fabricate-users@googlegroups.com.
Visit this group at http://groups.google.com/group/fabricate-users.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and stop receiving emails from it, send an email to fabricate-use...@googlegroups.com.
To post to this group, send email to fabrica...@googlegroups.com.
Hi Rosen,
Not done much on OSX support recently. There are some patches in the git repository on an OSX specific branch. They are not merged because I have no ability to test them. I don't have access to any OSX machines.
If you test the branch at all let me know how it goes. If I remember correctly one of the patches I added should give you dependency calculation via system call interception much like the strace version does on Linux.
Simon