From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Hajnoczi Subject: Re: Wiki docs on counting and tracing KVM perf events Date: Thu, 20 May 2010 13:24:09 +0100 Message-ID: References: <4BEC1345.7040408@redhat.com> <4BF4EF97.5060705@redhat.com> <4BF4F07F.4020007@redhat.com> <4BF4F1D1.6030203@redhat.com> <4BF518C1.60304@redhat.com> <4BF519FE.6040208@redhat.com> <4BF527BC.2030709@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Cc: Jes Sorensen , kvm To: Avi Kivity Return-path: Received: from mail-vw0-f46.google.com ([209.85.212.46]:65176 "EHLO mail-vw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751587Ab0ETMYK (ORCPT ); Thu, 20 May 2010 08:24:10 -0400 Received: by vws9 with SMTP id 9so4620048vws.19 for ; Thu, 20 May 2010 05:24:09 -0700 (PDT) In-Reply-To: <4BF527BC.2030709@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, May 20, 2010 at 1:14 PM, Avi Kivity wrote: >> echo 1>/sys/kernel/debug/tracing/events/kvm/enable >> cat /sys/kernel/debug/tracing/trace_pipe>results/trace& > > perf will enable the events by itself (no?), so all you need is is the perf > call in the middle. Yes, it will enable events. However, I am also generating a kvm_trace-like log using trace_pipe. On this box I couldn't get perf trace working so I used trace_pipe for the kvm_trace-equivalent and perf stat for the kvm_stat equivalent. Stefan