I've re-written the path display/trace features. Attached is a snapshot of the diffs against the current git HEAD. Changes since the first version I posted follow:
* Removed the code that tracked fd-table state based on syscalls. It now does a readlink() on /proc/<pid>/fd/<fd> to find the path associated with a file descriptor. * Change the -P option so that instead of accepting a colon-separated list of paths, it accepts a single path. Multiple -P options can be specified to trace multiple paths. * Change the way that file descriptors are printed by the display functions. Instead of using "%s" and a function that returns a formatted string, they now use a printfd() function analogous to the printpath() function. * Added handling (for Linux) for system calls where we need to look at something other than arg[0] for a descriptor/path. Feedback is welcome... -- Grant
pathtrace.patch
Description: application/patch
------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________ Strace-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/strace-devel
