From: "Lluís Vilanova" <vilanova@ac.upc.edu>
To: qemu-devel@nongnu.org
Cc: Jan Kiszka <jan.kiszka@siemens.com>,
Stefan Hajnoczi <stefanha@gmail.com>
Subject: [Qemu-devel] [PATCH v3 2/3] trace: Add "vcpu_init" event
Date: Fri, 23 Sep 2011 18:39:13 +0200 [thread overview]
Message-ID: <20110923163913.7646.4277.stgit@ginnungagap.bsc.es> (raw)
In-Reply-To: <20110923163908.7646.87389.stgit@ginnungagap.bsc.es>
Signals the creation of a new vCPU (CPUState structure).
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
---
cpus-user.c | 2 ++
cpus.c | 2 ++
trace-events | 7 +++++++
3 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/cpus-user.c b/cpus-user.c
index c1e5e58..5db48d2 100644
--- a/cpus-user.c
+++ b/cpus-user.c
@@ -1,8 +1,10 @@
/* Implementation of routines in "cpus.c" when compiling for CONFIG_USER_ONLY */
#include "qemu-common.h"
+#include "trace.h"
void qemu_init_vcpu(void *env)
{
+ trace_vcpu_init(env);
}
diff --git a/cpus.c b/cpus.c
index 8978779..00679ad 100644
--- a/cpus.c
+++ b/cpus.c
@@ -33,6 +33,7 @@
#include "qemu-thread.h"
#include "cpus.h"
+#include "trace.h"
#ifndef _WIN32
#include "compatfd.h"
@@ -856,6 +857,7 @@ void qemu_init_vcpu(void *_env)
} else {
qemu_tcg_init_vcpu(env);
}
+ trace_vcpu_init(env);
}
void qemu_notify_event(void)
diff --git a/trace-events b/trace-events
index 98c68a3..9b87f90 100644
--- a/trace-events
+++ b/trace-events
@@ -502,3 +502,10 @@ 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"
+
+### Abstract events (not specific to a file; keep at bottom)
+
+## vCPU
+
+# Create a new vCPU (CPUState structure)
+vcpu_init(void *vcpu) "%p"
next prev parent reply other threads:[~2011-09-23 16:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-23 16:39 [Qemu-devel] [PATCH v3 1/3] Make 'qemu_init_vcpu' a function (instead of a macro) Lluís Vilanova
2011-09-23 16:39 ` Lluís Vilanova [this message]
2011-09-23 16:39 ` [Qemu-devel] [PATCH v3 3/3] trace: Add "vcpu_reset" event Lluís Vilanova
2011-12-06 15:52 ` [Qemu-devel] [PATCH v3 1/3] Make 'qemu_init_vcpu' a function (instead of a macro) 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=20110923163913.7646.4277.stgit@ginnungagap.bsc.es \
--to=vilanova@ac.upc.edu \
--cc=jan.kiszka@siemens.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.com \
/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).