This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[patch] Fix bug of syscall.creat 's argstr
- From: Lai Jiangshan <laijs at cn dot fujitsu dot com>
- To: systemtap at sourceware dot org
- Date: Fri, 17 Aug 2007 09:40:12 +0900
- Subject: [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 ?
{