public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Luis Machado <luis.machado@arm.com>
To: Thiago Jung Bauermann <thiago.bauermann@linaro.org>
Cc: Tom de Vries <tdevries@suse.de>, gdb-patches@sourceware.org
Subject: Re: [PATCH 1/2] [gdb/tdep] Fix gdb.base/watchpoint-unaligned.exp on aarch64
Date: Fri, 8 Mar 2024 01:26:18 +0000	[thread overview]
Message-ID: <349fe684-8067-4720-8ee7-6ce93a1acf77@arm.com> (raw)
In-Reply-To: <87y1atg5gw.fsf@linaro.org>

On 3/7/24 20:19, Thiago Jung Bauermann wrote:
> 
> Hello,
> 
> Luis Machado <luis.machado@arm.com> writes:
> 
>> Raising the alignment enforcement means we will cover a bigger range of addresses,
>> potentially covering our target watchpoint/trap address,
>> but I'm afraid it also means we will raise the potential for false positives, if
>> watchpoints are placed within the alignment range.
>>
>> Furthermore, we are not limited to 16-byte accesses. For SVE and SME we may be looking at
>> even bigger accesses. And, more generally, the memset/memcpy
>> instructions (not yet widely used) can potentially access arbitrary amounts of memory. So
>> tweaking the alignment is only a focused fix towards the most often
>> used instructions and access sizes at the moment.
>> The more general problem of not being able to tell which particular watchpoint caused the
>> trap remains.
>>
>> How does the above fix behave on the overall testsuite in terms of watchpoint tests?
> 
> According to the Linaro CI, there's no impact:
> 
> https://ci.linaro.org/job/tcwg_gdb_check--master-aarch64-precommit/1749/artifact/artifacts/artifacts.precommit/notify/mail-body.txt
> 
> I'm a bit surprised that there were no progressions from this patch. The
> job ran on a Mt. Jade machine.

My guess is we don't have any specific hardware watchpoint tests exercising bigger memory accesses (with SVE/SME/MOPS) with a variety
of unaligned accesses to trigger failures due to the small alignment we currently have.

> 
> --
> Thiago


  reply	other threads:[~2024-03-08  1:26 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-20 20:54 Tom de Vries
2024-02-20 20:54 ` [PATCH 2/2] [gdb/tdep] Fix gdb.base/watch-bitfields.exp " Tom de Vries
2024-03-07 12:11   ` Luis Machado
2024-03-11 15:04     ` Tom de Vries
2024-03-11 15:12       ` Luis Machado
2024-03-12 16:19         ` Tom de Vries
2024-03-12 16:01     ` Tom de Vries
2024-03-07 10:50 ` [PATCH 1/2] [gdb/tdep] Fix gdb.base/watchpoint-unaligned.exp " Luis Machado
2024-03-07 20:19   ` Thiago Jung Bauermann
2024-03-08  1:26     ` Luis Machado [this message]
2024-03-12 16:49       ` Tom de Vries
2024-03-13 17:12   ` Tom de Vries
2024-03-14 10:19     ` Luis Machado

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=349fe684-8067-4720-8ee7-6ce93a1acf77@arm.com \
    --to=luis.machado@arm.com \
    --cc=gdb-patches@sourceware.org \
    --cc=tdevries@suse.de \
    --cc=thiago.bauermann@linaro.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).