From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: Perf trace event parse errors for KVM events Date: Tue, 01 Jun 2010 11:39:21 +0300 Message-ID: <4C04C739.8050607@redhat.com> References: <20100526123443.GB8905@stefan-thinkpad.transitives.com> <1275083157.22648.593.camel@gandalf.stny.rr.com> <4C00FF9B.9000107@redhat.com> <1275139177.22648.610.camel@gandalf.stny.rr.com> <4C021D7E.1060705@redhat.com> <1275228182.15884.1.camel@gandalf.stny.rr.com> <4C027131.2010309@redhat.com> <1275233656.15884.4.camel@gandalf.stny.rr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: Stefan Hajnoczi , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Frederic Weisbecker , Marcelo Tosatti , Peter Zijlstra , Stefan Hajnoczi , Johannes Berg , Darren Hart To: rostedt@goodmis.org Return-path: In-Reply-To: <1275233656.15884.4.camel@gandalf.stny.rr.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 05/30/2010 06:34 PM, Steven Rostedt wrote: > >> Cool. May make sense to use simpler formatting in the kernel, and use >> trace-cmd plugins for the complicated cases. >> >> It does raise issues with ABIs. Can trace-cmd read plugins from >> /lib/modules/*? We can then distribute the plugins with the kernel. >> >> > We probably could do that. Perhaps if we can port the python code to > perf, then it would work for both. Then the plugins could be just python > scripts, (or binary .so modules) and have a tools/plugins dir? > > The python part probably would be easier to port, since the .so modules > are a bit more specific to trace-cmd. > One concern is performance. Traces tend to be long, and running python code on each line will be slow. If trace-cmd integrates a pager and a search mechanism that looks at the binary data instead of the text, we could format only the lines that are displayed. But that is going to be a lot of work and I don't think it's worth the effort. -- error compiling committee.c: too many arguments to function