diff options
author | Zhaolei <zhaolei@cn.fujitsu.com> | 2008-06-11 17:03:20 +0800 |
---|---|---|
committer | Zhaolei <zhaolei@cn.fujitsu.com> | 2008-06-11 17:03:20 +0800 |
commit | 335972be354a791757e475417c955efd9a45f03d (patch) | |
tree | 085dd4f3608395d1e8dc45d84b3105959cf3a9b3 /tapset/syscalls.stp | |
parent | 14a758012a4db7be49f13ac874075bcdac50884f (diff) | |
download | systemtap-steved-335972be354a791757e475417c955efd9a45f03d.tar.gz systemtap-steved-335972be354a791757e475417c955efd9a45f03d.tar.xz systemtap-steved-335972be354a791757e475417c955efd9a45f03d.zip |
syscalls.stp: Add sys_fchmodat.
Diffstat (limited to 'tapset/syscalls.stp')
-rw-r--r-- | tapset/syscalls.stp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tapset/syscalls.stp b/tapset/syscalls.stp index 5bc39a25..bbb767c8 100644 --- a/tapset/syscalls.stp +++ b/tapset/syscalls.stp @@ -755,6 +755,24 @@ probe syscall.fchmod.return = kernel.function("sys_fchmod").return { retstr = returnstr(1) } +# fchmodat ___________________________________________________ +# new function with 2.6.16 +# long sys_fchmodat(int dfd, const char __user *filename, +# mode_t mode) +probe syscall.fchmodat = kernel.function("sys_fchmodat") ? { + name = "fchmodat" + dfd = $dfd + dfd_str = _dfd_str($dfd) + filename = $filename + filename_str = user_string($filename) + mode = $mode + argstr = sprintf("%s, %s, %#o", dfd_str, user_string_quoted($filename), $mode) +} +probe syscall.fchmodat.return = kernel.function("sys_fchmodat").return ? { + name = "fchmodat" + retstr = returnstr(1) +} + # fchown _____________________________________________________ # long sys_fchown(unsigned int fd, uid_t user, gid_t group) probe syscall.fchown = kernel.function("sys_fchown") { |