From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [PATCH v2 0/2] Trace emulated instrucions Date: Mon, 12 Apr 2010 13:35:23 -0300 Message-ID: <20100412163523.GA4420@amt.cnet> References: <1270980316-20525-1-git-send-email-avi@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org To: Avi Kivity Return-path: Received: from mx1.redhat.com ([209.132.183.28]:50599 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752988Ab0DLQsj (ORCPT ); Mon, 12 Apr 2010 12:48:39 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o3CGmdxa032593 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 12 Apr 2010 12:48:39 -0400 Content-Disposition: inline In-Reply-To: <1270980316-20525-1-git-send-email-avi@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Sun, Apr 11, 2010 at 01:05:14PM +0300, Avi Kivity wrote: > 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(-) Applied, thanks.