All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] how could I analysis the trace log?
@ 2012-02-12  4:32 Wei Yang
  2012-02-13  3:24 ` Wei Yang
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Wei Yang @ 2012-02-12  4:32 UTC (permalink / raw)
  To: qemu-devel

All

I enable the trace function with --enable-trace-backend=simple and I
create the event file like this
g_realloc
g_malloc

Then I start the qemu with following command.
./i386-softmmu/qemu-system-i386 -enable-kvm -drive
file=../../kvm/ubuntu.img -boot dc -m 512 -usb
 -monitor stdio -trace events=qemu_trace_events,file=qemu_trace.log

After some run time, I run the script like:
./scripts/simpletrace.py qemu_trace_events_parse qemu_trace.log

The qemu_trace_events_parse is :
g_realloc(addr)
g_malloc(addr)

The output looks like:
g_malloc 1.831 addr=0xb945d1f0
g_malloc 2.498 addr=0xb945d1f0
g_realloc 4.715 addr=0x10
g_realloc 1.520 addr=0xc
g_realloc 1.505 addr=0xc

The steps I used is correct?
I just guess the format of input events file of the simpletrace.py.
For so many available events, how could I specify the format of all
those events?

-- 
Richard Yang
Help You, Help Me

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-02-13 16:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-12  4:32 [Qemu-devel] how could I analysis the trace log? Wei Yang
2012-02-13  3:24 ` Wei Yang
2012-02-13  3:25 ` 陳韋任
2012-02-13 11:22 ` Stefan Hajnoczi
2012-02-13 15:12 ` Andreas Färber
2012-02-13 16:31   ` Stefan Hajnoczi

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.