On Thu, Jul 20, 2017 at 10:38:07AM +0800, Sam wrote:
> Hi all,
> 
> I want to add new trace-event and log it, so I add into $QEMU/trace-event
> like this:
> 
> io_mem_init(void) ""
> >
> 
> and after configure, $QEMU/build/trace-events-all also have this.
> then I add code like this into $QEMU/exec.c
> 
> trace_io_mem_init();
> >
> 
> then I `make` and `make install`.
> 
> But when I run `qemu-system-x86_64 -D /qemu.log -trace events=/qemu-events
> ...`
> it warn me that:
> 
> qemu-system-x86_64:/qemu-events:1: WARNING: trace event 'io_mem_init' does
> > not exist
> 
> 
> and no io_mem_init log output. Why and what should I do to add this log?

Are you sure you're running the binary you compiled?  Please check that
"which qemu-system-x86_64" is really the QEMU binary you built and
installed.

Attachment: signature.asc
Description: PGP signature

Reply via email to