All of lore.kernel.org
 help / color / mirror / Atom feed
* [uml-devel] UML and Execution Replay
@ 2003-09-16 19:15 Oliver Oppitz
  2003-09-17 16:45 ` George Washington Dunlap III
  0 siblings, 1 reply; 12+ messages in thread
From: Oliver Oppitz @ 2003-09-16 19:15 UTC (permalink / raw)
  To: user-mode-linux-devel@lists.sourceforge.net

Hello *,

I have a new project proposal for applying UML in the deterministic (!) 
debugging of parallel programs.

This concept is not new and called execution-replay (ER): the behaviour of 
a (complicated, multi-threaded, buggy) program is recorded during an 
*execution* phase. Later during a *replay* phase the exact behaviour is 
reproduced -- including the bugs. Therefore the system is ideal to debug - 
rarely occuring bugs in parallel systems, - race conditions, - any sort of 
bugs that are (nearly) impossible to reproduce. All you need to do is to 
record the behaviour once and then simply replay and debug it! Sounds 
exciting? - you must be a hacker then ;-) And think of the consequences...
 The role of UML will be a replayable virtual machine. By recording all 
input to the UML keyboard, network, ... and feeding this same input into 
the UML during replay, the exact internal behaviour will be reproduced. One 
gets ER without modifying the code of the applications program. This is a 
huge advantage over conventional approaches that require that the software 
adheres strictly to certain protocols. Also the overhead should be minimal.

There is some more to the idea though. I presented a paper "A particular 
bug trap: Execution replay for Virtual machines" on this idea at a 
conference last week (http://aadebug2003.elis.rug.ac.be/). See link below.

I am working on the implementation myself but of course: any help is 
welcome. I will put up a small website in the next weeks and post again. If 
anyone is interested in the project already, get in contact with me via 
o.oppitz at gmx d O T net. I'd be happy to share my ideas.

Regards,

  Oliver


The paper "A particular bug trap: Execution replay for Virtual machines" 
can be found at http://213.203.244.62/paper.short.pdf
http://213.203.244.62/paper.long.pdf
Note, that there is a way to work around the limitations of the Intel 
architecture mentioned in the paper. So I am pursuing this project on x86.

Further information on Execution replay can be found at
http://www.zealcore.com/
http://www.mrtc.mdh.se/projects/getProject.php3?id=0044
The approach is different but already applied in an industrial context 
(VxWorks).





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: [uml-devel] UML and Execution Replay
@ 2003-09-17  7:45 Oliver Oppitz
  2003-09-17  8:44 ` Lars Marowsky-Bree
  2003-09-17 16:59 ` George Washington Dunlap III
  0 siblings, 2 replies; 12+ messages in thread
From: Oliver Oppitz @ 2003-09-17  7:45 UTC (permalink / raw)
  To: Patrick "Petschge" Kilian, User-mode-linux-devel

"Patrick \"Petschge\" Kilian" <petschge@web.de> 
> The only problem is, that you have to replay the input with the exact 
> correct timing.

Yes, indeed that is the more tricky part. However, there are known techniques for handling this. One involves a hardware instruction counter. Using this you can record exactly in what moment some input (e.g. an interrupt) was received. Hardware instruction counters in current CPUs are however pretty imprecise, in particular in x86. Motorola PowerPC 7410 is pretty precise.

An alternative technique is called "unique marker". When there is an interrupt you record some checksums over the register file, parts of the stack etc. For the replay you insert breakpoint instructions at all places where an interrupt had occured in the execution phase. By comparing the stored checksum with the current register file/stack you can determine "where" in the program flow you are. Obviously there is potential for ambiguity but not much. It works in practice. Henrik Thane at the MRTC (Mälardalen Real Time Research Center, http://www.mrtc.mdh.se/) works on this. 

Because I want to work on x86 I favour the latter approach. 

Regards, Oliver

______________________________________________________________________________
Es geht nicht  mehr ohne Handy, aber geht es auch guenstiger?
Ja, mit Call by Call vom Handy. http://handybycall.web.de/?mc=021103



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: [uml-devel] UML and Execution Replay
@ 2003-09-17 12:04 Oliver Oppitz
  0 siblings, 0 replies; 12+ messages in thread
From: Oliver Oppitz @ 2003-09-17 12:04 UTC (permalink / raw)
  To: LarsMarowsky-Bree, OliverOppitz, PatrickPetschgeKilian,
	User-mode-linux-devel

Lars Marowsky-Bree <lmb@suse.de> schrieb am 17.09.03 11:20:35:
> Have you checked out Werner Almesberger work on "umlsim"?

Not yet. Looks interesting and seems to go into the same direction. I'll contact him.

Thanks for the hint!

  Oliver

______________________________________________________________________________
Die Besten ihrer Klasse! WEB.DE FreeMail (1,7) und WEB.DE Club (1,9) -
bei der Stiftung Warentest - ein Doppelsieg! http://f.web.de/?mc=021184



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread
* RE: [uml-devel] UML and Execution Replay
@ 2003-09-17 13:33 Wichmann, Mats D
  2003-09-17 22:20 ` Jeff Dike
  0 siblings, 1 reply; 12+ messages in thread
From: Wichmann, Mats D @ 2003-09-17 13:33 UTC (permalink / raw)
  To: Oliver Oppitz, LarsMarowsky-Bree, User-mode-linux-devel


> Lars Marowsky-Bree <lmb@suse.de> schrieb am 17.09.03 11:20:35:
> > Have you checked out Werner Almesberger work on "umlsim"?
> 
> Not yet. Looks interesting and seems to go into the same 
> direction. I'll contact him.
> 
> Thanks for the hint!

Werner is presenting on umlsim at Linux-Kongress
in Saarbrücken in about a month if that's of 
interest...


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread
* RE: [uml-devel] UML and Execution Replay
@ 2003-09-18 10:47 Wichmann, Mats D
  0 siblings, 0 replies; 12+ messages in thread
From: Wichmann, Mats D @ 2003-09-18 10:47 UTC (permalink / raw)
  To: Jeff Dike; +Cc: Oliver Oppitz, LarsMarowsky-Bree, User-mode-linux-devel


> mats.d.wichmann@intel.com said:
> > Werner is presenting on umlsim at Linux-Kongress in Saarbrücken in
> > about a month if that's of  interest... 
> 
> He also presented at OLS a couple of months ago, so checking 
> those proceedings might be of interest.

Indeed.  I found it complex enough that it helped
to hear him speak about it in person, though, and
Oliver has a .de email address so I thought that
might be a nice opportunity (Jeff will also
be speaking at Linux-Kongress, by the way).


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread
* RE: [uml-devel] UML and Execution Replay
@ 2003-09-18 14:11 Oliver Oppitz
  0 siblings, 0 replies; 12+ messages in thread
From: Oliver Oppitz @ 2003-09-18 14:11 UTC (permalink / raw)
  To: Jeff Dike, Wichmann, Mats D
  Cc: LarsMarowsky-Bree, Oliver Oppitz, User-mode-linux-devel

Thanks for the hint. Seems a great occasion to talk to a lot of interesting people...

 Oliver

"Wichmann, Mats D" <mats.d.wichmann@intel.com> schrieb am 18.09.03 13:22:36:
> 
> 
> > mats.d.wichmann@intel.com said:
> > > Werner is presenting on umlsim at Linux-Kongress in Saarbrücken in
> > > about a month if that's of  interest... 
> > 
> > He also presented at OLS a couple of months ago, so checking 
> > those proceedings might be of interest.
> 
> Indeed.  I found it complex enough that it helped
> to hear him speak about it in person, though, and
> Oliver has a .de email address so I thought that
> might be a nice opportunity (Jeff will also
> be speaking at Linux-Kongress, by the way).
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> User-mode-linux-devel mailing list
> User-mode-linux-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel


______________________________________________________________________________
Doppelsieg fur WEB.DE FreeMail und Club bei Stiftung Warentest!
Beste Sicherheitswertung und Verfuegbarkeit! http://f.web.de/?mc=021181



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2003-09-18 14:12 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-16 19:15 [uml-devel] UML and Execution Replay Oliver Oppitz
2003-09-17 16:45 ` George Washington Dunlap III
2003-09-17 20:27   ` Nuno Silva
2003-09-17 20:46     ` George Washington Dunlap III
  -- strict thread matches above, loose matches on Subject: below --
2003-09-17  7:45 Oliver Oppitz
2003-09-17  8:44 ` Lars Marowsky-Bree
2003-09-17 16:59 ` George Washington Dunlap III
2003-09-17 12:04 Oliver Oppitz
2003-09-17 13:33 Wichmann, Mats D
2003-09-17 22:20 ` Jeff Dike
2003-09-18 10:47 Wichmann, Mats D
2003-09-18 14:11 Oliver Oppitz

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.