Hi,

Attached are my current diffs. I've merged recent changes from the
main git repository and cleaned up loose ends.

The general approach is:

 1) Store -P arguments both as-is and canonicalized.

 2) Compare stored paths against /proc/$pid/fd/$fd for fd arguments.

 3) Compare stored paths against path arguments.


Things on the possible (near-term) todo list:

 1) Canonicalize relative path args based on /proc/$pid/cwd

 2) Handle combination fd/path args such as those passed to openat()

 3) Handle non-simple fd args like fd_set args passed to select() or
    the array of pollfd structs passed to poll().

    
Things on the possible (far-term) todo list:

 1) Figure out a way at the "exiting" stage to handle matching
    descriptors that are return values from syscalls that have been
    filtered (not printed) at the "entering" stage.

 2) Add argument type info to the sys_ent table so that generic code
    can be used to check for matching fd/path arguments.
    
 

Attachment: pathtrace.patch
Description: application/patch

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Strace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to