diff options
author | hunt <hunt> | 2007-01-17 18:27:41 +0000 |
---|---|---|
committer | hunt <hunt> | 2007-01-17 18:27:41 +0000 |
commit | fa9f1b01dba640583ff19edd805ebf9b27b34a16 (patch) | |
tree | 78960caa736cf70d557cd2cfbb98ad4f041232b5 /tapset/syscalls.stp | |
parent | cf49e51a9a4a1a955d746bde9a5e29108b688615 (diff) | |
download | systemtap-steved-fa9f1b01dba640583ff19edd805ebf9b27b34a16.tar.gz systemtap-steved-fa9f1b01dba640583ff19edd805ebf9b27b34a16.tar.xz systemtap-steved-fa9f1b01dba640583ff19edd805ebf9b27b34a16.zip |
2007-01-17 Martin Hunt <hunt@redhat.com>
* syscalls.stp: Add syscall.creat.
* syscalls2.stp: Add compat_sys_open.
Diffstat (limited to 'tapset/syscalls.stp')
-rw-r--r-- | tapset/syscalls.stp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tapset/syscalls.stp b/tapset/syscalls.stp index 2dff01b6..6601a229 100644 --- a/tapset/syscalls.stp +++ b/tapset/syscalls.stp @@ -377,6 +377,22 @@ probe syscall.connect.return = kernel.function("sys_connect").return { retstr = returnstr(1) } +# creat +# long sys_creat(const char __user * pathname, int mode) +probe syscall.creat = kernel.function("sys_creat") ? +{ + name = "creat" + mode = $mode + pathname = user_string($pathname) + argstr = sprintf("%s, %s, %#o", user_string_quoted($pathname), + _sys_open_flag_str(flags), $mode) +} +probe syscall.creat.return = kernel.function("sys_creat").return ? +{ + name = "creat" + retstr = returnstr(1) +} + # delete_module ______________________________________________ # long sys_delete_module(const char __user *name_user, unsigned int flags) probe syscall.delete_module = kernel.function("sys_delete_module") { |