Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <pedro@codesourcery.com>
To: Doug Evans <dje@google.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFA] Use data cache for stack accesses
Date: Sat, 29 Aug 2009 20:25:00 -0000	[thread overview]
Message-ID: <200908292105.48831.pedro@codesourcery.com> (raw)
In-Reply-To: <e394668d0908281755v18fa34f3r41d1ac6de9d5d43e@mail.gmail.com>

On Saturday 29 August 2009 01:55:30, Doug Evans wrote:

> > dcache writes back lines in chunks.
> 
> Actually, the dcache only writes to the target exactly what
> target_xfer_partial would do.
> Data point: For writes, if the line isn't already in cache, it is not
> brought in.

Oh, dcache_write_line has been deleted!  I was looking at an
older tree...  Sorry about that.  :-/  Great then!

> > Do we still have rare border cases
> > where the cache line can cover more than stack memory, hence
> > still leading to incorrect results?
> 
> Yeah, if, for example, .data abuts the stack in just the right way,
> it'll get cached when "set stack-cache on".
> Pretty rare that it would be a problem.

Yeah.  It would even be a rarer problem if we flushed the
cache between high level operations in all-stop as well.  In
fact, with that, wouldn't we be safe to enable the dcache
for all operations?

> > Cache becoming stale in non-stop mode.
> 
> The cache is now flushed between commands in non-stop mode.

Thanks.  I wonder how much performance we lose here, but I don't
have one of those large apps to test handy ...  :-)


> +  /* Make sure the cache gets updated no matter what - if we are writing
> +     to the stack, even if this write is not tagged as such, we still need
> +     to update the cache. */

EMISDBLSPC.                 ^

I'm fine with the patch now.  Thanks.

> 2009-08-28  Jacob Potter  <jdpotter@google.com>
> 	    Doug Evans  <dje@google.com>
> (...)
> 
> 	* doc/gdb.texinfo (Caching Data of Remote Targets): Update text.
> 	Mark `set/show remotecache' options as obsolete.
> 	Document new `set/show stack-cache' option.
> 	Update text for `info dcache'.

Another convention is to put the ChangeLog path line like so:

        doc/
	* gdb.texinfo (Caching Data of Remote Targets): Update text.
	Mark `set/show remotecache' options as obsolete.
	Document new `set/show stack-cache' option.
	Update text for `info dcache'.

This has the advantange that you only have to remove that line
when pasting the entry to the correct log file, instead of editing
every possible changed-file entry, and it's clearer to everyone else
where the log is supposed to go, IMHO.  This is the convention we
use at CS, FWIW.

-- 
Pedro Alves


  parent reply	other threads:[~2009-08-29 20:05 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-08 20:49 Jacob Potter
2009-07-08 20:51 ` Pedro Alves
2009-07-08 20:58   ` Pedro Alves
2009-07-08 23:46   ` Daniel Jacobowitz
2009-07-09  3:06     ` Pedro Alves
2009-07-10  9:34       ` Pedro Alves
2009-07-10  8:45     ` Jacob Potter
2009-07-10 14:19       ` Pedro Alves
2009-07-13 19:25         ` Jacob Potter
2009-08-21  6:25   ` Doug Evans
2009-08-25  3:00     ` Doug Evans
2009-08-25 18:55       ` Pedro Alves
2009-08-26 16:36         ` Doug Evans
2009-08-26 22:45           ` Pedro Alves
2009-08-27  0:46             ` Doug Evans
2009-08-27  3:11               ` Doug Evans
2009-08-29  5:16             ` Doug Evans
2009-08-29 18:28               ` Doug Evans
2009-08-29 20:25               ` Pedro Alves [this message]
2009-09-02 20:43       ` Tom Tromey
2009-09-03 15:38         ` Doug Evans
2009-09-03 19:38           ` Tom Tromey
2009-09-03 19:45           ` Daniel Jacobowitz
2009-07-09 12:20 ` Eli Zaretskii

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=200908292105.48831.pedro@codesourcery.com \
    --to=pedro@codesourcery.com \
    --cc=dje@google.com \
    --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