summaryrefslogtreecommitdiff
path: root/systemtap/src/ioriot.stp
diff options
context:
space:
mode:
Diffstat (limited to 'systemtap/src/ioriot.stp')
-rw-r--r--systemtap/src/ioriot.stp14
1 files changed, 14 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",