brendangregg / perf-tools

Performance analysis tools based on Linux perf_events (aka perf) and ftrace
GNU General Public License v2.0
9.9k stars 1.65k forks source link

opensnoop: Monitor both sys_exit_open and sys_exit_openat. #87

Closed bastianbeischer closed 4 years ago

bastianbeischer commented 5 years ago

In glibc 2.26 and above the open() wrapper function uses the sys_openat syscall instead of sys_open(), which (for code linked with libc) breaks opensnoop unless openat is monitored.

brendangregg commented 4 years ago

thanks!

brendangregg commented 4 years ago

Something is amiss: I thought I clicked the merge button, but github is showing this as open, merged, and closed at the same time. Umm. Temporary github issue?

bastianbeischer commented 4 years ago

Thanks for merging :) I don't know what happened, I closed from my side and it seems fine now.