qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] qemu-2.2 using trace event


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] qemu-2.2 using trace event
Date: Thu, 29 Oct 2015 16:40:12 +0000
User-agent: Mutt/1.5.24 (2015-08-30)

On Wed, Oct 28, 2015 at 08:44:27PM +0800, 浩樊啊 wrote:
> Hi,here is my problem
> 1 ./configure --enable-trace-backends=simple
>     make
>     make install
>     echo virtio_notity > /tmp/events
>     echo virtio_queue_notify >> /tmp/events
> 2  I use a xml file run a virtual machine
> 3  qemu-system_x86_64 -trace events=/tmp/events 

Here is my command-line:

  qemu-system-x86_64 -enable-kvm -m 1024 \
                     -drive if=virtio,file=test.img,format=raw \
                     -trace events=/tmp/events

Can you post your full command-line?

> 4   ./scripts/simpletrace.py trace-events trace-*

After shutting down QEMU I ran:

  $ scripts/simpletrace.py trace-events trace-16347
  ...
  virtio_notify 89.954 pid=16347 vdev=0x5628b0b5db30 vq=0x5628b1f8f650
  virtio_queue_notify 77.129 pid=16347 vdev=0x5628b0b5db30 n=0x0 
vq=0x5628b1f8f650
  virtio_notify 171.445 pid=16347 vdev=0x5628b0b5db30 vq=0x5628b1f8f650
  virtio_queue_notify 65.987 pid=16347 vdev=0x5628b0b5db30 n=0x0 
vq=0x5628b1f8f650
  virtio_notify 168.007 pid=16347 vdev=0x5628b0b5db30 vq=0x5628b1f8f650
  ...

> But do not get trace.log. and when i check trace-* using 'vim' i find the 
> file is almost empty.
> I tried many times, including reinstall qemu,but still don't work.

The file is called trace-$QEMU_PID, not trace.log.

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]