diff options
Diffstat (limited to 'systemtap/src/targetedioriot.stp')
| -rw-r--r-- | systemtap/src/targetedioriot.stp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/systemtap/src/targetedioriot.stp b/systemtap/src/targetedioriot.stp index ee3ee7a..539b826 100644 --- a/systemtap/src/targetedioriot.stp +++ b/systemtap/src/targetedioriot.stp @@ -71,6 +71,15 @@ function absolute_path (path) { return task_dentry_path(tc, pwd_dentry, pwd_mnt) . "/" . path; } +# Stop probing after 1h (for safety) +probe timer.s(3600) { + exit(); +} + +probe begin { + printf("#|capture_version=%d|\n", 2); +} + probe syscall.open.return, syscall.openat.return { if (pid() == target()) { pathname = user_string(@entry($filename)) @@ -597,9 +606,4 @@ probe syscall.exit_group { } } -# Stop probing after 1h (for safety) -probe timer.s(3600) { - exit(); -} - # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 |
