Using systemtap to look at futexs

Frank Ch. Eigler fche@redhat.com
Tue May 16 21:57:00 GMT 2006


wcohen wrote:

> [...] probe syscall.futex
> {
> 	printf("pid=%d exec=%s sys_futex(%s)\n", pid(), execname(), argstr)
> }
> 
> probe syscall.futex.return
> {
> 	printf("pid=%d exec=%s sys_futex()=%s\n", pid(), execname(), retstr)
> } [...]

Given the sheer number of such scripts that are almost the same, how
about working out a generalization?  How about a tapset that includes
a common trace function (unless the LKET scripts already include
this).  Or a shell script to generate the systemtap scripts?  Or
another command-line-argument substitution mechanism?

- FChE



More information about the Systemtap mailing list