All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniel P. Berrange" <berrange@redhat.com>
To: Gadre Nayan <gadrenayan@gmail.com>
Cc: qemu-devel@nongnu.org, qemu-discuss@nongnu.org,
	Stefan Hajnoczi <stefanha@gmail.com>,
	stefanha@redhat.com
Subject: Re: [Qemu-devel] Libvirt add ftrace option
Date: Tue, 16 Aug 2016 15:18:30 +0100	[thread overview]
Message-ID: <20160816141830.GJ25115@redhat.com> (raw)
In-Reply-To: <CAKJ7aR5REnMrp=pr_e98a9h5AnmcaqtBSiAjV_GnhDjp1oRYkg@mail.gmail.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 :|

  reply	other threads:[~2016-08-16 14:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-16 14:03 [Qemu-devel] Libvirt add ftrace option Gadre Nayan
2016-08-16 14:18 ` Daniel P. Berrange [this message]
2016-08-16 14:24   ` Gadre Nayan
2016-08-16 14:35     ` Daniel P. Berrange
2016-08-17  4:13       ` Gadre Nayan
2016-08-17  8:56         ` Daniel P. Berrange

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160816141830.GJ25115@redhat.com \
    --to=berrange@redhat.com \
    --cc=gadrenayan@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-discuss@nongnu.org \
    --cc=stefanha@gmail.com \
    --cc=stefanha@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.