From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41699) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZfCS-0006Ue-Mo for qemu-devel@nongnu.org; Tue, 16 Aug 2016 10:18:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bZfCN-0004Nc-Ul for qemu-devel@nongnu.org; Tue, 16 Aug 2016 10:18:39 -0400 Date: Tue, 16 Aug 2016 15:18:30 +0100 From: "Daniel P. Berrange" Message-ID: <20160816141830.GJ25115@redhat.com> Reply-To: "Daniel P. Berrange" References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] Libvirt add ftrace option List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gadre Nayan Cc: qemu-devel@nongnu.org, qemu-discuss@nongnu.org, Stefan Hajnoczi , stefanha@redhat.com On Tue, Aug 16, 2016 at 07:33:30PM +0530, Gadre Nayan wrote: > Hi, > > I am able to get traces from Guest kernel + QEMU + Host kernel using the > qemu -trace evetns=/tmp/events option > > My complete command line is: > /home/gnayan/QEMU-devel/qemu-ubuntu/qemu/x86_64-softmmu/qemu-system-x86_64 > -trace events=/home/gnayan/qemu_events -drive > file=/home/gnayan/CUSTOM_QEMU_SYSTEM/UBUNTU/ubuntu.img,if=virtio,format=raw > -drive file=/home/gnayan/CUSTOM_QEMU_SYSTEM/UBUNTU/u1.img,if=virtio,format=raw > -m 1G -net nic,model=virtio -net user -redir tcp:2222::22 -redir > udp:5050::5050 -enable-kvm > > How can I get the same using libvirt based tools: > > I create the domain using: > > virt-install -n vm1 -r 1024 --disk > path=/home/gnayan/CUSTOM_QEMU_SYSTEM/UBUNTU/ubuntu.img,bus=virtio > --network network=default,model=virtio > > Is the trace option available ? With libvirt you should use the dtrace/systemtap backend instead as that's far more flexible, not requiring changes to the QEMU configuration every time you want to change what events are output. Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|