This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
changes to runtime string functions
- From: Martin Hunt <hunt at redhat dot com>
- To: systemtap at sources dot redhat dot com
- Date: Wed, 31 Jan 2007 15:34:29 -0500
- Subject: changes to runtime string functions
- Organization: Red Hat Inc.
I have checked in a rewrite of the string functions in the runtime.
This is part of an effort to increase performance and reduce memory
usage. Many functions were eliminated and the symbol and stack code
required major editing. Only a few tapset functions needed to be
modified to use the new code and everything appears to be running fine
on x86_64 and i386. It would be nice if people with access to other
architectures could test and report back if there are any problems. Also
if you have embedded code that is not checked in and you use any of the
old string functions, you may need to update your code.
The most likely affected code is the stack trace stuff. Please try this
and see if it looks OK.
function print_stuff () {
print_regs()
print_backtrace()
print("--------\n")
bt = backtrace()
printf("the stack is %s\n", bt)
print("--------\n")
print_stack(bt)
print("--------\n")
}
probe kernel.function("uptime_read_proc") {
print("NOW IN UPTIME\n")
print_stuff ()
}
After starting this probe, run "uptime" to trigger it.
Martin