From: "Lluís Vilanova" <vilanova@ac.upc.edu>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH 2/7] trace: Add "vcpu_init" event
Date: Fri, 09 Dec 2011 21:15:01 +0100 [thread overview]
Message-ID: <20111209201501.11487.75460.stgit@ginnungagap.bsc.es> (raw)
In-Reply-To: <20111209201430.11487.82078.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 50e45ce..69b580d 100644
--- a/cpus-user.c
+++ b/cpus-user.c
@@ -8,8 +8,10 @@
*/
#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 82530c4..9049011 100644
--- a/cpus.c
+++ b/cpus.c
@@ -35,6 +35,7 @@
#include "qemu-thread.h"
#include "cpus.h"
#include "main-loop.h"
+#include "trace.h"
#ifndef _WIN32
#include "compatfd.h"
@@ -944,6 +945,7 @@ void qemu_init_vcpu(void *_env)
} else {
qemu_tcg_init_vcpu(env);
}
+ trace_vcpu_init(env);
}
void cpu_stop_current(void)
diff --git a/trace-events b/trace-events
index 962caca..1a2d302 100644
--- a/trace-events
+++ b/trace-events
@@ -631,3 +631,10 @@ win_helper_no_switch_pstate(uint32_t new_pstate_regs) "change_pstate: regs new=%
win_helper_wrpil(uint32_t psrpil, uint32_t new_pil) "old=%x new=%x"
win_helper_done(uint32_t tl) "tl=%d"
win_helper_retry(uint32_t tl) "tl=%d"
+
+### 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-12-09 20:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-09 20:14 [Qemu-devel] [PATCH 0/7] trace: Add some simple TCG tracing events Lluís Vilanova
2011-12-09 20:14 ` [Qemu-devel] [PATCH 1/7] Make 'qemu_init_vcpu' a function (instead of a macro) Lluís Vilanova
2011-12-09 20:15 ` Lluís Vilanova [this message]
2011-12-09 20:15 ` [Qemu-devel] [PATCH 3/7] trace: Add "vcpu_reset" event Lluís Vilanova
2011-12-09 20:15 ` [Qemu-devel] [PATCH 4/7] trace: [all] Add "vbbl" TCG tracing event Lluís Vilanova
2011-12-09 20:15 ` [Qemu-devel] [PATCH 5/7] [all] Trivial 'tcg_gen_debug_insn_start' unification in 'gen_intermediate_code_internal' Lluís Vilanova
2011-12-09 20:16 ` [Qemu-devel] [PATCH 6/7] trace: [all] Add "vfetch" TCG tracing event Lluís Vilanova
2011-12-09 20:16 ` [Qemu-devel] [PATCH 7/7] trace: [all] Add "vmem" " 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=20111209201501.11487.75460.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).