From: "Lluís Vilanova" <vilanova@ac.upc.edu>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH 2/3] trace: Add "qemu_init_vcpu" event
Date: Fri, 16 Sep 2011 19:01:29 +0200 [thread overview]
Message-ID: <20110916170129.16838.55823.stgit@ginnungagap.bsc.es> (raw)
In-Reply-To: <20110916170124.16838.70890.stgit@ginnungagap.bsc.es>
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
---
cpus.c | 1 +
qemu-common.h | 4 +++-
trace-events | 3 +++
3 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/cpus.c b/cpus.c
index 54c188c..8f7ce15 100644
--- a/cpus.c
+++ b/cpus.c
@@ -861,6 +861,7 @@ void qemu_init_vcpu(void *_env)
} else {
qemu_tcg_init_vcpu(env);
}
+ trace_qemu_init_vcpu(env);
}
void qemu_notify_event(void)
diff --git a/qemu-common.h b/qemu-common.h
index d848f4a..cdb6b3b 100644
--- a/qemu-common.h
+++ b/qemu-common.h
@@ -296,8 +296,10 @@ struct qemu_work_item {
int done;
};
+#include "trace.h"
+
#ifdef CONFIG_USER_ONLY
-#define qemu_init_vcpu(env) do { } while (0)
+#define qemu_init_vcpu(env) do { trace_qemu_init_vcpu(env); } while (0)
#else
void qemu_init_vcpu(void *env);
#endif
diff --git a/trace-events b/trace-events
index 7b2e619..53add77 100644
--- a/trace-events
+++ b/trace-events
@@ -501,3 +501,6 @@ escc_sunkbd_event_in(int ch) "Untranslated keycode %2.2x"
escc_sunkbd_event_out(int ch) "Translated keycode %2.2x"
escc_kbd_command(int val) "Command %d"
escc_sunmouse_event(int dx, int dy, int buttons_state) "dx=%d dy=%d buttons=%01x"
+
+# qemu-common.h
+qemu_init_vcpu(void *vcpu) "%p"
next prev parent reply other threads:[~2011-09-16 17:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-16 17:01 [Qemu-devel] [PATCH 1/3] Add "qemu_reset_vcpu" Lluís Vilanova
2011-09-16 17:01 ` Lluís Vilanova [this message]
2011-09-16 17:01 ` [Qemu-devel] [PATCH 3/3] trace: Add "qemu_reset_vcpu" event Lluís Vilanova
2011-09-16 17:07 ` [Qemu-devel] [PATCH 1/3] Add "qemu_reset_vcpu" Jan Kiszka
2011-09-16 18:43 ` Lluís Vilanova
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=20110916170129.16838.55823.stgit@ginnungagap.bsc.es \
--to=vilanova@ac.upc.edu \
--cc=qemu-devel@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).