qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Alex-Uni <a_bulach@rbg.informatik.tu-darmstadt.de>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Attempt for reproducible behavior
Date: Thu, 26 Feb 2009 13:44:15 +0100	[thread overview]
Message-ID: <49A68E9F.7030300@rbg.informatik.tu-darmstadt.de> (raw)

Hello,

I am trying to modify Qemu, so it offers reproducible behavior. I'm 
using the icounts for the time measurement.
For example:
I have a simple code which measures the time before the start of a loop. 
The loop runs for an definite amount of rounds. In this case I let it 
count to 100000000 in a while-loop. Then the codes measures the time 
after the loop. Both times in milliseconds. The time difference is about 
5000 milliseconds.

Now, while the loop is still running, i make a snapshot. Lets say at 
2000 milliseconds.
After loading this snapshot it the loop should run for 3000 
milliseconds. But it doesnt, it's alway different.

I figured, that it depends on the value of next_tb and therefor on 
tcg_qemu_tb_exec(tc_ptr) in line 615 in the cpu-exec.c.

Now I have the problem, that I can't follow the code. I don't know why 
tcg_qemu_tb_exec(tc_ptr) produces different results
and where to look. I only found the define in the tcg.h.

Can somebody help me with this problem?
I'm working on the svn-version 5806.

Thank you
Alex
(Please CC: me when replying, I am not on the list)

             reply	other threads:[~2009-02-26 12:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-26 12:44 Alex-Uni [this message]
2009-02-26 16:43 ` [Qemu-devel] Attempt for reproducible behavior Jan Marten Simons

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=49A68E9F.7030300@rbg.informatik.tu-darmstadt.de \
    --to=a_bulach@rbg.informatik.tu-darmstadt.de \
    --cc=qemu-devel@nongnu.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;
as well as URLs for NNTP newsgroup(s).