This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: changelog files, %( %) idioms
- From: "Frank Ch. Eigler" <fche at redhat dot com>
- To: Ananth N Mavinakayanahalli <ananth at in dot ibm dot com>
- Cc: srinivasa at in dot ibm dot com, systemtap at sources dot redhat dot com
- Date: Mon, 3 Mar 2008 11:22:52 -0500
- Subject: Re: changelog files, %( %) idioms
- References: <20080225145915.GA8718@redhat.com> <20080303121841.GA18212@in.ibm.com>
Hi -
On Mon, Mar 03, 2008 at 05:48:41PM +0530, Ananth N Mavinakayanahalli wrote:
> [...]
> probe syscall.sigaltstack = kernel.function("sys_sigaltstack") {
> name = "sigaltstack"
> - ebx = $ebx
> - argstr = sprintf("%p", $ebx)
> + bx = %( kernel_vr > "2.6.24" %? $bx %: $ebx %)
> + argstr = sprintf("%p", %( kernel_vr > "2.6.24" %? $bx %: $ebx %) )
I suggest picking a single more informative variable name than "ebx"
or "bx" for that parameter. Then that variable could be used as the
plain sprintf value.
- FChE