This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]