title: How to trace per-file IO operations in Linux?
body: <p>I need to track <code>read</code> system calls for specific files, and I'm currently doing this by parsing the output of <code>strace</code>. Since <code>read</code> operates on file descriptors I have to keep track of the current mapping between <code>fd</code> and <code>path</code>. Additionally, <code>seek</code> has to be monitored to keep the current position up-to-date in the trace.</p>
  
  <p>Is there a better way to get per-application, per-file-path IO traces in Linux?</p>