On 2011-02-02, Grant Edwards <[email protected]> wrote:
> I may try out a few different options on the Python version of
> strace.
FYI,
I've been testing new features I've added to the Python
implementation of strace, and I'm pretty happy with them:
1) I've added code to keep track of the paths associated with file
descriptors by watching for open/close/dup/dup2/clone calls.
2) I've added a command-line option to display the associated path[s]
for all syscalls that have file descriptors as parameters.
3) I've added a command-line option to filter the display of syscalls
based on a list of paths. It will output only syscalls who's
parameters include either a one of the specified paths or a file
descriptor associated with one of the specified paths.
That required a total of 90 lines of code.
I'm going to start working on re-implementing the above in C...
--
Grant Edwards grant.b.edwards Yow! WHO sees a BEACH BUNNY
at sobbing on a SHAG RUG?!
gmail.com
------------------------------------------------------------------------------
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