How to trace per-file IO operations in Linux?

前端 未结 6 1336
不知归路
不知归路 2020-12-28 09:45

I need to track read system calls for specific files, and I\'m currently doing this by parsing the output of strace. Since read operat

6条回答
  •  渐次进展
    2020-12-28 09:55

    Parsing command-line utils like strace is cumbersome; you could use ptrace() syscall instead. See man ptrace for details.

提交回复
热议问题