From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH] trace "exit to userspace" event Date: Thu, 14 Oct 2010 14:10:04 +0200 Message-ID: <4CB6F31C.9090300@redhat.com> References: <20101008164447.GC393@redhat.com> <4CB17D39.7020007@redhat.com> <20101010154625.GR2397@redhat.com> <4CB6DB03.8060408@redhat.com> <20101014102904.GG19207@redhat.com> <4CB6E558.6010009@redhat.com> <20101014112843.GJ19207@redhat.com> <4CB6EA3E.7070802@redhat.com> <20101014114150.GL19207@redhat.com> <4CB6ECF8.3080709@redhat.com> <20101014114728.GM19207@redhat.com> <4CB6F2E6.9010604@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Marcelo Tosatti , kvm@vger.kernel.org To: Gleb Natapov Return-path: Received: from mx1.redhat.com ([209.132.183.28]:30410 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751546Ab0JNMKI (ORCPT ); Thu, 14 Oct 2010 08:10:08 -0400 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o9ECA8w9006438 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 14 Oct 2010 08:10:08 -0400 In-Reply-To: <4CB6F2E6.9010604@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 10/14/2010 02:09 PM, Avi Kivity wrote: > On 10/14/2010 01:47 PM, Gleb Natapov wrote: >> > >> > You can always filter excess information away. If you're looking >> > for exits to userspace (a major performance issue) then you want to >> > see both normal exits and signal exits. >> > >> How do I do it via /debug file system? Now I just echo name of the event >> I am interested in set_event, how do I add filter to that? > > echo exit_reason==33 > > /sys/kernel/debug/tracing/events/kvm/kvm_exit/filter > Or, easier, trace-cmd record -e kvm:kvm_exit -f exit_reason==33 -- error compiling committee.c: too many arguments to function