From 0f8b6058e5f31c7318e5d873ad732bc9946ff1b5 Mon Sep 17 00:00:00 2001 From: dsmith Date: Tue, 16 May 2006 16:13:09 +0000 Subject: 2006-05-16 David Smith * conversions.stp (hexstring, string): Removed functions. Because of parser changes, "string" is now a reserved word and cannot be a function name. Use 'sprintf("0x%x", num)' to replace hexstring() and either 'sprint(num)' or 'sprintf("%d", num)' to replace string(). * syscalls.stp (syscall.accept, syscall.alarm, syscall.close, syscall.dup, syscall.epoll_create, syscall.exit, syscall.fchdir, syscall.fdatasync, syscall.fsync, syscall.getsid) Changed 'string()' calls to 'sprint()' calls. * syscalls2.stp (syscall.sched_get_priority_max, syscall.sched_get_priority_min, syscall.sched_getscheduler, syscall.setfsgid, syscall.setfsgid16, syscall.setfsuid, syscall.setfsuid16, syscall.setgid, syscall.setgid16, syscall.setuid, syscall.setuid16, syscall.ssetmask, syscall.timer_delete, syscall.timer_getoverrun): Ditto. * i686/syscalls.stp (syscall.iopl, syscall.rt_sigreturn, syscall.sigreturn): Ditto. * ppc64/syscalls.stp (syscall.ppc64_personality): Ditto. * x86_64/syscalls.stp (kernel.syscall.iopl, kernel.syscall.umask): Ditto. * test/ctostp.sh: Uses 'sprint()' instead of 'string()' in generated systemtap code. --- tapset/test/ctostp.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tapset/test') diff --git a/tapset/test/ctostp.sh b/tapset/test/ctostp.sh index 1918ae83..132f204c 100755 --- a/tapset/test/ctostp.sh +++ b/tapset/test/ctostp.sh @@ -42,9 +42,9 @@ do var=` echo $line|cut -d"\"" -f4` if [ `echo $var|grep void|wc -l` -eq 1 ] then - echo " log(\"$func: $var = \".string(0))" >> $dest/$fn.stp + echo " log(\"$func: $var = \".sprint(0))" >> $dest/$fn.stp else - echo " log(\"$func: $var = \".string($var))" >> $dest/$fn.stp + echo " log(\"$func: $var = \".sprint($var))" >> $dest/$fn.stp fi fi done < $file -- cgit