SystemTAP GUI Update Released
Brad Peters
bpeters@linux.vnet.ibm.com
Fri Jun 8 23:54:00 GMT 2007
The SystemTAP GUI Speed-team, Rachel and Patrick, have been working hard to
improve on last years project. An early release, primarily consisting of
modifications necessary to work with Eclipse 3.2 and some stability
enhancements, is now available at:
http://sourceforge.net/projects/stapgui/
Stay tuned for much bigger changes in coming months!
SystemTAP GUI:
Systemtap GUI is a tool developed to assist people who wish to understand what
their system is doing, through the creation of SystemTap scripts.
A SystemTap script can be used to probe into the Linux kernel, monitoring
various system activities and providing information that is traditionally
available only to the individual thread/process. Collected information is
available painlessly in user-space, through a simple C-like printf() , for any
type of error checking, debug, trace or whatever other type of application one
can think of.
Example script:
>>>>
#! /usr/bin/env stap
# Using statistics to examine kernel memory allocations
global kmalloc
probe kernel.function("__kmalloc") {
kmalloc <<< $size
}
# Exit after 10 seconds
probe timer.ms(10000) { exit () }
probe end {
printf("Count: %d allocations\n", @count(kmalloc))
printf("Sum: %d Kbytes\n", @sum(kmalloc)/1000)
printf("Average: %d bytes\n", @avg(kmalloc))
printf("Min: %d bytes\n", @min(kmalloc))
printf("Max: %d bytes\n", @max(kmalloc))
print("\nAllocations by size in bytes\n")
print(@hist_log(kmalloc))
}
<<<<
Best regards,
Brad Peters
IBM
Linux RAS Engineer
IBM Linux Technology Center
More information about the Systemtap
mailing list