]> sourceware.org Git - systemtap.git/commitdiff
syscalls.stp: Add sys_fchownat.
authorZhaolei <zhaolei@cn.fujitsu.com>
Fri, 13 Jun 2008 08:35:13 +0000 (16:35 +0800)
committerZhaolei <zhaolei@cn.fujitsu.com>
Fri, 13 Jun 2008 08:35:13 +0000 (16:35 +0800)
tapset/ChangeLog
tapset/syscalls.stp

index 21cb5f316617802f58ce5dd94287ceb402919a1e..5c89aed539a983b92e2a51a8e8de8fd704d5958c 100644 (file)
@@ -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.
index bbb767c852ecdc52e556f78bd9ad4679ed513dc3..f8a6be64a895f3a46b8b00c66e60fb0eea8e2032 100644 (file)
@@ -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)
This page took 0.030511 seconds and 5 git commands to generate.