summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhaolei <zhaolei@cn.fujitsu.com>2008-06-13 16:35:13 +0800
committerZhaolei <zhaolei@cn.fujitsu.com>2008-06-13 16:35:13 +0800
commit46e2c2c1322c6972a6deb0b4685c23539e369d5b (patch)
tree8012d7f544dde8b4ca9e8c18472c861c1a574a9b
parentf745a645b4e35530106d09e3a6fc95c87d6ca518 (diff)
downloadsystemtap-steved-46e2c2c1322c6972a6deb0b4685c23539e369d5b.tar.gz
systemtap-steved-46e2c2c1322c6972a6deb0b4685c23539e369d5b.tar.xz
systemtap-steved-46e2c2c1322c6972a6deb0b4685c23539e369d5b.zip
syscalls.stp: Add sys_fchownat.
-rw-r--r--tapset/ChangeLog4
-rw-r--r--tapset/syscalls.stp22
2 files changed, 26 insertions, 0 deletions
diff --git a/tapset/ChangeLog b/tapset/ChangeLog
index 21cb5f31..5c89aed5 100644
--- a/tapset/ChangeLog
+++ b/tapset/ChangeLog
@@ -1,3 +1,7 @@
+2008-06-13 Zhaolei <zhaolei@cn.fujitsu.com>
+
+ * syscalls.stp: Add sys_fchownat.
+
2008-06-12 Will Cohen <wcohen@redhat.com>
* tasks.stp: Add user_mode.
diff --git a/tapset/syscalls.stp b/tapset/syscalls.stp
index bbb767c8..f8a6be64 100644
--- a/tapset/syscalls.stp
+++ b/tapset/syscalls.stp
@@ -801,6 +801,28 @@ probe syscall.fchown16.return = kernel.function("sys_fchown16").return ? {
retstr = returnstr(1)
}
+# fchownat ___________________________________________________
+# new function with 2.6.16
+# long sys_fchownat(int dfd, const char __user *filename,
+# uid_t user, gid_t group, int flag)
+probe syscall.fchownat = kernel.function("sys_fchownat") ? {
+ name = "fchownat"
+ dfd = $dfd
+ dfd_str = _dfd_str($dfd)
+ filename = $filename
+ filename_str = user_string($filename)
+ user = __int32($user)
+ group = __int32($group)
+ flag = $flag
+ flag_str = _at_flag_str($flag)
+ argstr = sprintf("%s, %s, %d, %d, %s",
+ dfd_str, user_string_quoted($filename), user, group, flag_str)
+}
+probe syscall.fchownat.return = kernel.function("sys_fchownat").return ? {
+ name = "fchownat"
+ retstr = returnstr(1)
+}
+
# fcntl ______________________________________________________
# long sys_fcntl(int fd, unsigned int cmd, unsigned long arg)
# long sys_fcntl64(unsigned int fd, unsigned int cmd, unsigned long arg)