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

Lai Jiangshan laijs@cn.fujitsu.com
Fri Aug 17 01:57:00 GMT 2007


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 ?
 {




More information about the Systemtap mailing list