Re: [Qemu-devel] basic block tracing question

2016-03-19 Thread Peter Maydell
On 16 March 2016 at 20:28, Tim Newsham wrote: > Hi, I would like to create an accurate trace of basic blocks that get > executed. I'm interested in a trace of what a CPU would execute, and not > for the purposes of studying qemu itself. > > I'm currently emitting trace

[Qemu-devel] basic block tracing question

2016-03-19 Thread Tim Newsham
Hi, I would like to create an accurate trace of basic blocks that get executed. I'm interested in a trace of what a CPU would execute, and not for the purposes of studying qemu itself. I'm currently emitting trace data from cpu_tb_exec https://github.com/qemu/qemu/blob/master/cpu-exec.c#L136 by

Re: [Qemu-devel] basic block tracing question

2016-03-19 Thread Peter Maydell
On 16 March 2016 at 21:06, Tim Newsham wrote: > What happens when the basic block gets interrupted mid execution > and restarted? Will execution jump to the middle of the translated > basic block, or will a new translation be performed starting at the > midpoint? We

Re: [Qemu-devel] basic block tracing question

2016-03-18 Thread Tim Newsham
On Wed, Mar 16, 2016 at 10:52 AM, Peter Maydell wrote: > > If you only emit tracing information after the TB has executed and > returned then you will miss the case where we execute half a TB > and take an exception (eg load/store that page faulted, or system call), >