diff options
| author | Paul Buetow <pbuetow@mimecast.com> | 2018-03-30 10:21:02 +0100 |
|---|---|---|
| committer | Paul Buetow <pbuetow@mimecast.com> | 2018-03-30 10:21:02 +0100 |
| commit | 712a25f115bf34dc73f81e5a4f1971b586fb524a (patch) | |
| tree | 30a4620b9df7f72897d7bb0c4d587461cc748a61 /systemtap/src | |
| parent | fd779da9cfd81db6bf1d01404149235d7dd3e9df (diff) | |
add file hole support
Diffstat (limited to 'systemtap/src')
| -rw-r--r-- | systemtap/src/ioriot.stp | 14 | ||||
| -rw-r--r-- | systemtap/src/javaioriot.stp | 14 | ||||
| -rw-r--r-- | systemtap/src/targetedioriot.stp | 14 |
3 files changed, 42 insertions, 0 deletions
diff --git a/systemtap/src/ioriot.stp b/systemtap/src/ioriot.stp index 9ea6a68..4029ebb 100644 --- a/systemtap/src/ioriot.stp +++ b/systemtap/src/ioriot.stp @@ -100,6 +100,20 @@ probe syscall.lseek.return { } } +probe syscall.llseek.return { + if(execname() != "stapio") { + printf("t=%d;:,i=%d:%d;:,o=%s;:,d=%d;:,O=%d;:,W=%d;:,b=%d;:,\n", + gettimeofday_ms(), + pid(), + tid(), + name, + @entry($fd), + (@entry($offset_high) << 32 | @entry($offset_low)), + @entry($whence), + $return); + } +} + probe syscall.fcntl.return { if(execname() != "stapio") { printf("t=%d;:,i=%d:%d;:,o=%s;:,d=%d;:,F=%d;:,G=%d;:,s=%d;:,\n", diff --git a/systemtap/src/javaioriot.stp b/systemtap/src/javaioriot.stp index 3943971..945ecf6 100644 --- a/systemtap/src/javaioriot.stp +++ b/systemtap/src/javaioriot.stp @@ -100,6 +100,20 @@ probe syscall.lseek.return { } } +probe syscall.llseek.return { + if(execname() == "java") { + printf("t=%d;:,i=%d:%d;:,o=%s;:,d=%d;:,O=%d;:,W=%d;:,b=%d;:,\n", + gettimeofday_ms(), + pid(), + tid(), + name, + @entry($fd), + (@entry($offset_high) << 32 | @entry($offset_low)), + @entry($whence), + $return); + } +} + probe syscall.fcntl.return { if(execname() == "java") { printf("t=%d;:,i=%d:%d;:,o=%s;:,d=%d;:,F=%d;:,G=%d;:,s=%d;:,\n", diff --git a/systemtap/src/targetedioriot.stp b/systemtap/src/targetedioriot.stp index f72dc66..ee3ee7a 100644 --- a/systemtap/src/targetedioriot.stp +++ b/systemtap/src/targetedioriot.stp @@ -100,6 +100,20 @@ probe syscall.lseek.return { } } +probe syscall.llseek.return { + if(pid() == target()) { + printf("t=%d;:,i=%d:%d;:,o=%s;:,d=%d;:,O=%d;:,W=%d;:,b=%d;:,\n", + gettimeofday_ms(), + pid(), + tid(), + name, + @entry($fd), + (@entry($offset_high) << 32 | @entry($offset_low)), + @entry($whence), + $return); + } +} + probe syscall.fcntl.return { if(pid() == target()) { printf("t=%d;:,i=%d:%d;:,o=%s;:,d=%d;:,F=%d;:,G=%d;:,s=%d;:,\n", |
