qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Why "trace event does not exist"?
@ 2017-07-20  2:38 Sam
  2017-07-21 12:43 ` Stefan Hajnoczi
  0 siblings, 1 reply; 2+ messages in thread
From: Sam @ 2017-07-20  2:38 UTC (permalink / raw)
  To: qemu-devel, qemu-discuss

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?
Thank you~

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

* Re: [Qemu-devel] Why "trace event does not exist"?
  2017-07-20  2:38 [Qemu-devel] Why "trace event does not exist"? Sam
@ 2017-07-21 12:43 ` Stefan Hajnoczi
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Hajnoczi @ 2017-07-21 12:43 UTC (permalink / raw)
  To: Sam; +Cc: qemu-devel, qemu-discuss

[-- Attachment #1: Type: text/plain, Size: 833 bytes --]

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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]

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

end of thread, other threads:[~2017-07-21 12:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-20  2:38 [Qemu-devel] Why "trace event does not exist"? Sam
2017-07-21 12:43 ` Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).