From 46e2c2c1322c6972a6deb0b4685c23539e369d5b Mon Sep 17 00:00:00 2001 From: Zhaolei Date: Fri, 13 Jun 2008 16:35:13 +0800 Subject: [PATCH] syscalls.stp: Add sys_fchownat. --- tapset/ChangeLog | 4 ++++ tapset/syscalls.stp | 22 ++++++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/tapset/ChangeLog b/tapset/ChangeLog index 21cb5f316..5c89aed53 100644 --- a/tapset/ChangeLog +++ b/tapset/ChangeLog @@ -1,3 +1,7 @@ +2008-06-13 Zhaolei + + * syscalls.stp: Add sys_fchownat. + 2008-06-12 Will Cohen * tasks.stp: Add user_mode. diff --git a/tapset/syscalls.stp b/tapset/syscalls.stp index bbb767c85..f8a6be64a 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) -- 2.43.5