All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jason Wessel <jason.wessel@windriver.com>
To: "Frank Ch. Eigler" <fche@redhat.com>,
	David Howells <dhowells@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
	akpm@linux-foundation.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] FRV: Implement the GDB remote protocol 'p' command to retrieve a register
Date: Sun, 27 Jun 2010 23:05:32 -0500	[thread overview]
Message-ID: <4C281F8C.9060006@windriver.com> (raw)
In-Reply-To: <y0mfx0wysiq.fsf@fche.csb>

On 06/09/2010 01:23 PM, Frank Ch. Eigler wrote:
> Linus Torvalds <torvalds@linux-foundation.org> writes:
>
>   
>>> Implement the GDB remote protocol 'p' command to retrieve a single register
>>> value.
>>>       
>> Is there any value to this? [...]
>>     
>
> Sure, much less data to transfer across a slowish serial link.
>
>   

I have actually measured this before using a yet to be posted for review
version which works for x86, arm and mips.   The improvement is more
significant with the 64 bit archs vs the 32 because of the register
sizing.  The typical case of stepping is quite a bit more responsive
when you only need to read the pc, stack pointer and frame pointer.  At
the point in time I post the patches, I can also post the data about the
savings for two of the exact same work load sequences.

I had also tried out an implementation of the gdb extension which where
you can pass the pc, stack pointer and frame pointer along with the stop
code and this provides an additional speed up as well, but not nearly as
much of a gain as implementing the 'p' packets.

I don't know if I will have it ready for 2.6.36 or not, but the generic
use of the 'p' packet was also required so that the kdb shell could have
a mechanism to individually read and write registers.

I am a bit curious if the frv arch had considered migrating to the kgdb
core, vs continuing to use the separate gdbstub?   It would seem we are
duplicating the creation of the same sort of features.  The frv
architecture may not need it at all, but if you do make use of the kgdb
core, you get other features like kdb for free, plus any of the
interesting features you might want to add might be of interest to other
consumers of the kernel debugger.

Cheers,
Jason.

  parent reply	other threads:[~2010-06-28  4:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-09 16:19 [PATCH] FRV: Implement the GDB remote protocol 'p' command to retrieve a register David Howells
2010-06-09 16:48 ` Linus Torvalds
2010-06-09 18:23   ` Frank Ch. Eigler
2010-06-09 18:29     ` Linus Torvalds
2010-06-28  4:05     ` Jason Wessel [this message]
2010-06-09 18:50   ` David Howells

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=4C281F8C.9060006@windriver.com \
    --to=jason.wessel@windriver.com \
    --cc=akpm@linux-foundation.org \
    --cc=dhowells@redhat.com \
    --cc=fche@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@linux-foundation.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.