From: Stefan Hajnoczi <stefanha@redhat.com>
To: qemu-devel@nongnu.org
Cc: "Peter Maydell" <peter.maydell@linaro.org>,
"Lluís Vilanova" <vilanova@ac.upc.edu>,
"Stefan Hajnoczi" <stefanha@redhat.com>
Subject: [Qemu-devel] [PULL 6/8] trace: Add event "guest_cpu_enter"
Date: Wed, 28 Sep 2016 22:31:31 +0100 [thread overview]
Message-ID: <1475098293-13262-7-git-send-email-stefanha@redhat.com> (raw)
In-Reply-To: <1475098293-13262-1-git-send-email-stefanha@redhat.com>
From: Lluís Vilanova <vilanova@ac.upc.edu>
Signals the hot-plugging of a new virtual (guest) CPU.
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
Message-id: 147428971313.15111.18023030883528426840.stgit@fimbulvetr.bsc.es
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
trace-events | 8 ++++++++
trace/control-target.c | 3 +++
2 files changed, 11 insertions(+)
diff --git a/trace-events b/trace-events
index a45dc56..0492c96 100644
--- a/trace-events
+++ b/trace-events
@@ -140,6 +140,14 @@ colo_filter_rewriter_conn_offset(uint32_t offset) ": offset=%u\n"
### Guest events, keep at bottom
+
+## vCPU
+
+# Hot-plug a new virtual (guest) CPU
+#
+# Targets: all
+vcpu guest_cpu_enter(void)
+
# @vaddr: Access' virtual address.
# @info : Access' information (see below).
#
diff --git a/trace/control-target.c b/trace/control-target.c
index 3b7d99b..52fcce5 100644
--- a/trace/control-target.c
+++ b/trace/control-target.c
@@ -9,6 +9,7 @@
#include "qemu/osdep.h"
#include "cpu.h"
+#include "trace.h"
#include "trace/control.h"
#include "translate-all.h"
@@ -117,4 +118,6 @@ void trace_init_vcpu(CPUState *vcpu)
}
}
}
+
+ trace_guest_cpu_enter(vcpu);
}
--
2.7.4
next prev parent reply other threads:[~2016-09-28 21:31 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-28 21:31 [Qemu-devel] [PULL 0/8] Tracing patches Stefan Hajnoczi
2016-09-28 21:31 ` [Qemu-devel] [PULL 1/8] trace: move util/buffer.c trace points into correct file Stefan Hajnoczi
2016-09-28 21:31 ` [Qemu-devel] [PULL 2/8] trace: move util/qemu-coroutine*.c " Stefan Hajnoczi
2016-09-28 21:31 ` [Qemu-devel] [PULL 3/8] trace: move hw/mem/pc-dimm.c " Stefan Hajnoczi
2016-09-28 21:31 ` [Qemu-devel] [PULL 4/8] trace: move hw/virtio/virtio-balloon.c " Stefan Hajnoczi
2016-09-28 21:31 ` [Qemu-devel] [PULL 5/8] trace: Properly initialize dynamic event states in hot-plugged vCPUs Stefan Hajnoczi
2016-09-28 21:31 ` Stefan Hajnoczi [this message]
2016-09-28 21:31 ` [Qemu-devel] [PULL 7/8] trace: Add event "guest_cpu_reset" Stefan Hajnoczi
2016-09-28 21:31 ` [Qemu-devel] [PULL 8/8] trace: Document the execution mode of guest events Stefan Hajnoczi
2016-09-29 18:47 ` [Qemu-devel] [PULL 0/8] Tracing patches Peter Maydell
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=1475098293-13262-7-git-send-email-stefanha@redhat.com \
--to=stefanha@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=vilanova@ac.upc.edu \
/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).