]> git.proxmox.com Git - mirror_qemu.git/commit - cpu-exec.c
trace: add some tcg tracing support
authorAlex Bennée <alex.bennee@linaro.org>
Fri, 1 Aug 2014 16:08:57 +0000 (17:08 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 12 Aug 2014 13:26:12 +0000 (14:26 +0100)
commit6db8b538663b39c21e12e14e6437aa7f8435f316
treef18ecd38a421852c997b643bd8b56b720a263f7b
parent41ef7b00abff4d31814890a14e5a8e49a177508b
trace: add some tcg tracing support

This adds a couple of tcg specific trace-events which are useful for
tracing execution though tcg generated blocks. It's been tested with
lttng user space tracing but is generic enough for all systems. The tcg
events are:

  * translate_block - when a subject block is translated
  * exec_tb - when a translated block is entered
  * exec_tb_exit - when we exit the translated code
  * exec_tb_nocache - special case translations

Of course we can only trace the entrance to the first block of a chain
as each block will jump directly to the next when it can. See the -d
nochain patch to allow more complete tracing at the expense of
performance.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
cpu-exec.c
trace-events
translate-all.c