This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Using systemtap to look at futexs
- From: "Frank Ch. Eigler" <fche at redhat dot com>
- To: systemtap at sources dot redhat dot com
- Date: Tue, 16 May 2006 17:56:16 -0400
- Subject: Re: Using systemtap to look at futexs
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