From: Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
To: Jim Blandy <jimb@redhat.com>
Cc: Daniel Jacobowitz <drow@mvista.com>,
ramana@codito.com, gdb@sources.redhat.com, ac131313@redhat.com,
mark.newman@lmco.com
Subject: Re: Tracepoints on gdb/gdbserver
Date: Wed, 01 Oct 2003 04:44:00 -0000 [thread overview]
Message-ID: <1064983648.3808.286.camel@numenor.codito.co.in> (raw)
In-Reply-To: <vt2u16tnbjr.fsf@zenia.home>
On Wed, 2003-10-01 at 04:12, Jim Blandy wrote:
> Daniel Jacobowitz <drow@mvista.com> writes:
> > That'll work. I got the impression that tracepoints are designed to be
> > even lighter-weight than that; you can implement them via an agent
> > expression -> native assembly conversion. But this requires runtime
> > patching and is quite complicated. Just saving the overhead of the
> > remote protocol will be useful.
>
> Yes. The original implementation used a bytecode interpreter (which
> is really pretty fast), but it was an embedded board with no OS, and
> the interpreter ran in the same address space as the program being
> debugged, so those memory references were just load instructions, and
> the trace opcodes were just memcpy calls.
>
> If you implement tracepoints in gdbserver, then those are going to
> become ptrace calls, which are going to be a lot slower. It might
> still be fast enough for your purposes --- but I just want to point
> out that it's not the same arrangement we used in the original
> application.
I agree that it would be slow but as Daniel points out, compared the
overhead of the remote protocol, it would still be useful.
regards
Ramana
next prev parent reply other threads:[~2003-10-01 4:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-30 12:50 Ramana Radhakrishnan
2003-09-30 13:06 ` Daniel Jacobowitz
2003-09-30 14:00 ` Ramana Radhakrishnan
[not found] ` <vt2u16tnbjr.fsf@zenia.home>
2003-10-01 4:44 ` Ramana Radhakrishnan [this message]
2003-10-01 10:59 ` Tracepoints with shared lib. support Ramana Radhakrishnan
2003-10-01 14:48 ` Daniel Jacobowitz
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=1064983648.3808.286.camel@numenor.codito.co.in \
--to=ramana.radhakrishnan@codito.com \
--cc=ac131313@redhat.com \
--cc=drow@mvista.com \
--cc=gdb@sources.redhat.com \
--cc=jimb@redhat.com \
--cc=mark.newman@lmco.com \
--cc=ramana@codito.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