public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Trace emulated instrucions
@ 2010-03-25 15:02 Avi Kivity
  2010-03-25 15:02 ` [PATCH 1/2] KVM: x86 emulator: Don't overwrite decode cache Avi Kivity
  2010-03-25 15:02 ` [PATCH 2/2] KVM: Trace emulated instructions Avi Kivity
  0 siblings, 2 replies; 7+ messages in thread
From: Avi Kivity @ 2010-03-25 15:02 UTC (permalink / raw)
  To: kvm; +Cc: Marcelo Tosatti, Gleb Natapov

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.

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] 7+ messages in thread
* [PATCH v2 0/2] Trace emulated instrucions
@ 2010-04-11 10:05 Avi Kivity
  2010-04-11 10:05 ` [PATCH 2/2] KVM: Trace emulated instructions Avi Kivity
  0 siblings, 1 reply; 7+ 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] 7+ messages in thread

end of thread, other threads:[~2010-04-11 10:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-25 15:02 [PATCH 0/2] Trace emulated instrucions Avi Kivity
2010-03-25 15:02 ` [PATCH 1/2] KVM: x86 emulator: Don't overwrite decode cache Avi Kivity
2010-03-25 15:02 ` [PATCH 2/2] KVM: Trace emulated instructions Avi Kivity
2010-04-05 18:44   ` Marcelo Tosatti
2010-04-05 21:38     ` Avi Kivity
2010-04-06 18:52       ` Marcelo Tosatti
  -- strict thread matches above, loose matches on Subject: below --
2010-04-11 10:05 [PATCH v2 0/2] Trace emulated instrucions Avi Kivity
2010-04-11 10:05 ` [PATCH 2/2] KVM: Trace emulated instructions Avi Kivity

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