• Alex Bennée's avatar
    trace: add some tcg tracing support · 6db8b538
    Alex Bennée authored
    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
    Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
    Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
translate-all.c 56.2 KB