Received: from [140.186.70.92] (port=43029 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pt0Np-0005Xe-G5 for qemu-devel@nongnu.org; Fri, 25 Feb 2011 11:19:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pt0Nh-0008PT-4A for qemu-devel@nongnu.org; Fri, 25 Feb 2011 11:19:09 -0500 Received: from smtp1.iitd.ernet.in ([202.141.68.45]:60937) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pt0Ng-0008GV-EM for qemu-devel@nongnu.org; Fri, 25 Feb 2011 11:19:01 -0500 Message-ID: <4D67D628.6060400@cse.iitd.ac.in> Date: Fri, 25 Feb 2011 21:47:44 +0530 From: Dushyant Bansal MIME-Version: 1.0 References: <7564d180e958415b388e0cb93e2f2a71.squirrel@webmail.iitd.ernet.in> <57F58C04-DDF3-4F8C-9BC3-DAED54D2D088@suse.de> <4D4C5149.80303@cse.iitd.ac.in> <7703D057-F12D-4B95-9AEE-190C4EB2A3CE@suse.de> <4D5A8BDB.1000206@cse.iitd.ac.in> <683A1DC5-CC47-492B-AEC0-29795890CEE8@suse.de> <4D5AA2C9.4030000@cse.iitd.ac.in> <4D5B9452.4020305@redhat.com> In-Reply-To: <4D5B9452.4020305@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: qemu compiling error on ppc64: kvm.c:81: error: 'struct kvm_sregs' has no member named 'pvr' List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: "qemu-devel@nongnu.org List" , kvm-ppc@vger.kernel.org On Wednesday 16 February 2011 02:39 PM, Avi Kivity wrote: > On 02/15/2011 05:59 PM, Dushyant Bansal wrote: >>>> 2. How to configure makefiles to get output of printk statements >>>> inside kvm/arch/powerpc/kvm/trace.h >>> Better don't make them printks - just use the tracing framework. I'd >>> write up a small howto here myself, but I'm pretty much on the jump >>> to my plane for vacation. Avi, could you please guide him a bit on >>> how to get data out of tracepoints? >> Thanks for the quick reply :) >> I have added some more trace parameters in the tracing framework and >> currently, it is working fine. >> 1. Add new field in "struct kvm_vcpu_stat" (kvm_host.h) >> 2. Add corresponding entry in "struct kvm_stats_debugfs_item >> debugfs_entries[]" (book3s.c) >> 3. Increment or Decrement that field where ever necessary. > > Those aren't tracepoints; they're deprecated debug statistics. > > For tracepoints, see > > include/trace/events/kvm.h (general kvm tracepoints) > arch/powerpc/kvm/trace.h (ppc specific tracepoints) > arch/powerpc/kvm/book3s_mmu_hpte.c (examples of use, look for > trace_kvm_*) > Documentation/trace/tracepoints.txt (documentation, likely outdated) > Thanks a lot for the information. Dushyant