From: "Ulrich Weigand" <uweigand@de.ibm.com>
To: deuling@de.ibm.com (Markus Deuling)
Cc: brobecker@adacore.com (Joel Brobecker),
gdb-patches@sourceware.org (GDB Patches),
drow@false.org (Daniel Jacobowitz)
Subject: Re: [rfc] Fix info spu mailbox command
Date: Wed, 19 Mar 2008 21:12:00 -0000 [thread overview]
Message-ID: <200803192112.m2JLC5AG023151@d12av02.megacenter.de.ibm.com> (raw)
In-Reply-To: <47E16070.1080600@de.ibm.com> from "Markus Deuling" at Mar 19, 2008 07:50:24 PM
Markus Deuling wrote:
> Joel Brobecker schrieb:
> > After having looked at your previous patch, it looks like you probably
> > wanted to only xfail the test when the 0x number (mailbox number?) is
> > 0xc0000000, but anything else is an unexpected FAIL. Also, I don't think
> > you need the "default" block. So I think your test should look like this:
> >
> > gdb_test_multiple "info spu mailbox" "$msg" {
> > -re "SPU Outbound Mailbox.*0x00000000.*SPU Outbound Interrupt Mailbox.*0x00000000.*$gdb_prompt $" {
> > pass "$msg"
> > }
> > -re "SPU Outbound Mailbox.*0xc0000000.*SPU Outbound Interrupt Mailbox.*0xc0000000.*$gdb_prompt $" {
> > xfail "$msg"
> > }
> > }
> >
>
> Hm, yes and no. Maybe it was not a good idea from me to check for 0xc.... Before that kernel patch
> the data came from an uninitialised variable so it might have been 0xc... accidently.
> I haven't seen cases != 0xc but this does not mean that this can't happen.
>
> Only thing I can say for sure is that 0x00000000 should be the initial content. Everything else is
> XFAIL because of old kernel version.
I guess the best would be something like:
gdb_test_multiple "info spu mailbox" "$msg" {
-re "SPU Outbound Mailbox.*0x00000000.*SPU Outbound Interrupt Mailbox.*0x00000000.*$gdb_prompt $" {
pass "$msg"
}
# Older kernels had a bug that caused them to return arbitrary values when
# attempting to read from an empty mailbox via spufs.
-re "SPU Outbound Mailbox.*0x.*SPU Outbound Interrupt Mailbox.*0x.*$gdb_prompt $" {
xfail "$msg"
}
}
This does verify that GDB works as expected and prints the
proper message, but at the same time does not verify the
actual mailbox contents -- acknowledging that buggy kernels
may in fact return arbitrary values here.
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com
prev parent reply other threads:[~2008-03-19 21:12 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-14 6:27 Markus Deuling
2008-03-17 13:23 ` Ulrich Weigand
2008-03-18 19:53 ` Markus Deuling
2008-03-18 21:25 ` Joel Brobecker
2008-03-19 10:28 ` Markus Deuling
2008-03-19 11:54 ` Daniel Jacobowitz
2008-03-19 18:01 ` Markus Deuling
2008-03-19 18:33 ` Joel Brobecker
2008-03-19 18:50 ` Markus Deuling
2008-03-19 21:12 ` Ulrich Weigand [this message]
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=200803192112.m2JLC5AG023151@d12av02.megacenter.de.ibm.com \
--to=uweigand@de.ibm.com \
--cc=brobecker@adacore.com \
--cc=deuling@de.ibm.com \
--cc=drow@false.org \
--cc=gdb-patches@sourceware.org \
/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