From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joerg Roedel Subject: Re: [PATCH 7/9] KVM: SVM: Add tracepoint for invlpga instruction Date: Thu, 8 Oct 2009 18:18:15 +0200 Message-ID: <20091008161815.GF14073@amd.com> References: <1254996199-17667-1-git-send-email-joerg.roedel@amd.com> <1254996199-17667-8-git-send-email-joerg.roedel@amd.com> <4ACE0CF3.7090101@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: Marcelo Tosatti , Alexander Graf , kvm@vger.kernel.org, linux-kernel@vger.kernel.org To: Avi Kivity Return-path: Received: from tx2ehsobe004.messaging.microsoft.com ([65.55.88.14]:13223 "EHLO TX2EHSOBE007.bigfish.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757501AbZJHQTn (ORCPT ); Thu, 8 Oct 2009 12:19:43 -0400 Content-Disposition: inline In-Reply-To: <4ACE0CF3.7090101@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, Oct 08, 2009 at 06:01:55PM +0200, Avi Kivity wrote: > On 10/08/2009 12:03 PM, Joerg Roedel wrote: > >This patch adds a tracepoint for the event that the guest > >executed the INVLPGA instruction. > >+ > >+ TP_printk("rip=0x%016llx asid=%d adress=0x%016llx\n", > >+ __entry->rip, __entry->asid, __entry->address) > >+); > > s/adress/address/. > > Also, kvm tracepoints don't use '=' in TP_printk(), please keep it > consistent. I had it with "key: value" formating first but decided to do it this way because it simplifies automatic parsing of these trace events. With this format a script can first split by spaces and get the key-value pairs by splitting on the equal sign. This is also more robust against changes in the format. Joerg