qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@gmail.com>
To: Sam <batmanustc@gmail.com>
Cc: qemu-devel@nongnu.org, qemu-discuss@nongnu.org
Subject: Re: [Qemu-devel] Why "trace event does not exist"?
Date: Fri, 21 Jul 2017 13:43:43 +0100	[thread overview]
Message-ID: <20170721124343.GD18014@stefanha-x1.localdomain> (raw)
In-Reply-To: <CAOE=1Z0yXiscZWibFpUjaqZj7vK06nrWcnaWvga4B2Kw+Eta+g@mail.gmail.com>

[-- 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 --]

      reply	other threads:[~2017-07-21 12:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-20  2:38 [Qemu-devel] Why "trace event does not exist"? Sam
2017-07-21 12:43 ` Stefan Hajnoczi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170721124343.GD18014@stefanha-x1.localdomain \
    --to=stefanha@gmail.com \
    --cc=batmanustc@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-discuss@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).