[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-discuss] [Qemu-devel] Why "trace event does not exist"?
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-discuss] [Qemu-devel] Why "trace event does not exist"? |
Date: |
Fri, 21 Jul 2017 13:43:43 +0100 |
User-agent: |
Mutt/1.8.0 (2017-02-23) |
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.
signature.asc
Description: PGP signature