qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] About the trace framework


From: Xie Changlong
Subject: Re: [Qemu-devel] About the trace framework
Date: Tue, 11 Jul 2017 17:39:54 +0800
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1

在 7/11/2017 9:33 AM, Wang Dong 写道:


On 07/10/2017 01:24 PM, Xie Changlong wrote:
在 7/9/2017 5:57 PM, Wang Dong 写道:
Hi,

I am new to QEMU. But I got some problem so that I want to figure it out.

So I try to debug qemu to see what happened.

And I found trace framework. I think this will help me understand the point.

So I compiled qemu with option:

## *--enable-trace-backends=simple*

And did as the docs/tracing.txt tell. But when I execute the example command in it, nothing just happens.

*./scripts/simpletrace.py trace-events-all trace-xxxxxx(my trace file produced by qemu)
I am not sure what happened. Just ask this.
Any clue will be appreciated. Thanks in advance.
*


Did you set *trace-event*? I've encountered this issue in the past :)
(qemu) help trace-event
trace-event name on|off -- changes status of a specific trace event
(qemu) info trace-events
yes, I set it. I just did as the docs told. If this does not work or misses something, it should be corrected I think.

Have you also tried out the examples in docs? how did you do that? I

Yes, just follow the docs. No something special.

think I misses some. Could you tell more about
it? Thanks.

You should confirm the *trace-event*s you set are really triggered by qemu. Use gdb breakpoint to verify it is a good choice.



--
Thanks
    -Xie



reply via email to

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