public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Trace emulated instrucions
@ 2010-04-11 10:05 Avi Kivity
  2010-04-11 10:05 ` [PATCH 1/2] KVM: x86 emulator: Don't overwrite decode cache Avi Kivity
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Avi Kivity @ 2010-04-11 10:05 UTC (permalink / raw)
  To: Marcelo Tosatti; +Cc: kvm

Add a trace of instruction emulation into ftrace.  This can help analyze
performance issues, or, in the case of failed emulation, identify the
missing instructions.

v2:
    - trace all emulation starts
    - add missing statistic increment on failure
      (long term we need to get rid of those in favour of perf)

Avi Kivity (2):
  KVM: x86 emulator: Don't overwrite decode cache
  KVM: Trace emulated instructions

 arch/x86/kvm/emulate.c |   19 +++++-----
 arch/x86/kvm/trace.h   |   86 ++++++++++++++++++++++++++++++++++++++++++++++++
 arch/x86/kvm/x86.c     |    4 ++
 3 files changed, 100 insertions(+), 9 deletions(-)


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

end of thread, other threads:[~2010-04-12 16:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-11 10:05 [PATCH v2 0/2] Trace emulated instrucions Avi Kivity
2010-04-11 10:05 ` [PATCH 1/2] KVM: x86 emulator: Don't overwrite decode cache Avi Kivity
2010-04-11 10:05 ` [PATCH 2/2] KVM: Trace emulated instructions Avi Kivity
2010-04-12 16:35 ` [PATCH v2 0/2] Trace emulated instrucions Marcelo Tosatti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox