This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Fix bug of syscall.creat 's argstr


hi, all

syscall creat(2) has no argument "flags", but in syscalls.stp,
probe syscall.creat's argstr has a strange flags argument.
I deleted it.


the patch follows:


Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>

diff -Nur systemtap-20070811/tapset/syscalls.stp systemtap-20070811-new/tapset/syscalls.stp
--- systemtap-20070811/tapset/syscalls.stp 2007-08-11 00:43:03.000000000 +0900
+++ systemtap-20070811-new/tapset/syscalls.stp 2007-08-17 09:09:16.000000000 +0900
@@ -428,8 +428,7 @@
name = "creat"
mode = $mode
pathname = user_string($pathname)
- argstr = sprintf("%s, %s, %#o", user_string_quoted($pathname), - _sys_open_flag_str(flags), $mode)
+ argstr = sprintf("%s, %#o", user_string_quoted($pathname), $mode)
}
probe syscall.creat.return = kernel.function("sys_creat").return ?
{




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]