Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Metzger, Markus T" <markus.t.metzger@intel.com>
To: Pedro Alves <palves@redhat.com>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: RE: [PATCH] btrace, testsuite: fix spurious gdb.btrace/tsx.exp fails
Date: Mon, 21 Sep 2015 06:31:00 -0000	[thread overview]
Message-ID: <A78C989F6D9628469189715575E55B23331CB2F4@IRSMSX104.ger.corp.intel.com> (raw)
In-Reply-To: <55FC0A07.1090208@redhat.com>

> -----Original Message-----
> From: gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] On Behalf Of Pedro Alves
> Sent: Friday, September 18, 2015 2:57 PM
> To: Metzger, Markus T
> Cc: gdb-patches@sourceware.org
> Subject: Re: [PATCH] btrace, testsuite: fix spurious gdb.btrace/tsx.exp fails


> > A transaction can be aborted for various reasons.  One such reason is an
> > interrupt, which can happen at any time.
> 
> I was under the impression that the hardware or kernel would retry
> the transaction and that that would be transparent to
> userspace, but sounds like not then.

For RTM you have to provide the abort handler, yourself.  You may retry
the transaction or fall back to more heavy-weight synchronization.


> > This occurs very infrequently.  After I saw this the first time, I had to re-run
> > the test several dozen times to reproduce it again.
> 
> +gdb_test_multiple "record instruction-history" "speculation indication" {
> +    -re "$abort_1.*$gdb_prompt $" {
> +        pass "speculation indication: abort"
> +    }
> +    -re "$abort_2.*$gdb_prompt $" {
> +        pass "speculation indication: abort"
> +    }
> +    -re  "$begin_to_end.*$gdb_prompt $" {
> +        pass "speculation indication: begin..end"
> +    }
> +}
> 
> Note this will cause ping-ponging of PASS messages, resulting
> in spurious changes in test result diffing.  I'd suggest using
> the same message in all cases.

OK.

I'll send an updated patch.

Regards,
Markus.
Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Prof. Dr. Hermann Eul
Chairperson of the Supervisory Board: Tiffany Doon Silva
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928


      reply	other threads:[~2015-09-21  6:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-18  8:36 Markus Metzger
2015-09-18 11:44 ` Pedro Alves
2015-09-18 12:13   ` Metzger, Markus T
2015-09-18 12:56     ` Pedro Alves
2015-09-21  6:31       ` Metzger, Markus T [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=A78C989F6D9628469189715575E55B23331CB2F4@IRSMSX104.ger.corp.intel.com \
    --to=markus.t.metzger@intel.com \
    --cc=gdb-patches@sourceware.org \
    --cc=palves@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