From: "Engblom, Jakob" <Jakob.Engblom@windriver.com>
To: "paawan oza" <paawan1982@yahoo.com>, <gdb@sourceware.org>
Subject: RE: reverse debugging implementation
Date: Thu, 02 Sep 2010 12:52:00 -0000 [thread overview]
Message-ID: <C6FAFDDBC4402D44BFC43E57565F021903BA033E@ala-mail09.corp.ad.wrs.com> (raw)
In-Reply-To: <290584.46112.qm@web112507.mail.gq1.yahoo.com>
> I am not sure whether that implementation will improve performance
> drastically
> compare to existing gdb reversible debuggin implementation.
> as
> does it involve
>
> -> stopping at every insn and find out whether insn is changing
> register or
> memory, and if register then record it (probably not every insn but
> depends on
> interval and no of memory changing insns)
Neither. We only reexecute all the instructions, period. No saving of
state other than at the regular checkpoints (snapshots).
> -> when you want to go back, you go back n-1 and forward execution
till
> current-1, that probably involves single steeping which has
performance
> impact.
Not really, we run the target system in JIT mode typically, only
stepping the last few instructions if that is in the middle of a
translation unit. Note that his is using a complete target system
simulator, not at all relying on the host. Simics can stop at a precise
point in virtual time, that is key to this exercise.
> of course the record for memory is saved as we do not need to save
> architectural
> state at every insn, but performance !!
Note that we also include networks, disks, and the rest of the virtual
world in this approach.
VMWare is doing something similar with their record/replay, but in a
different way with different performance/portability/generality
tradeoffs.
In any case, comparing performance with the gdb record-replay system is
not very useful as we atually do something different. First of all, this
is system-level, so you can work with boot loaders, operating systems,
and multithreaded and multicore target. See
http://blogs.windriver.com/engblom/2010/04/what_is_simics_really.html
for more on Simics if you are interested.
But I am not here to sonud like an advertisement, I just wanted to point
out that checkpoint/snapshot + deterministic reexecution is a viable way
to do reverse execution.
/jakob
next prev parent reply other threads:[~2010-09-02 12:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-22 13:39 David McQuillan
2010-08-25 6:30 ` paawan oza
2010-08-25 18:55 ` David McQuillan
2010-09-02 6:48 ` Engblom, Jakob
2010-09-02 9:44 ` paawan oza
2010-09-02 12:52 ` Engblom, Jakob [this message]
2010-08-25 20:43 ` reverse debugging implementation + commands David McQuillan
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=C6FAFDDBC4402D44BFC43E57565F021903BA033E@ala-mail09.corp.ad.wrs.com \
--to=jakob.engblom@windriver.com \
--cc=gdb@sourceware.org \
--cc=paawan1982@yahoo.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