public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: Mark Wielaard <mjw@redhat.com>
To: Wade Farnsworth <wade_farnsworth@mentor.com>
Cc: systemtap@sourceware.org
Subject: Re: Test suite results for ARM with uprobes
Date: Wed, 14 Dec 2011 15:54:00 -0000	[thread overview]
Message-ID: <1323876723.3567.33.camel@springer.wildebeest.org> (raw)
In-Reply-To: <4EE0D5D8.2030906@mentor.com>

On Thu, 2011-12-08 at 08:20 -0700, Wade Farnsworth wrote:
> >> FAIL: semok/config_number.stp [semantic error: probe point mismatch
> at
> >> position 0]
> >
> > This one PASSes for me.
> > What is CONFIG_NR_CPU set to for your kernel?
> > It is set to 2 for me.
> >
> 
> CONFIG_SMP is not set, so CONFIG_NR_CPU doesn't exist in my config
> file. 
>   Maybe stap treats that as being equal to zero?

Yep it does. Although I am not sure it is meant to. It uses strtoll to
convert the empty string "", which returns zero, then it checks if errno
is set and it isn't, even though the man page says "The  implementation
may also set errno to EINVAL in case no conversion was performed (no
digits seen, and 0 returned)."

I don't know what is preferred. I could change the code to barf on an
empty string in a CONFIG_ numerical comparison, then we would need to
change the testcase to pick some other CONFIG_ option which is always
set. I think this is the most sane, but it is a slight change in how
things worked before (I think by accident).

Or we could accept that numerical comparisons of CONFIG_ options which
aren't set compare to zero and then we change the testcase to also
accept that CONFIG_NR_CPU == 0.

Opinions?

Thanks,

Mark

  reply	other threads:[~2011-12-14 15:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-06 21:37 Wade Farnsworth
2011-12-07 13:39 ` Mark Wielaard
2011-12-08 19:24   ` Wade Farnsworth
2011-12-14 15:54     ` Mark Wielaard [this message]
2011-12-16 19:18       ` Mark Wielaard

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=1323876723.3567.33.camel@springer.wildebeest.org \
    --to=mjw@redhat.com \
    --cc=systemtap@sourceware.org \
    --cc=wade_farnsworth@mentor.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).