From: William Cohen <wcohen@redhat.com>
To: "Frank Ch. Eigler" <fche@redhat.com>
Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>,
srinivasa@in.ibm.com, systemtap@sources.redhat.com
Subject: Re: changelog files, %( %) idioms
Date: Mon, 03 Mar 2008 16:48:00 -0000 [thread overview]
Message-ID: <47CC2BCD.7080508@redhat.com> (raw)
In-Reply-To: <20080303162251.GA23898@redhat.com>
Frank Ch. Eigler wrote:
> 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
I saw this this cause failure on F-9 i686. There could be 2.6.24.1, so probably
want to check that the kernel is earlier than 2.6.25. Something like the following:
bx = %( kernel_vr < "2.6.25" %? $bx %: $ebx %)
Could the use of $bx be factored out of argstr, so there is only one check for
the kernel version for $ebx/$bx rather than two?
-Will
next prev parent reply other threads:[~2008-03-03 16:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-25 15:00 Frank Ch. Eigler
2008-03-03 12:18 ` Ananth N Mavinakayanahalli
2008-03-03 16:24 ` Frank Ch. Eigler
2008-03-03 16:48 ` William Cohen [this message]
2008-03-04 4:29 ` Ananth N Mavinakayanahalli
2008-03-06 14:48 ` William Cohen
2008-03-06 15:16 ` Ananth N Mavinakayanahalli
2008-03-06 9:10 ` examples/wait4time.stp Wenji Huang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47CC2BCD.7080508@redhat.com \
--to=wcohen@redhat.com \
--cc=ananth@in.ibm.com \
--cc=fche@redhat.com \
--cc=srinivasa@in.ibm.com \
--cc=systemtap@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).